Skip to content
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

Incorrect Parent ID Assignment in root span for Node Lambda Functions #992

Open
alingamn opened this issue Nov 9, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@alingamn
Copy link

alingamn commented Nov 9, 2023

Describe the bug
In our application, we discovered an issue where the Node Lambda functions, which should ideally represent the root span, are being assigned a Parent ID.

This issue occurs when we create a Lambda function, add a node js layer, and send an exit call to downstream. According to the expected behavior, the Parent ID in the span generated from Lambda function should be null.

Steps to reproduce

  1. Create a Node js Lambda function.
  2. Add OpenTelemetry node js layer layer-nodejs/0.2.0 to the Lambda function.
  3. Send an exit call to SQS.
  4. Observe the Parent ID of the span generated for the lambda.

What did you expect to see?
The Parent ID for the root span, being from the Node lambda function, should be null.

What did you see instead?
Root span is being assigned a Parent ID instead of null.

What version of collector/language SDK version did you use?
Node.js 18.x for lambda
collector: v0.88.0

What language layer did you use?
Node JS

cc: @pavankrish123 @svrnm @noltak3

@alingamn alingamn added the bug Something isn't working label Nov 9, 2023
@tylerbenson
Copy link
Member

Do you have "Active Tracing" enabled for your lambda?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants