Class QuartzInstrumentation
- Namespace
- Quartz.Diagnostics
- Assembly
- Quartz.dll
The names an application subscribes to Quartz's telemetry with.
public static class QuartzInstrumentation
- Inheritance
-
QuartzInstrumentation
- Inherited Members
Remarks
Wiring Quartz into OpenTelemetry begins with these two strings, and until 4.0 they were the only part of the instrumentation surface that was not published: the tag names nobody types by hand were public constants while the two names everybody types were internal, so every sample in existence spells them as literals.
services.AddOpenTelemetry()
.WithTracing(tracing => tracing.AddSource(QuartzInstrumentation.ActivitySourceName))
.WithMetrics(metrics => metrics.AddMeter(QuartzInstrumentation.MeterName));
Fields
ActivitySourceName
The name of the ActivitySource a scheduler emits its spans on —
what AddSource is given.
public const string ActivitySourceName = "Quartz"
Field Value
MeterName
The name of the Meter a scheduler publishes its
instruments on — what AddMeter is given.
public const string MeterName = "Quartz"
Field Value
Remarks
It is the same string as ActivitySourceName, and deliberately a separate constant: traces and metrics are subscribed to independently, and a future divergence should not silently re-point whichever call site borrowed the other one.