Skip to main content
Source: Al0086IncorrectAttributeTypeAnalyzer.cs

Description

OpenTelemetry attributes should use the correct value types as defined by semantic conventions. Using a string where an int is expected degrades query performance.

Bad Code

Good Code

Properties

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

Configuration