Repository navigation
Migrate Google Cloud Trace export to OTLP protobuf - #1069
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1069 +/- ##
=======================================
Coverage ? 96.13%
=======================================
Files ? 49
Lines ? 1189
Branches ? 206
=======================================
Hits ? 1143
Misses ? 46
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
cmraible
force-pushed
the
codex/cloud-trace-otlp
branch
from
November 16, 2026 15:48
4d630de to
16d69be
Compare
|
✅ Deployed to staging (tree: 98f5fdc1b7992e5c7c78871cca6e3dfef753e44d) |
|
✅ Deployed to staging (tree: 98f5fdc1b7992e5c7c78871cca6e3dfef753e44d) |
|
✅ Deployed to staging (tree: 98f5fdc1b7992e5c7c78871cca6e3dfef753e44d) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
no refs
Note: this is a tracing only change; no user-facing changes expected.
Summary
The deprecated Google Cloud Trace exporter requires OpenTelemetry SDK 2.x and blocks the SDK 3 migration. Export GCP traces directly to the Telemetry API using OTLP HTTP/protobuf, with ADC headers refreshed for each export and the ADC project ID attached as a resource attribute.
This is the exporter migration proposed before the coordinated OpenTelemetry upgrades in #1019, #1021 and #1059.
Evidence
@opentelemetry/core/package.jsonwith SDK 3 in #1021 CI.Merge Danger
Door — two-way. Reverting restores the previous exporter.
Blast Radius — tracing.
Before rollout, enable
telemetry.googleapis.comand grant the runtime service accountroles/telemetry.tracesWriteron the destination project. If ADC specifies a quota project, grantroles/serviceusage.serviceUsageConsumerthere too.Live trace delivery remains unverified. Deploy to staging, send a request, and confirm the trace arrives in Cloud Trace before promoting. OTLP preserves resource and span attribute names, so check queries that relied on the legacy exporter's attribute remapping.
Google migration instructions