-
Notifications
You must be signed in to change notification settings - Fork 1.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
extensions/file_storage: headerssetterextension + file_storage not working for otlp grpc exporter #11780
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I'll try to reproduce this and keep you posted. |
Thank you |
I think this isn't even a problem with the file storage, I think this is deeper, at the persistent queue from |
Thanks @jpkrohling for transferring. |
Hi, any updates on this issue? |
Persistent storage currently doesn't propagate the context, so all the metadata is dropped. @VihasMakwana did you have a chance to start working on it? If not, I can help. |
@dmitryax I started working on it but I got busy with some other tasks. My approach was to store context data as well when we save the data to the persistence queue. Do you have something similar in mind? |
The whole context? How would you serialize it? |
Well, not the whole context. I was planning to serialise only the metadata opentelemetry-collector/client/client.go Lines 89 to 102 in eb6fe00
Once we read data from persistence queue, we would also read the metadata and create a new context using opentelemetry-collector/client/client.go Lines 119 to 123 in eb6fe00
|
I was thinking of making it configurable if users are interested in keeping only particular metadata keys, but we can probably start with writing all metadata on disk. It shouldn't be a huge impact. |
@dmitryax Yup. I'll start working on this soon and roll out a draft. Thanks for your comments. |
Component(s)
extension/headerssetter, extension/storage/filestorage, exporter/otlpgrpc
What happened?
Description
When headers setter extension is used in conjunction with file_storage extension, the headers (from context variables) are not being set for the traces exported by otlp grpc trace exporter.
Steps to Reproduce
Setup file_storage extension and headerssetterextensior for adding a header from client metadata.
Expected Result
The otlp server will receive the header value from client metadata in the context.
Actual Result
Getting an empty value for the key.
Collector version
0.112.0
Environment information
Environment
OS: Mac OS X M1
Docker image version: otel/opentelemetry-collector-contrib:0.112.0
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: