GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Added OpenTelemetry W3C Trace Context by SomilJain0112 · Pull Request #16168 · knative/serving

Conversation

@SomilJain0112

@SomilJain0112 SomilJain0112 commented Oct 19, 2025 •
edited by dprotaso
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Fixes #15990

Proposed Changes

Added OpenTelemetry W3C Trace Context support while maintaining full backward
compatibility with Zipkin B3 format.
Updated all the relevant files.

Release Note

Added support for OpenTelemetry W3C Trace Context (traceparent header) in request logging, while maintaining backward compatibility with Zipkin B3 format.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@SomilJain0112
Added OpenTelemetry W3C Trace Context support while maintaining full …
60bfca8
…backward compatibility with Zipkin B3 format.

Signed-off-by: Somil Jain <[email protected]>
@linux-foundation-easycla

linux-foundation-easycla Bot commented Oct 19, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: SomilJain0112 / name: Somil Jain (25b7c66, 60bfca8)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow

knative-prow Bot commented Oct 19, 2025

Copy link
Copy Markdown

Welcome @SomilJain0112! It looks like this is your first PR to knative/serving 🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 19, 2025
@knative-prow

knative-prow Bot commented Oct 19, 2025

Copy link
Copy Markdown

Hi @SomilJain0112. Thanks for your PR.

I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow
knative-prow Bot requested review from dsimansk, gauron99 and skonto October 19, 2025 13:53
@dprotaso

dprotaso commented Oct 19, 2025

Copy link
Copy Markdown
Member

/ok-to-test

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 19, 2025
@codecov

codecov Bot commented Oct 19, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.02%. Comparing base (54868c2) to head (25b7c66).
⚠️ Report is 42 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16168      +/-   ##
==========================================
- Coverage   80.08%   80.02%   -0.07%     
==========================================
  Files         214      215       +1     
  Lines       16940    13290    -3650     
==========================================
- Hits        13566    10635    -2931     
+ Misses       3015     2295     -720     
- Partials      359      360       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dprotaso
dprotaso reviewed Oct 19, 2025
View reviewed changes
Comment thread pkg/http/trace.go Outdated
return b3TraceID
}

if b3TraceID := h.Get("X-B3-Traceid"); b3TraceID != "" {

@dprotaso dprotaso Oct 19, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this fallback? I thought Get should look up a canonical version of the key.

https://pkg.go.dev/net/http#Header.Get

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkg/http/trace.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkg/http/trace.go Outdated
// It supports both W3C Trace Context (traceparent) and B3 (X-B3-TraceId) formats.
func ExtractTraceID(h http.Header) string {
if traceparent := h.Get("traceparent"); traceparent != "" {
parts := strings.Split(traceparent, "-")

@dprotaso dprotaso Oct 19, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could use strings.SplitN with N == 3

https://pkg.go.dev/strings#SplitN

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dprotaso

dprotaso commented Oct 20, 2025

Copy link
Copy Markdown
Member

We should also update this test

serving/test/e2e/logging_test.go

Line 51 in 736b4c4

func TestRequestLogs(t *testing.T) {

That was the original reason for the issue

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SomilJain0112
Fixed linting issue, removed fallback
25b7c66
Signed-off-by: Somil Jain <[email protected]>
@SomilJain0112

SomilJain0112 commented Oct 28, 2025

Copy link
Copy Markdown
Contributor Author

Hii @dprotaso ,
Addressed all of your comments and made corresponding change. Please review.
Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dprotaso

dprotaso commented Oct 28, 2025

Copy link
Copy Markdown
Member

/hold for release

we'll revist this after we cut 1.20 today

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 28, 2025
@dprotaso dprotaso mentioned this pull request Nov 18, 2025
queue-proxy:Invalid request log template #15981
Closed
@dprotaso

dprotaso commented Nov 18, 2025

Copy link
Copy Markdown
Member

@SomilJain0112 thanks for the change

/lgtm
/approve

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot assigned dprotaso Nov 18, 2025
@dprotaso

dprotaso commented Nov 18, 2025

Copy link
Copy Markdown
Member

/hold cancel

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Nov 18, 2025
@knative-prow

knative-prow Bot commented Nov 18, 2025

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, SomilJain0112

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [dprotaso]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 18, 2025
@knative-prow
knative-prow Bot merged commit 090b6ae into knative:main Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dprotaso dprotaso dprotaso left review comments
@dsimansk dsimansk Awaiting requested review from dsimansk
@gauron99 gauron99 Awaiting requested review from gauron99
@skonto skonto Awaiting requested review from skonto

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dprotaso dprotaso

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

change X-B3-Traceid to OTel

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@SomilJain0112 @dprotaso
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.