Table of Contents

Class ApplicationOpenTelemetryOptions

Namespace
ProjectTemplate.Web.Options
Assembly
ProjectTemplate.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 = "ProjectTemplate: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

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.

public string? ServiceVersion { get; set; }

Property Value

string