traces-backend-datadog 0.1.2 → 0.2.2

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: af613988f319700dc4e67c51b1eafdff39a8c4523642937a1661789ba87c93f0
4
- data.tar.gz: 3be591c10995b17d1a68e89b91512a04d680b09570f7669bc68190d1cedff5ad
3
+ metadata.gz: b0a183caf86af771c4aa92753557357acd0f1ea77b3a0212f06302c405fb4c31
4
+ data.tar.gz: 580c70c389d8fe0b058b52fb0654a7f395fa430ad714a0509c35756df08f7f9c
5
5
  SHA512:
6
- metadata.gz: 5545b99bc87cf3d90f539845d43f1b9a91d9c4836b20c02da644452384360883ac355c466037fd168127c5308ff4ed6ae7e80360e1063290a684deaf83bafe4b
7
- data.tar.gz: a420aa54b26a2fb2a1f569141cdb1aa4bac8c9b384720f903cfaf2085aae1153712f3a8a1a9b91817b129ceeeadf92ef542ced57cf4dd9fd7c164d2f3a0a5e35
6
+ metadata.gz: e7ff71c75078a63907b3b23f67ebbe0daa724d65006b694ecfff9ccb0b566c3313579fdf2c1b7c01df2e3c8943b75a3f5a96ac03ea67ef38962f65190cd8b721
7
+ data.tar.gz: 5bc284e6fad54df93cf8d83cc34388cc071f0f8d963bd555dd512c31873fa30221e0956a88c265a8e9bca0dea3eaa29a913405db8c67a272be1218147554fa13
checksums.yaml.gz.sig CHANGED
Binary file
@@ -37,15 +37,15 @@ 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
@@ -23,7 +23,7 @@
23
23
  module Traces
24
24
  module Backend
25
25
  module Datadog
26
- VERSION = "0.1.2"
26
+ VERSION = "0.2.2"
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.2
4
+ version: 0.2.2
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-02-03 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