Table of Contents

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

string

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

bool

ExportToApplicationInsights

Gets or sets a value indicating whether to export to Application Insights.

public bool ExportToApplicationInsights { get; set; }

Property Value

bool

ExportToPrometheus

Gets or sets a value indicating whether to export metrics to Prometheus.

public bool ExportToPrometheus { get; set; }

Property Value

bool

OtlpEndpoint

Gets or sets the OpenTelemetry export endpoint.

public string? OtlpEndpoint { get; set; }

Property Value

string

PrometheusScrapePath

Gets or sets the Prometheus scrape endpoint path.

[Required]
public string PrometheusScrapePath { get; set; }

Property Value

string

ResourceAttributes

Gets custom resource attributes for telemetry.

public IDictionary<string, object> ResourceAttributes { get; init; }

Property Value

IDictionary<string, object>

ServiceName

Gets or sets the service name for telemetry.

[Required]
public string ServiceName { get; set; }

Property Value

string

ServiceVersion

Gets or sets the service version for telemetry.

[Required]
public string ServiceVersion { get; set; }

Property Value

string