PipelineMetricsOptions
NexusLabs.Needlr.AgentFramework¶
NexusLabs.Needlr.AgentFramework.Diagnostics¶
PipelineMetricsOptions Class¶
Configuration options for pipeline-shape OpenTelemetry metrics emitted by IPipelineMetrics. Sibling of AgentFrameworkMetricsOptions — that type scopes the per-agent-run meter; this one scopes the pipeline-runner meter.
Inheritance System.Object 🡒 PipelineMetricsOptions
Remarks¶
Configure via the syringe:
.UsingAgentFramework(af => af
.ConfigurePipelineMetrics(o =>
{
o.MeterName = "MyApp.Pipelines";
o.ActivitySourceName = "MyApp.Pipelines";
}))
When unconfigured, IPipelineMetrics resolves to NexusLabs.Needlr.AgentFramework.Diagnostics.NoOpPipelineMetrics — observability is opt-in with zero overhead by default. Same posture as AgentFrameworkMetricsOptions.
Properties¶
PipelineMetricsOptions.ActivitySourceName Property¶
The name used for the System.Diagnostics.ActivitySource that
emits the parent pipeline.run span and child pipeline.stage
spans. Defaults to MeterName when null.
Property Value¶
PipelineMetricsOptions.MeterName Property¶
The name used for the System.Diagnostics.Metrics.Meter that
emits pipeline-shape counters and histograms (pipeline.run.*,
pipeline.stage.*). Defaults to
"NexusLabs.Needlr.AgentFramework.Pipelines".