-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/aws-serverless
SDK Version
9.38.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
- followed https://docs.sentry.io/platforms/javascript/guides/aws-lambda/
- set
SENTRY_TRACES_SAMPLE_RATE=1.0
Steps to Reproduce
Invoke Lambda function n times while it is still warm
Edit: After some more investigation I found out that this does not happen when disabling the OTel AwsLambdaInstrumentation. However, it also does not happen when running the OTel instrumention standalone without Sentry, so the issue seems to be constrained to the combination of Sentry SDK + Otel AwsLambdaInstrumentation
Expected Result
Have n traces show up in Sentry
Actual Result
n-1 traces, last one missing
following errors from @opentelemetry/instrumentation-aws-lambda
in the Lambda logs:
Sentry Logger [error]: Spans may not be exported for the lambda function because we are not force flushing before callback
Sentry Logger [error]: Metrics may not be exported for the lambda function because we are not force flushing before callback
Metadata
Metadata
Assignees
Labels
Type
Projects
Status