DataDog / datadog-lambda-rb

The Datadog AWS Lambda Layer for Ruby
Apache License 2.0
9 stars 8 forks source link

[SLS-318] Add Ruby layer enhanced metrics #10

Closed agocs closed 4 years ago

agocs commented 4 years ago

What does this PR do?

This adds the Invocations and Errors enhanced metrics to the Ruby lambda layer.

To be done:

Testing Guidelines

Log output in the demo environment:

{"e":1580150180,"m":"aws.lambda.enhanced.invocations","t":["dd_lambda_layer:datadog-ruby25","functionname:hello-dog-ruby-dev-helloRuby25","region:us-east-1","account_id:172597598159","memorysize:128","cold_start:false","runtime:Ruby 2.5.7"],"v":1}
{"e":1580150180,"m":"aws.lambda.enhanced.errors","t":["dd_lambda_layer:datadog-ruby25","functionname:hello-dog-ruby-dev-helloRuby25","region:us-east-1","account_id:172597598159","memorysize:128","cold_start:false","runtime:Ruby 2.5.7"],"v":1}

image