Skip to content

otel

Crate: otel · Path: crates/observability/otel
Description (Cargo.toml): OpenTelemetry extension for SpinKube WASM environments.

From crates/observability/otel/Cargo.toml:

FeaturePurpose
defaultstructured-logging
otel-2025opentelemetry, opentelemetry-otlp, opentelemetry-semantic-conventions
auto-instrumentationotel-2025
grpc-tonic / grpc-sysPassed through to opentelemetry-otlp
structured-loggingserde_json, observability_core/structured-logging, opentelemetry-proto, prost
  • Otel, OtelBuilder, OtelConfig, OtelConfigBuilder
  • CollectorClient, span/log/metric data types
  • AutoInstrumentedHttpClient, FunctionInstrumentation, TraceContextPropagator
  • ResourceAttributeManager, SamplingStrategy
  • OtelExtensionConfig, OtelManager
  • Re-exports observability_core traits/types (ObservabilityPlugin, TraceContext, …)
  • create_otel_manager, create_otel_manager_from_config
  • Constants: VERSION, DEFAULT_OTLP_ENDPOINT, DEFAULT_BATCH_SIZE, DEFAULT_EXPORT_TIMEOUT_SECS

Dependencies include reqwest and (on non-WASM) tokio — see Cargo.toml target.'cfg(...)' sections.

Full API reference: cargo doc -p otel --no-deps --features otel-2025 (add features you use).