Add OpenTelemetry Package#1172
Conversation
|
Claude finished @mtmk's task in 2m 55s —— View job Code Review
This PR adds a thin 1. The library only instantiates an
See inline comments on 2. Duplicate string constant that can silently diverge (low)
// Internal/Telemetry.cs line 9
public const string NatsActivitySource = NatsTelemetry.SourceName;The rest of the PR — the |
Mirrors AddRabbitMQInstrumentation(configure): exposes a discoverable entry point to set Filter and Enrich instead of reaching into the Core static. Writes the process-wide NatsInstrumentationOptions.Default, so configuration is global, not per provider.
FilterSubjects compiles NATS subject patterns (include/exclude, with * and > wildcards) into a NatsInstrumentationOptions.Filter predicate, combined with any existing filter. Document it alongside the operation.duration histogram bucket view, which stays out of the package to avoid pulling in the OpenTelemetry SDK dependency.
# Conflicts: # tools/site_src/documentation/advanced/opentelemetry.md
Uh oh!
There was an error while loading. Please reload this page.