Skip to main content
Source: Al0073TracedActivitySourceNameAnalyzer.cs

Description

The [Traced] attribute requires a non-empty ActivitySourceName to identify which ActivitySource the generated spans belong to.

Bad Code

Good Code

Properties

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

Configuration