-
Notifications
You must be signed in to change notification settings - Fork 539
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
faas.id incorrectly used as span attribute #442
Comments
@willarmiros mind if I assign this to you? |
@dyladan Sure! |
It turns out this is actually a known issue. The Here's the original spec issue pointing this out: open-telemetry/opentelemetry-specification#1261 This would either be solved by:
|
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
@willarmiros looks like there has been no spec movement on this since trace GA. Think now might be a good time to try to tackle this? |
We're talking about related items in the sampling SIG with respect to exposing resource attributes to samplers to inform sampling decisions & whether the Resources should be provided for every sampling decision or just at Sampler creation - I'll bring up this issue at the next sampling SIG |
@willarmiros any update here? |
Unfortunately due to internal limitations Lambda is not able to expose its ARN at startup. So it seems we are blocked on open-telemetry/opentelemetry-specification#1298 to get this fixed. |
Meanwhile spec allows to set For AWS it would be possible to set it on resource by delaying resource detection until first invocation but on e.g. azure a single OS process (and therefore single global TracerProvider) may host several functions which have different ids therefore resource is not applicable at all. |
interesting I missed that wording in the spec. thanks for clarifying. i'll close this then |
faas.id is used as a span attribute here, but should be a resource attribute. I left it here to make this PR as small as possible while passing and changing no behavior. I will create a follow up bug to fix this.
Originally posted by @dyladan in #440 (comment)
The text was updated successfully, but these errors were encountered: