AWS instrumentation not adding request specific info (e.g. SQS message attributes) #2108
Labels
bug
Something isn't working
comp:instrumentation.aws
Things related to OpenTelemetry.Instrumentation.AWS
Component
OpenTelemetry.Instrumentation.AWS
Package Version
Runtime Version
net8.0
Description
AWS instrumentation used to add OTel context (e.g. traceparent) as message attributes in SQS & SNS messages in 1.1.0-beta.4 and lower versions.
However, since 1.1.0-beta.5, it's no longer sending these message attributes.
Steps to Reproduce
Expected Result
We see a "traceparent" header in the message, with console output like this:
(This is the case when using 1.1.0-beta.4)
Actual Result
We don't see any message attributes. Console output is like this:
Additional Context
This is likely caused by the change to not add an OTel handler before the
Marshaller
here:https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/1974/files#diff-6195c65008a9029c5e01df0537d42a4bada85ccf240e4e3e86cd4224e8b8a84aL37-L42
Now, all OTel related processing is done after the request has materialized, and any changes to
IRequestContext.OriginalRequest
won't affect the request body that's actually sent.The text was updated successfully, but these errors were encountered: