Closed joeyzhao2018 closed 8 months ago
Attention: Patch coverage is 82.05128%
with 7 lines
in your changes are missing coverage. Please review.
Project coverage is 82.08%. Comparing base (
3af0c75
) to head (ec245ce
).:exclamation: Current head ec245ce differs from pull request most recent head e9185ec. Consider uploading reports for the commit e9185ec to get more accurate results
Files | Patch % | Lines |
---|---|---|
src/trace/context/extractors/sqs.ts | 58.33% | 3 Missing and 2 partials :warning: |
src/trace/xray-service.ts | 92.59% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hmmm, the codecov report seems to highlight some important gaps where we return undefined or null, can we cover those? https://app.codecov.io/gh/DataDog/datadog-lambda-js/pull/511?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog
What does this PR do?
In the case where Java lambda ==> SQS ==> NodeJS lambda the tracecontext is injected into the
Records[i].attributes.AWSTraceHeader
. This PR refactors around XRayService and SQSEventTraceExtractor to extract that context out. Result:Motivation
Testing Guidelines
Additional Notes
Types of Changes
Check all that apply