class OpenTelemetryConfig: (source)
Configuration for OpenTelemetry collector.
| Instance Variable | durations |
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 |
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 |
How often metrics are exported to the collector. Defaults to 1s (set by sdk-core) when None. |
| Instance Variable | metric |
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 |
Undocumented |
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.
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).
URL of the OpenTelemetry collector endpoint (e.g. "http://localhost:4317" for gRPC or "http://localhost:4318/v1/metrics" for HTTP).