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

Revert "Use the existing context if any to start the web spans (#1647)" #2626

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

Qard
Copy link
Collaborator

@Qard Qard commented Dec 20, 2022

What does this PR do?

This reverts commit 6c55168.

Motivation

The change was originally made to get AWS Lambda to connect web framework traces to an outer lambda span. The change however turns out to be unnecessary and caused issues for the tracer due to inheriting the active context if bootstrap code started a trace before starting the http server. This code is actually unreachable on Lambda so it should just be removed.

@Qard Qard added bug Something isn't working semver-patch serverless labels Dec 20, 2022
@Qard Qard requested a review from a team as a code owner December 20, 2022 00:48
@pr-commenter
Copy link

pr-commenter bot commented Dec 20, 2022

Benchmarks

Comparing candidate commit fc12cd1 in PR branch stop-inheriting-context-in-web with baseline commit b2cd49c in branch master.

Found 0 performance improvements and 1 performance regressions! Performance is the same for 965 cases.

@codecov
Copy link

codecov bot commented Dec 20, 2022

Codecov Report

Merging #2626 (fc12cd1) into master (b2cd49c) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #2626   +/-   ##
=======================================
  Coverage   89.00%   89.00%           
=======================================
  Files         298      298           
  Lines       10381    10381           
  Branches       33       33           
=======================================
  Hits         9240     9240           
  Misses       1141     1141           
Impacted Files Coverage Δ
packages/dd-trace/src/plugins/util/web.js 92.09% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Qard Qard merged commit 483861c into master Dec 20, 2022
@Qard Qard deleted the stop-inheriting-context-in-web branch December 20, 2022 22:37
Qard added a commit that referenced this pull request Dec 22, 2022
Qard added a commit that referenced this pull request Dec 22, 2022
Qard added a commit that referenced this pull request Dec 23, 2022
juan-fernandez pushed a commit that referenced this pull request Jan 3, 2023
juan-fernandez pushed a commit that referenced this pull request Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working semver-patch serverless
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants