Skip to main content
Source: Al0076MissingOTelConfigurationAnalyzer.cs

Description

Projects that use ActivitySource or Meter should call AddOpenTelemetry() in their service configuration to ensure telemetry is exported.

Bad Code

Good Code

Properties

  • Category: OpenTelemetry
  • Severity: Warning
  • Enabled by default: True
  • Code fix available: False

Configuration