Skip to main content
Source: AL0013MissingSchemaUrlAnalyzer.cs

Description

Setting the schema URL allows collectors and backends to understand which version of semantic conventions your telemetry uses.

Bad Code

using var activity = source.StartActivity("operation");

Good Code

source.SetSchemaUrl("https://opentelemetry.io/schemas/1.21.0");

Properties

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

Configuration

dotnet_diagnostic.AL0013.severity = warning