Description
Methods annotated with metric attributes ([Counter], [Histogram], etc.) must be partial so the source generator can provide the implementation.
Bad Code
Good Code
Properties
- Category: Metrics
- Severity: Error
- Enabled by default: True
- Code fix available: True
