datadog-lambda 0.3.1 → 0.4.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d37e92d79f90e4049e303719d3639560e7b025e20a62c2199342603e9f76f71d
|
|
4
|
+
data.tar.gz: c82eb5b84734b2621220eb402e57ba1f88855f39ba94e6567bdde4a6bc6ea80c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6154dce5ec1743195799df476f5b0da7f13db96015822ecfcc4b42e560ba042b9b403355b33a060417c05efa2b9a99975e8fedc540cfea73c1f8e872b8d3985
|
|
7
|
+
data.tar.gz: 649a76d46ce8fc2ab5f22590137448ec77d518f7f27cb7518300a90ee00fae638250de6ebb486bcf8c3346fa7074257f901dab00b643b30b32e8a2611cf919e1
|
|
@@ -47,7 +47,7 @@ module Datadog
|
|
|
47
47
|
|
|
48
48
|
def current_trace_context(trace_context)
|
|
49
49
|
entity = XRay.recorder.current_entity
|
|
50
|
-
parent_id = entity.
|
|
50
|
+
parent_id = entity.id
|
|
51
51
|
{
|
|
52
52
|
trace_id: trace_context[:trace_id],
|
|
53
53
|
parent_id: convert_to_apm_parent_id(parent_id),
|
|
@@ -57,7 +57,7 @@ module Datadog
|
|
|
57
57
|
|
|
58
58
|
def read_trace_context_from_xray
|
|
59
59
|
segment = XRay.recorder.current_entity
|
|
60
|
-
parent_id = segment.
|
|
60
|
+
parent_id = segment.id
|
|
61
61
|
mode = segment.sampled ? SAMPLE_MODE_USER_KEEP : SAMPLE_MODE_USER_REJECT
|
|
62
62
|
{
|
|
63
63
|
trace_id: convert_to_apm_trace_id(segment.trace_id),
|
|
@@ -42,8 +42,9 @@ module Datadog
|
|
|
42
42
|
req[Datadog::Trace::DD_TRACE_ID_HEADER.to_sym] = context[:trace_id]
|
|
43
43
|
logger.debug("added context #{context} to request")
|
|
44
44
|
rescue StandardError => e
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
trace = e.backtrace.join("\n ")
|
|
46
|
+
logger.debug(
|
|
47
|
+
"couldn't add tracing context #{context} to request #{e}:\n#{trace}"
|
|
47
48
|
)
|
|
48
49
|
end
|
|
49
50
|
super(req, body, &block)
|
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.4.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: 2019-10-
|
|
11
|
+
date: 2019-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-xray-sdk
|