class documentation

class OtelOptions: (source)

View In Hierarchy

Options for apply_defaults.

Instance Variable collector_endpoint OTLP collector endpoint (e.g. "http://localhost:4317"). If empty, falls back to OTEL_EXPORTER_OTLP_ENDPOINT, then "http://localhost:4317".
Instance Variable metric_periodicity How often the Core SDK exports metrics to the collector. Defaults to 10 seconds. Set this shorter than your Lambda timeout to ensure at least one export per invocation.
Instance Variable service_name OTel service name resource attribute. If empty, falls back to OTEL_SERVICE_NAME, then AWS_LAMBDA_FUNCTION_NAME, then "temporal-lambda-worker".
collector_endpoint: str = (source)

OTLP collector endpoint (e.g. "http://localhost:4317"). If empty, falls back to OTEL_EXPORTER_OTLP_ENDPOINT, then "http://localhost:4317".

metric_periodicity: timedelta = (source)

How often the Core SDK exports metrics to the collector. Defaults to 10 seconds. Set this shorter than your Lambda timeout to ensure at least one export per invocation.

service_name: str = (source)

OTel service name resource attribute. If empty, falls back to OTEL_SERVICE_NAME, then AWS_LAMBDA_FUNCTION_NAME, then "temporal-lambda-worker".