You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(otlp-traces): resolve otel.scope.* gate at compile time
Now that agent_version::meets is a const fn, hoist the gate into a module-level
const (EMIT_OTEL_SCOPE_META) computed once at compile time, instead of calling
the gate twice per span on the transform hot path. Addresses Copilot review
feedback on duplication and hot-path cost.
Also make the unit test key its expectation off EMIT_OTEL_SCOPE_META and assert
the emitted values, so it stays correct regardless of the DD_AGENT_VERSION the
crate was built with.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
0 commit comments