Table of Contents

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

Func<GovernanceEmissionEnvelope, CancellationToken, ValueTask>

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

string

EmitActivityEvents

Gets or sets a value indicating whether activity events and activity tags should be emitted.

public bool EmitActivityEvents { get; set; }

Property Value

bool

EmitMetrics

Gets or sets a value indicating whether low-cardinality counters and histograms should be emitted.

public bool EmitMetrics { get; set; }

Property Value

bool

ProviderName

Gets or sets the provider name returned through provider-neutral emission results.

public string ProviderName { get; set; }

Property Value

string

Methods

Validate()

Validates the configured options.

public void Validate()

Exceptions

InvalidOperationException

Thrown when an option value is invalid.