Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trace data to response headers #9846

Open
shameekagarwal opened this issue Nov 12, 2023 · 3 comments
Open

Add trace data to response headers #9846

shameekagarwal opened this issue Nov 12, 2023 · 3 comments
Labels
enhancement New feature or request needs triage New issue that requires triage

Comments

@shameekagarwal
Copy link

shameekagarwal commented Nov 12, 2023

Is your feature request related to a problem? Please describe.

e.g. a get request fails
when searching through trace / logs
currently, we would have to use tricks like "filter by latest operations", "filter by exception", etc
if the response headers included the trace and span ids
searching through trace / logs becomes much easier

currently, my understanding is that we can use extensions for this
if this feature can be configured via a java system property in otel agent
would be very helpful for debugging

Describe the solution you'd like

configuring this on the otel agent via an environment variable / system property

Describe alternatives you've considered

using an extension - maintenance overhead not worth it for such a small feature imho

Additional context

No response

@shameekagarwal shameekagarwal added enhancement New feature or request needs triage New issue that requires triage labels Nov 12, 2023
@trask
Copy link
Member

trask commented Nov 15, 2023

this has been requested a few times now, I suspect it would make a good experimental feature

@aayushi760
Copy link

How can we use Extension to fetch it?

@shameekagarwal
Copy link
Author

@aayushi760
my understanding - extension is a way to add custom functionality to agent very easily
caveat is of course you have to maintain it, which i didn't like
here is an example, maybe it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage New issue that requires triage
Projects
None yet
Development

No branches or pull requests

3 participants