Expand description
OpenTelemetry collector bundling and environment injection for LightShuttle.
This crate provides two building blocks:
CollectorConfig— a strongly-typed value describing the bundledotel/opentelemetry-collectorcontainer. It can be materialised into alightshuttle_runtime::ContainerSpecviaCollectorConfig::to_container_spec.inject_otel_env— an idempotent helper that adds the standardOTEL_EXPORTER_OTLP_ENDPOINT,OTEL_SERVICE_NAMEandOTEL_RESOURCE_ATTRIBUTESkeys to a resource environment without overriding any value already set by the user.
Structs§
- Collector
Config - Strongly-typed configuration of the bundled OpenTelemetry collector.
- Tracer
Guard - RAII guard returned by
init_orchestrator_tracer.
Constants§
- SYNTHETIC_
RESOURCE_ NAME - Resource name used for the bundled collector inside the lifecycle
plan. Stable so dependents can refer to it via the standard
${resources.lightshuttle_otel.host}interpolation if needed.
Functions§
- augment_
manifest - Augment
manifestin place with the bundledOTelcollector. - init_
orchestrator_ tracer - Initialise orchestrator self-tracing.
- inject_
otel_ env - Inject the three standard
OTelenvironment keys intoenv. - is_
enabled - Returns whether
OTelis enabled formanifest.