traces-backend-datadog 0.1.1 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/traces/backend/datadog/interface.rb +4 -4
- data/lib/traces/backend/datadog/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +5 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4463af8ffba538c86ed9fed92fca97e0859d77e0831f0dc55589174bde61da35
|
4
|
+
data.tar.gz: 3b46af6debf2032ddc1f544bd309f4019b784f93e4d44001a558573e93fff240
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 809c29aac8ee1cbb91f154607f35d6fe9170a6b079095878f46899f04f5bf78f148e2934ffb51edf0851c6c9d54ff8dec320eddb5a0d38593afbb466d85cf777
|
7
|
+
data.tar.gz: c16f4182afe7d68563104bd27dd81dffcff48383aaf96e1644e7a0075961933aed29ea8d81912592128affcd1a973feb6cbfe3e922d34bbcf8567205ea0f905d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -37,21 +37,21 @@ module Traces
|
|
37
37
|
::Datadog::Span.prepend(SpanInterface)
|
38
38
|
|
39
39
|
module Interface
|
40
|
-
def trace(name, attributes: {}, &block)
|
41
|
-
::Datadog.tracer.trace(name, tags: attributes, &block)
|
40
|
+
def trace(name, attributes: {}, resource: nil, &block)
|
41
|
+
::Datadog.tracer.trace(name, tags: attributes, resource: resource, &block)
|
42
42
|
end
|
43
43
|
|
44
44
|
def trace_context=(context)
|
45
45
|
if context
|
46
46
|
::Datadog.tracer.provider.context = ::Datadog::Context.new(
|
47
47
|
trace_id: context.trace_id,
|
48
|
-
span_id: context.
|
48
|
+
span_id: context.parent_id,
|
49
49
|
sampled: context.sampled?,
|
50
50
|
)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
def trace_context(span = Datadog.tracer.active_span)
|
54
|
+
def trace_context(span = ::Datadog.tracer.active_span)
|
55
55
|
return nil unless span
|
56
56
|
|
57
57
|
flags = 0
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traces-backend-datadog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
|
37
37
|
HiLJ8VOFx6w=
|
38
38
|
-----END CERTIFICATE-----
|
39
|
-
date:
|
39
|
+
date: 2022-01-27 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: traces
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.5.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.5.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: ddtrace
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,5 +111,5 @@ requirements: []
|
|
111
111
|
rubygems_version: 3.1.6
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
|
-
summary: A traces backend for
|
114
|
+
summary: A traces backend for Datadog.
|
115
115
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|