class documentation
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 | 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.
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).