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 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.

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