Skip to main content
Source: Al0068InvalidMetricNameAnalyzer.cs

Description

Metric names should use dot-separated namespaces and snake_case to follow OpenTelemetry naming conventions.

Bad Code

Good Code

Properties

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

Configuration