DataDog / datadog-lambda-js

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

chore: refactor enhanced metrics lambda arn parsing #428

Closed duncanista closed 6 months ago

duncanista commented 10 months ago

What does this PR do?

Refactors code involving parsing for AWS Lambda ARN.

Motivation

Some methods being refactored here are going to be used later in tracing. So I decided to refactor everything related to those methods, making it more simpler and readable.

Testing Guidelines

Updated unit tests.

Additional Notes

n/a

Types of Changes

Check all that apply