Skip to main content
Source: Al0108RedundantNoTraceAnalyzer.cs

Description

[NoTrace] excludes a method from automatic span creation when the class has [Traced]. Without [Traced] on the class or any base class, [NoTrace] is redundant.

Bad Code

Good Code

Properties

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

Configuration