-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[pkg/ottl] Cannot access flags from span context #34739
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@TylerHelmuth If this is a beginner friendly issue can I work on it? |
@Annosha Sure it is yours |
Hey @TylerHelmuth, Could you assign this to me please? |
@niko-renko Can you talk more about your use case? The W3C specification for the flags only contains two flags, and it's my understanding that the From what I can tell, we should offer a read-only |
Reading more of the field definition, it looks like there are a few more flags that can be stored in the field, but I still think we should consider offering paths for each flag. We could potentially offer something like |
@evan-bradley to start can we implement it like we implemented flags for logs |
Didn't realize logs had a flags field as well, thanks for pointing that out. Are you ware of any usages of that field? I think the UX is likely not very good:
Unless users are looking for only access to the raw bit sequence, I think we should consider implementing something different for traces and look to update the logs context to match once we're happy with it. |
I am not. If the current logs implementation is not useful I am ok with implementing flags for spans with specific flags in mind, but I do think we should make a generic path like logs in case there is some custom function someone wants to build that does something with the raw flags. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
pkg/ottl
What happened?
Description
Cannot access flags from span context. Making a statement that uses
flags
will fail.Steps to Reproduce
Make & Use a transformer:
Expected Result
Spans will have a
flags
attribute that contain theflags
values from the span context.Actual Result
Collector version
v0.107.0
Environment information
Environment
OS: Ubuntu 20
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: