Class ContextExportOptions
- Namespace
- Excalibur.Dispatch.Observability.Context
- Assembly
- Excalibur.Dispatch.Observability.dll
Export configuration options for context observability.
public sealed class ContextExportOptions
- Inheritance
-
ContextExportOptions
- Inherited Members
- Extension Methods
Remarks
Groups telemetry export settings: OTLP, Prometheus, and Application Insights.
Properties
ApplicationInsightsConnectionString
Gets or sets the Application Insights connection string.
public string? ApplicationInsightsConnectionString { get; set; }
Property Value
EnableConsoleExporterInDevelopment
Gets or sets a value indicating whether to enable console exporter in development.
Replaces the previous direct ASPNETCORE_ENVIRONMENT environment variable check.
public bool EnableConsoleExporterInDevelopment { get; set; }
Property Value
ExportToApplicationInsights
Gets or sets a value indicating whether to export to Application Insights.
public bool ExportToApplicationInsights { get; set; }
Property Value
ExportToPrometheus
Gets or sets a value indicating whether to export metrics to Prometheus.
public bool ExportToPrometheus { get; set; }
Property Value
OtlpEndpoint
Gets or sets the OpenTelemetry export endpoint.
public string? OtlpEndpoint { get; set; }
Property Value
PrometheusScrapePath
Gets or sets the Prometheus scrape endpoint path.
[Required]
public string PrometheusScrapePath { get; set; }
Property Value
ResourceAttributes
Gets custom resource attributes for telemetry.
public IDictionary<string, object> ResourceAttributes { get; init; }
Property Value
ServiceName
Gets or sets the service name for telemetry.
[Required]
public string ServiceName { get; set; }
Property Value
ServiceVersion
Gets or sets the service version for telemetry.
[Required]
public string ServiceVersion { get; set; }