Quickstart
Instrument a minimal script in four steps.
Set Environment Variables
Initialize Telemetry
Call this once per process, typically at startup.
Add Instrumentation
Three primitives cover most cases:
Shut Down Cleanly
handle.shutdown() flushes pending spans and metrics, then shuts down the providers. Do not call force_flush() on the global providers manually; the handle encapsulates this correctly.
Complete Example
Run with NEMO_LENS_ENABLED=1 to export; without it, the script is a no-op at the OTel level.
Next Steps
- Configuration for the full env var reference and
NemoLensConfigoptions - Instrumentation Primitives for guidance on when to use each primitive
- Span Groups for information on how to control granularity
- Observability Stack to run Jaeger, Prometheus, and Grafana locally