datadog-lambda 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/datadog/lambda.rb +2 -2
- data/lib/datadog/lambda/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 300ec79cee959b800acfbb7db97f2495cd73357dbbf2982e3fa471912c21c4eb
|
4
|
+
data.tar.gz: 8854a16bbafcaba922d387f6923fde1340ba788284c72ec6affc1afa373a1184
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02aa89e21441a5d66ac6af0568e1fb9e441f04d392744ee0848b2b229a9e47305ac08120b8f18b0b68889c99c4e618ecad812667ff34244185e4ebd1fadb9f03
|
7
|
+
data.tar.gz: fc9da6f32e2a9802bee2cfe29953ace582fbeda26a94fde8e6a1064ee80021e78783562d21d66b29c040fe6540c02808bcecc1594af73e1537c66f9f6009c0d4
|
data/lib/datadog/lambda.rb
CHANGED
@@ -122,7 +122,7 @@ module Datadog
|
|
122
122
|
return false unless do_enhanced_metrics?
|
123
123
|
|
124
124
|
etags = gen_enhanced_tags(context)
|
125
|
-
metric("aws.lambda.enhanced.#{metric_name}", 1, etags)
|
125
|
+
metric("aws.lambda.enhanced.#{metric_name}", 1, **etags)
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
@@ -131,7 +131,7 @@ module Datadog
|
|
131
131
|
# enhanced metrics
|
132
132
|
def self.do_enhanced_metrics?
|
133
133
|
dd_enhanced_metrics = ENV['DD_ENHANCED_METRICS']
|
134
|
-
return
|
134
|
+
return true if dd_enhanced_metrics.nil?
|
135
135
|
|
136
136
|
dd_enhanced_metrics.downcase == 'true'
|
137
137
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datadog-lambda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Datadog, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02
|
11
|
+
date: 2020-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-xray-sdk
|