CRARCH0025 Use Cratis Fundamentals traces
- Category: Architecture
- Default severity: Warning
- Diagnostic ID:
CRARCH0025
What it checks
Section titled “What it checks”Tracing should flow through Cratis Fundamentals abstractions for consistency.
Diagnostic message
Section titled “Diagnostic message”Avoid direct ActivitySource.StartActivity usage
How to resolve
Section titled “How to resolve”Use IActivitySource<T>, IActivityScope<T>, and [Span] generated methods instead of direct ActivitySource.StartActivity calls. Generating span helpers is optional; the typed source and scope are the replacement for the reported raw call. Follow the C# traces setup for package and service-registration steps.