class documentation

class OpenTelemetryConfig: (source)

View In Hierarchy

Configuration for OpenTelemetry collector.

Instance Variable durations_as_seconds If True, export duration metrics as floating-point seconds instead of integer milliseconds. Defaults to False.
Instance Variable headers Optional headers to include with each export request. Useful for authentication tokens or routing metadata.
Instance Variable histogram_bucket_overrides Override the default histogram bucket boundaries for specific metrics. Keys are metric names and values are sequences of bucket boundaries (e.g. {"workflow_task_schedule_to_start_latency": [0.01, 0.05, 0.1, 0.5, 1.0, 5.0]}...
Instance Variable http If True, use HTTP/protobuf transport instead of gRPC. When enabled, the url should point to the HTTP endpoint (e.g. "http://localhost:4318/v1/metrics"). Defaults to False (gRPC).
Instance Variable metric_periodicity How often metrics are exported to the collector. Defaults to 1s (set by sdk-core) when None.
Instance Variable metric_temporality Whether metrics are exported as cumulative or delta values. Defaults to CUMULATIVE.
Instance Variable url URL of the OpenTelemetry collector endpoint (e.g. "http://localhost:4317" for gRPC or "http://localhost:4318/v1/metrics" for HTTP).
Method _to_bridge_config Undocumented
durations_as_seconds: bool = (source)

If True, export duration metrics as floating-point seconds instead of integer milliseconds. Defaults to False.

Optional headers to include with each export request. Useful for authentication tokens or routing metadata.

histogram_bucket_overrides: Mapping[str, Sequence[float]] | None = (source)

Override the default histogram bucket boundaries for specific metrics. Keys are metric names and values are sequences of bucket boundaries (e.g. {"workflow_task_schedule_to_start_latency": [0.01, 0.05, 0.1, 0.5, 1.0, 5.0]}).

If True, use HTTP/protobuf transport instead of gRPC. When enabled, the url should point to the HTTP endpoint (e.g. "http://localhost:4318/v1/metrics"). Defaults to False (gRPC).

metric_periodicity: timedelta | None = (source)

How often metrics are exported to the collector. Defaults to 1s (set by sdk-core) when None.

Whether metrics are exported as cumulative or delta values. Defaults to CUMULATIVE.

URL of the OpenTelemetry collector endpoint (e.g. "http://localhost:4317" for gRPC or "http://localhost:4318/v1/metrics" for HTTP).

Undocumented