Table of Contents

Class ApplicationOpenTelemetryOptions

Namespace
ReferenceApplication.Web.Options
Assembly
ReferenceApplication.Web.dll

Represents template-level OpenTelemetry configuration.

public sealed class ApplicationOpenTelemetryOptions
Inheritance
ApplicationOpenTelemetryOptions
Inherited Members

Fields

SectionName

Configuration section name for OpenTelemetry settings.

public const string SectionName = "ReferenceApplication:OpenTelemetry"

Field Value

string

Properties

EnableAspNetCoreInstrumentation

Gets or sets a value indicating whether ASP.NET Core instrumentation is enabled.

public bool EnableAspNetCoreInstrumentation { get; set; }

Property Value

bool

EnableGovernanceInstrumentation

Gets or sets a value indicating whether governance telemetry is collected: AsiBackbone's governance emitter projects each persisted decision and lifecycle event as a span and as metrics, and the host's ReferenceApplication.AuditReconciliation gauges are exported. Tracing and metrics must also be enabled for spans and metrics respectively.

public bool EnableGovernanceInstrumentation { get; set; }

Property Value

bool

EnableHttpClientInstrumentation

Gets or sets a value indicating whether HttpClient instrumentation is enabled.

public bool EnableHttpClientInstrumentation { get; set; }

Property Value

bool

EnableMetrics

Gets or sets a value indicating whether metrics are enabled.

public bool EnableMetrics { get; set; }

Property Value

bool

EnableTracing

Gets or sets a value indicating whether tracing is enabled.

public bool EnableTracing { get; set; }

Property Value

bool

Enabled

Gets or sets a value indicating whether OpenTelemetry is enabled.

public bool Enabled { get; set; }

Property Value

bool

Otlp

Gets or sets OTLP exporter options.

public ApplicationOtlpExporterOptions Otlp { get; set; }

Property Value

ApplicationOtlpExporterOptions

ServiceName

Gets or sets the logical OpenTelemetry service name.

public string ServiceName { get; set; }

Property Value

string

ServiceVersion

Gets or sets the logical OpenTelemetry service version. When unset, the application assembly informational version is used.

public string? ServiceVersion { get; set; }

Property Value

string