Skip to content

CRARCH0025 Use Cratis Fundamentals traces

  • Category: Architecture
  • Default severity: Warning
  • Diagnostic ID: CRARCH0025

Tracing should flow through Cratis Fundamentals abstractions for consistency.

Avoid direct ActivitySource.StartActivity usage

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.