-
Notifications
You must be signed in to change notification settings - Fork 599
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
boto3sqs: Do not override propagator-determined key #1202
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Hi, I stumbled upon this while looking for the right way of "propagating" context across queues and other asynchronous means. It doesn't seem like the spec here covers such use cases. It is apparent that we already have a divergence in handling such propagation. Just a suggestion, wouldn't it makes more sense if we could somehow agree upon the details and make it part of the spec (or recommendations)? I'm not familiar with how things work when it comes to OTEL spec, any insights will be much appreciated =) |
This instrumentation is the first I have seen that came up with modifying the key names determined by the propagator. There is discussion on context propagation for messaging in general at open-telemetry/oteps#192, but it doesn't cover the particular details about how to transport the context either. You could add a comment there. |
Hey, I apologize it took me a while to get to it. |
The boto3sqs instrumentation prepends "otel." to all attributes it adds to SQS messages (relevant code:
opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-boto3sqs/src/opentelemetry/instrumentation/boto3sqs/__init__.py
Lines 56 to 82 in 7c75b38
The reasons cited at https://www.oxeye.io/blog/diving-into-opentelemetrys-specs:
TextMapPropagator.fields
, although it is meant for listing injected fields, these will usually be the same as extracted ones. This is also what Node.Js does: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/1db1fecc16ecb3dbad530de530418260e54c087a/plugins/node/opentelemetry-instrumentation-aws-sdk/src/services/sqs.ts#L71-L75So I suggest to remove the
otel.
prefix and instead useTextMapPropagator.fields
to ensure the required attributes are fetched.CC @oxeye-nikolay
The text was updated successfully, but these errors were encountered: