Skip to main content

Documentation Index

Fetch the complete documentation index at: https://ancplua.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Source: Al0085InvalidAttributeValueAnalyzer.cs

Description

Span or metric attribute values must conform to the expected format defined by OpenTelemetry semantic conventions (e.g., HTTP methods must be uppercase).

Bad Code

activity?.SetTag("http.request.method", "get"); // should be uppercase

Good Code

activity?.SetTag("http.request.method", "GET");

Properties

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

Configuration

dotnet_diagnostic.AL0085.severity = error