datadog-lambda 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f40ca893546c79c836081f4fb4a63aa6862e213f91453a7b630c25c59ca73ba3
4
- data.tar.gz: 01e664333a8a5f114363a6b79d47efa46ba464d1c36372ab4178a35010058245
3
+ metadata.gz: ca6cf663eccb791efbd864d07e484ff8af81f167c287031168f5b2c73cf6a2be
4
+ data.tar.gz: 60ec7b7457d071b32c6f00460b0b0311c01353deb116aafd48410176f6cc2e08
5
5
  SHA512:
6
- metadata.gz: 6330bddce249fd6263c3858d447fbb4789f5f280517ad9a25fa669e0ce33728ed6a46e4ee03757d954c8de366d27e6db9b2602b5629f4cc0bcee3bbb18c0d777
7
- data.tar.gz: b3e1c27fc86ce76afc6a7ceaed3161b26b34e21fac1eb38e211ec7c5c9668f5eb4ea4175ea88a3805c723054f9d2e1b0462951d9f08245296f39ad7e248b446f
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
- resource_names: request_context.function_name
70
+ functionname: function_name.nil? || function_name.empty? ? nil : function_name.downcase,
71
+ resource_names: function_name
70
72
  }
71
73
  }
72
74
  options
@@ -12,7 +12,7 @@ module Datadog
12
12
  module Lambda
13
13
  module VERSION
14
14
  MAJOR = 1
15
- MINOR = 12
15
+ MINOR = 13
16
16
  PATCH = 0
17
17
  PRE = nil
18
18
 
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.12.0
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: 2020-12-03 00:00:00.000000000 Z
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
- rubygems_version: 3.0.3
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