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
Properties
EnableAspNetCoreInstrumentation
Gets or sets a value indicating whether ASP.NET Core instrumentation is enabled.
public bool EnableAspNetCoreInstrumentation { get; set; }
Property Value
EnableHttpClientInstrumentation
Gets or sets a value indicating whether HttpClient instrumentation is enabled.
public bool EnableHttpClientInstrumentation { get; set; }
Property Value
EnableMetrics
Gets or sets a value indicating whether metrics are enabled.
public bool EnableMetrics { get; set; }
Property Value
EnableTracing
Gets or sets a value indicating whether tracing is enabled.
public bool EnableTracing { get; set; }
Property Value
Enabled
Gets or sets a value indicating whether OpenTelemetry is enabled.
public bool Enabled { get; set; }
Property Value
Otlp
Gets or sets OTLP exporter options.
public ApplicationOtlpExporterOptions Otlp { get; set; }
Property Value
ServiceName
Gets or sets the logical OpenTelemetry service name.
public string ServiceName { get; set; }
Property Value
ServiceVersion
Gets or sets the logical OpenTelemetry service version.
public string? ServiceVersion { get; set; }