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

feat(instrumentation-aws-lambda): In AWS Lambda instrumentation, extend invocation span start time back to Lambda environment startup time on coldstart #2533

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

serkan-ozal
Copy link
Contributor

Which problem is this PR solving?

Currently, AWS Lambda instrumentation doesn't take Lambda startup time into account while calculating invocation span start time on coldstarts. So, this behavior leads to reporting dramatically incorrect invocation span duration.

Short description of the changes

In this PR, Lambda environment start time is used as invocation span start time on coldstarts, so reported invocation span time also includes initialization time too.

Copy link

codecov bot commented Nov 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.75%. Comparing base (5eb61d8) to head (39cf372).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2533   +/-   ##
=======================================
  Coverage   90.75%   90.75%           
=======================================
  Files         169      169           
  Lines        8018     8019    +1     
  Branches     1632     1633    +1     
=======================================
+ Hits         7277     7278    +1     
  Misses        741      741           
Files with missing lines Coverage Δ
...-instrumentation-aws-lambda/src/instrumentation.ts 93.64% <100.00%> (+0.03%) ⬆️

… to Lambda environment startup time on coldstart
@serkan-ozal serkan-ozal force-pushed the feat/instrumentation/aws-lambda/extend-start-time-back-to-startup-time-on-coldstart branch from ebc9ea8 to 39cf372 Compare November 16, 2024 09:20
@serkan-ozal serkan-ozal marked this pull request as draft November 17, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant