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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3353a9a8e6a763dc49c145db3780f70550bac732d2285646fcbaed6fbe5fc50b
4
- data.tar.gz: 7a09dc24e5112c39d5fede0338cc18470e36770f7c6ffbc2434b326fb334ecd0
3
+ metadata.gz: 4463af8ffba538c86ed9fed92fca97e0859d77e0831f0dc55589174bde61da35
4
+ data.tar.gz: 3b46af6debf2032ddc1f544bd309f4019b784f93e4d44001a558573e93fff240
5
5
  SHA512:
6
- metadata.gz: e157c3d8b27c38aa1940011d3cbd625960e827047c4f81d1c7672d37b9ef9984a97b513f756acc7848af1a50de565cfcb0de04c811a557491fd22042b75e31cb
7
- data.tar.gz: 13e10d9f829f4e7ec11411f999fef64c6ce3cba26ce09c157984f195f78f60d5d28ce107b95f1c836e539e7b329e54ccbc115efb9fab6e378544f29d496130aa
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.span_id,
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
@@ -23,7 +23,7 @@
23
23
  module Traces
24
24
  module Backend
25
25
  module Datadog
26
- VERSION = "0.1.1"
26
+ VERSION = "0.2.1"
27
27
  end
28
28
  end
29
29
  end
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.1.1
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: 2021-10-18 00:00:00.000000000 Z
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.4.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.4.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 Open Telemetry.
114
+ summary: A traces backend for Datadog.
115
115
  test_files: []
metadata.gz.sig CHANGED
Binary file