datadog-lambda 1.12.0 → 1.13.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/trace/listener.rb +4 -2
- data/lib/datadog/lambda/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca6cf663eccb791efbd864d07e484ff8af81f167c287031168f5b2c73cf6a2be
|
4
|
+
data.tar.gz: 60ec7b7457d071b32c6f00460b0b0311c01353deb116aafd48410176f6cc2e08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1eb9090b949bbb8cd2ff4a94ee73d9dfba070268756edc511d471140e6d2f147ea59f462bfdfdc8f29b6b946fe29e8c247f60ee12ffd7f200825447ff78d1395
|
7
|
+
data.tar.gz: d91a50fb6ebe4d3c2cfc3146d25be43589bf06d36ea042f0c7e3d5493b8c5d15c641b8cacde3668d88e62b720a7687c876bee2d271c336f9b941a1326194c1e9
|
@@ -56,17 +56,19 @@ module Datadog
|
|
56
56
|
private
|
57
57
|
|
58
58
|
def get_option_tags(request_context:, cold_start:)
|
59
|
-
function_arn = request_context.invoked_function_arn.downcase
|
59
|
+
function_arn = request_context.invoked_function_arn.to_s.downcase
|
60
60
|
tk = function_arn.split(':')
|
61
61
|
function_arn = tk.length > 7 ? tk[0, 7].join(':') : function_arn
|
62
62
|
function_version = tk.length > 7 ? tk[7] : '$LATEST'
|
63
|
+
function_name = request_context.function_name
|
63
64
|
options = {
|
64
65
|
tags: {
|
65
66
|
cold_start: cold_start,
|
66
67
|
function_arn: function_arn,
|
67
68
|
function_version: function_version,
|
68
69
|
request_id: request_context.aws_request_id,
|
69
|
-
|
70
|
+
functionname: function_name.nil? || function_name.empty? ? nil : function_name.downcase,
|
71
|
+
resource_names: function_name
|
70
72
|
}
|
71
73
|
}
|
72
74
|
options
|
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: 1.
|
4
|
+
version: 1.13.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:
|
11
|
+
date: 2021-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-xray-sdk
|
@@ -133,7 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
|
-
|
136
|
+
rubyforge_project:
|
137
|
+
rubygems_version: 2.7.6
|
137
138
|
signing_key:
|
138
139
|
specification_version: 4
|
139
140
|
summary: Instruments your Ruby AWS Lambda functions with Datadog
|