Class OpenTelemetrySettings
- Namespace
- SEBT.Portal.Core.AppSettings
- Assembly
- SEBT.Portal.Core.dll
Represents the "Otel" section of appsettings.json, which configures OpenTelemetry exporters and options.
public class OpenTelemetrySettings
- Inheritance
-
objectOpenTelemetrySettings
Remarks
This appsettings section is used by OpenTelemetrySetup to configure the OpenTelemetry SDK. It is also used by the OpenTelemetrySetupTests to verify that the appsettings.json configuration is valid and consistent with the SDK's expectations.
Fields
SectionName
public const string SectionName = "Otel"
Field Value
- string
Properties
HistogramAggregation
Gets or sets the kind of histogram aggregation to use for metrics. Valid values are "Explicit" or "Exponential". Default is "Explicit".
public HistogramAggregationKind HistogramAggregation { get; set; }
Property Value
UseLogExporter
Gets or sets the kind of exporter to use for logs. Valid values are "None", "Console", or "Otlp". Default is "Console".
public ExporterKind UseLogExporter { get; set; }
Property Value
UseMetricsExporter
Gets or sets the kind of exporter to use for metrics. Valid values are "None", "Console", or "Otlp". Default is "Otlp".
public ExporterKind UseMetricsExporter { get; set; }
Property Value
UseTracingExporter
Gets or sets the kind of exporter to use for tracing. Valid values are "None", "Console", or "Otlp". Default is "Otlp".
public ExporterKind UseTracingExporter { get; set; }