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
AWS Otel middleware not populating attributes for DynamoDB #2260
Comments
I think your analysis is correct. Can you open a PR to update this? As the |
Thank you for looking into this, yes, I will open a PR to address this. |
noliva
pushed a commit
to noliva/opentelemetry-go-contrib
that referenced
this issue
May 13, 2022
…t added because of a wrong name in the servicemap.
noliva
added a commit
to noliva/opentelemetry-go-contrib
that referenced
this issue
May 16, 2022
…t added because of a wrong name in the servicemap.
This looks to have been resolved by #2272 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
When using the Otel middleware, no attributes like tableName get populated in the span.
This is how I'm instrumenting the code.
When the middleware is trying to detect the
ServiceID
here the function returnsDynamoDB
, however, when it later looks for theDefaultAttributeSetter
it can not get theDynamoDBAttributeSetter
because theservicemap
looks like thisThe key of the map references the
signingNameKey
and not theserviceIDKey
.Proposal
I believe that the servicemap should be updated to reflect the
serviceIDKey
, so it would look like this.Is that the case or am I doing something wrong in the process?
The text was updated successfully, but these errors were encountered: