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

otel_span_attr context if #68

Open
fede843 opened this issue Oct 1, 2024 · 0 comments
Open

otel_span_attr context if #68

fede843 opened this issue Oct 1, 2024 · 0 comments

Comments

@fede843
Copy link

fede843 commented Oct 1, 2024

I am trying to convert several headers into attributes.
The current approach is to go one by one, by using otel_span_attr
otel_span_attr has not if context. I cannot make it conditional. There is no way to keep the span clean, and end up with a bunch of empty attributes.
If otel_span_attr had if context, I could easily go one by one checking if exists. Or maybe there is another idea or proposal to make headers easy to convert other than this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant