-
Notifications
You must be signed in to change notification settings - Fork 873
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
Support more span attributes in the AWS lambda wrapper #1773
Comments
Yup this one probably needs an update in the spec.
I think this is |
For resource attributes, it probably makes sense to keep them together with other resource providers instead of instrumentation, so adding |
Nice! It was absent from the trace semantic conventions doc - I should probably add it there.
Yep, that was exactly my intention, but in the Javaagent. I think that putting it in otel-java makes more sense though -- will add it there. Thanks for the suggestion! |
By the way @anuraaga : do you know if it's possible to get the account id from something other than the ARN? My idea was to just extract it from the ARN, but then again it cannot be a resource attribute. |
Also, regarding the execution environment: I thought about it and decided to use more generic |
The aim of this issue is to introduce support for most of the FAAS/cloud attributes defined in the spec. Currently only
faas.execution
is added to the span.I think that the following attributes can be added pretty easily:
cloud.provider
cloud.region
faas.name
faas.version
faas.id
- this one is interesting, because it's marked as a resource attribute in the spec; in the context of AWS lambda functions ARN is used here and with the current implementation it's impossible to add it as a resource (because it can only be extracted from a lambdaContext
passed as a function parameter; the tracer is initialized before that happens)Also, I'm planning to file a new spec issue so that the following things can be added (so this story will probably evolve in time):
For
APIGatewayProxyRequestEvent
s I believe that we can implement most of the HTTP server spec - not sure about other event types though.The text was updated successfully, but these errors were encountered: