DataDog / datadog-lambda-go

The Datadog AWS Lambda package for Go
Apache License 2.0
59 stars 40 forks source link

Fixes For Tracing #60

Closed nhinsch closed 3 years ago

nhinsch commented 3 years ago

What does this PR do?

Fix some tracing bugs:

Also:

Other minor things:

Motivation

There was a customer issue with an extra span appearing in their trace. This was an opportunity to more broadly revisit this feature to look for possible issues and tighten up the code.

Testing Guidelines

Manual testing and unit tests.

Types of changes

Checklist

codecov-io commented 3 years ago

Codecov Report

Merging #60 (dad4f2d) into main (8aafaf9) will decrease coverage by 1.84%. The diff coverage is 47.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #60      +/-   ##
==========================================
- Coverage   82.56%   80.72%   -1.85%     
==========================================
  Files          12       12              
  Lines         608      607       -1     
==========================================
- Hits          502      490      -12     
- Misses         83       94      +11     
  Partials       23       23              
Impacted Files Coverage Δ
ddlambda.go 80.00% <0.00%> (ø)
internal/trace/listener.go 59.18% <35.00%> (-2.22%) :arrow_down:
internal/trace/context.go 75.00% <56.75%> (-12.16%) :arrow_down:
internal/metrics/processor.go 96.87% <0.00%> (+3.12%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8aafaf9...dad4f2d. Read the comment docs.

nhinsch commented 3 years ago

@DarcyRaynerDD re: the test coverage, I checked and I didn't see any substantial new untested logic.