DataDog / datadog-lambda-js

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

feat: Support kms encrypted API keys for creating distribution metric… #402

Closed astuyve closed 1 year ago

astuyve commented 1 year ago

…s directly using aws sdk v3 in node18

What does this PR do?

Fixes #395

Motivation

Users directly sending custom metrics from Lambda using node 18 previously had to supply their own version of the kms client from the aws sdk v2.

This code honors both v2 sdk or v3 sdk. We can see in node 18, the v3 kms client is loaded:

image

and I confirmed metrics are sent properly:

image

Testing Guidelines

Manually as well as unit tests.

Additional Notes

Types of Changes

Check all that apply