DataDog / datadog-lambda-js

The Datadog AWS Lambda Library for Node
Apache License 2.0
113 stars 35 forks source link

feat: support sending metrics before handler initialization #524

Closed duncanista closed 8 months ago

duncanista commented 8 months ago

What does this PR do?

Allows customer to use the API sendDistributionMetric and sendDistributionMetricWithDate outside of the handler.

Motivation

515

Testing Guidelines

Additional Notes

SVLS-4633

Types of Changes

Check all that apply

codecov-commenter commented 8 months ago

Codecov Report

Attention: Patch coverage is 81.39535% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 81.89%. Comparing base (dadad52) to head (5b2885d).

:exclamation: Current head 5b2885d differs from pull request most recent head 59d713d. Consider uploading reports for the commit 59d713d to get more accurate results

Files Patch % Lines
src/index.ts 60.00% 6 Missing :warning:
src/utils/log.ts 60.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #524 +/- ## ========================================== + Coverage 81.75% 81.89% +0.13% ========================================== Files 54 55 +1 Lines 2209 2248 +39 Branches 515 519 +4 ========================================== + Hits 1806 1841 +35 - Misses 337 343 +6 + Partials 66 64 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.