Class OpenTelemetryGovernanceEmitterOptions
- Namespace
- AsiBackbone.OpenTelemetry
- Assembly
- AsiBackbone.OpenTelemetry.dll
Provides host-owned options for the OpenTelemetry governance emitter.
public sealed class OpenTelemetryGovernanceEmitterOptions
- Inheritance
-
OpenTelemetryGovernanceEmitterOptions
- Inherited Members
Properties
BeforeEmitAsync
Gets or sets an optional hook invoked before diagnostics are emitted.
public Func<GovernanceEmissionEnvelope, CancellationToken, ValueTask>? BeforeEmitAsync { get; set; }
Property Value
Remarks
This hook is intended for tests and host-owned validation seams. It should not emit protected content.
DefaultActivityName
Gets or sets the activity name used when the envelope does not include an operation name.
public string DefaultActivityName { get; set; }
Property Value
EmitActivityEvents
Gets or sets a value indicating whether activity events and activity tags should be emitted.
public bool EmitActivityEvents { get; set; }
Property Value
EmitMetrics
Gets or sets a value indicating whether low-cardinality counters and histograms should be emitted.
public bool EmitMetrics { get; set; }
Property Value
ProviderName
Gets or sets the provider name returned through provider-neutral emission results.
public string ProviderName { get; set; }
Property Value
Methods
Validate()
Validates the configured options.
public void Validate()
Exceptions
- InvalidOperationException
Thrown when an option value is invalid.