Skip to content

OTLP encodes trace/span ids as big-endian byte-arrays - #11250

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
mcculls/fix-otlp-span-id-encoding
May 2, 2026
Merged

OTLP encodes trace/span ids as big-endian byte-arrays#11250
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
mcculls/fix-otlp-span-id-encoding

Conversation

@mcculls

@mccullsmcculls commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Motivation

Found while doing further testing of OTLP trace export.

While data is usually little-endian in protobuf/OTLP, trace and span ids are kept as big-endian byte arrays.

Additional Notes

https://github.com/open-telemetry/opentelemetry-java/blob/main/api/all/src/main/java/io/opentelemetry/api/internal/OtelEncodingUtils.java#L99

Contributor Checklist

Jira ticket: [PROJ-IDENT]

Note:Once your PR is ready to merge, add it to the merge queue by commenting /merge./merge -c cancels the queue request. /merge -f --reason "reason" skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.

@mcculls
mcculls requested a review from a team as a code ownerApril 30, 2026 18:42
@mccullsmcculls added type: bug fix Bug fix tag: no release notes Changes to exclude from release notes inst: opentelemetry OpenTelemetry instrumentation labels Apr 30, 2026
@mcculls
mcculls requested review from mhlidd and mtoffl01April 30, 2026 18:42
@mcculls
mcculls enabled auto-merge May 1, 2026 19:43
@mcculls
mccullsforce-pushed the mcculls/fix-otlp-span-id-encoding branch from d9b115f to a91a809CompareMay 2, 2026 08:48
@mcculls
mcculls added this pull request to the merge queueMay 2, 2026
@dd-octo-sts

Copy link
Copy Markdown
Contributor

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351Bot commented May 2, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-05-02 09:53:25 UTC ℹ️ Start processing command /merge


2026-05-02 09:53:29 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-05-02 11:01:46 UTC ℹ️ MergeQueue: This merge request was merged

@github-merge-queue
github-merge-queueBot removed this pull request from the merge queue due to failed status checks May 2, 2026
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854dBot merged commit 937c8ff into masterMay 2, 2026
569 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854dBot deleted the mcculls/fix-otlp-span-id-encoding branch May 2, 2026 11:01
@github-actionsgithub-actionsBot added this to the 1.62.0 milestone May 2, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: opentelemetryOpenTelemetry instrumentationtag: no release notesChanges to exclude from release notestype: bug fixBug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@mcculls@dougqh@mhlidd