Summary
opentelemetry-resourcedetector-gcp==1.13.0 (released 2026-07-22 from open-telemetry/opentelemetry-python-contrib#4749 / #4846) moved the public module path:
- before (≤1.12.0a0):
opentelemetry.resourcedetector.gcp_resource_detector
- after (1.13.0):
opentelemetry.resource.detector.gcp
opentelemetry-exporter-gcp-trace (including latest 1.12.0) still imports the old path at module import time, and depends on:
opentelemetry-resourcedetector-gcp ==1.*,>=1.5.0dev0
Pip prefers the new stable 1.13.0 over 1.12.0a0, so any fresh install of the exporter now fails with:
ModuleNotFoundError: No module named 'opentelemetry.resourcedetector'
when importing opentelemetry.exporter.cloud_trace.
Impact
Any service using Cloud Trace via this exporter breaks on image rebuild / fresh pip install after 1.13.0 was published. Workaround: pin opentelemetry-resourcedetector-gcp==1.12.0a0.
Expected / asks
- Tighten the exporter dependency (e.g. pin
<1.13 or ==1.12.0a0) and/or update imports to opentelemetry.resource.detector.gcp.
- Coordinate with the contrib migration — the 1.13.0 changelog describes a “move” but does not call out the import path change; the migration PR was labeled non-breaking.
Related
Summary
opentelemetry-resourcedetector-gcp==1.13.0(released 2026-07-22 from open-telemetry/opentelemetry-python-contrib#4749 / #4846) moved the public module path:opentelemetry.resourcedetector.gcp_resource_detectoropentelemetry.resource.detector.gcpopentelemetry-exporter-gcp-trace(including latest1.12.0) still imports the old path at module import time, and depends on:Pip prefers the new stable
1.13.0over1.12.0a0, so any fresh install of the exporter now fails with:when importing
opentelemetry.exporter.cloud_trace.Impact
Any service using Cloud Trace via this exporter breaks on image rebuild / fresh
pip installafter 1.13.0 was published. Workaround: pinopentelemetry-resourcedetector-gcp==1.12.0a0.Expected / asks
<1.13or==1.12.0a0) and/or update imports toopentelemetry.resource.detector.gcp.Related
opentelemetry-resourcedetector-gcp) to contrib open-telemetry/opentelemetry-python-contrib#4749