Skip to main content
Source: AL0124NonInterceptableAgentTracedAnalyzer.cs

Description

The [AgentTraced] attribute triggers compile-time interception to create agent spans. Abstract, extern, and partial definition methods cannot be intercepted by the source generator, so [AgentTraced] will be silently ignored.

Properties

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

Configuration

dotnet_diagnostic.AL0124.severity = warning