Change8
Error1 reports

Fix TelemetryOptionalImportError

in OpenTelemetry Python

Solution

TelemetryOptionalImportError usually means you're trying to use a feature (like a specific exporter) that requires an optional dependency which hasn't been installed. Fix it by installing the missing dependency using `pip install <package_name>`, where `<package_name>` is the name of the optional package needed, often indicated in the traceback or documentation for the feature you're using (e.g., `pip install opentelemetry-exporter-otlp-proto-grpc` for the OTLP exporter). Rerun your code after installation.

Related Issues

Real GitHub issues where developers encountered this error:

Timeline

First reported:May 28, 2025
Last reported:May 28, 2025

Need More Help?

View the full changelog and migration guides for OpenTelemetry Python

View OpenTelemetry Python Changelog