ddtrace 1.4.1 → 1.4.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: '01987691359b14541248048bb2f720031b4f0f0ca0be8fade0f6d0daf7aef8cc'
4
- data.tar.gz: b2cce425177f3d619d0064d88ffb52073515b8d390e054117a160eac21e939d5
3
+ metadata.gz: e708799bd5320bcc45e0cd79d9893ef278ea1b30205058cae88ed9409371bd56
4
+ data.tar.gz: c34df6aaebb0a8a16b68a6ccd12397b101fe5e74f450b599d9a94bb01cc272b5
5
5
  SHA512:
6
- metadata.gz: 7232b588ee13d8a47a1fccbe39a8753a19a4e9c3b0b2dee2cb278a64b183500ec9859cfecffda8c128971bf88c93b148e6f915c2d7906139d1df050b173df42c
7
- data.tar.gz: 2605640bffc586a0fd8bb38139d49fa6dad9f04bfe91a0e672cdd04a6c8a8a36896be5322a4b78ecab37175cd600bdc144109646712265b49bad4e103cc1ab5e
6
+ metadata.gz: f33d2ddfb796efa2dfda6b5b02dab623e8fcfbcf263cb820a0e78d291f49dc06e587e535c7a8afe40e26c830b2b0dac7539c4302ed76aa24579560fa687ea154
7
+ data.tar.gz: 7cc6918e72984329af2f5a002a131d8ef965a276b9dc4ca74e1e6bda595f8c106f535c98bc69626e4394ba0f5c6a4e5103606e9946453bbe3ef8eb5d12922e0a
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.4.2] - 2022-09-27
6
+
7
+ ### Fixed
8
+
9
+ OpenTracing context propagation (#2191, #2289)
10
+
5
11
  ## [1.4.1] - 2022-09-15
6
12
 
7
13
  ### Fixed
@@ -2097,7 +2103,8 @@ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.3.1
2097
2103
 
2098
2104
  Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
2099
2105
 
2100
- [Unreleased]: https://github.com/DataDog/dd-trace-rb/compare/v1.4.1...master
2106
+ [Unreleased]: https://github.com/DataDog/dd-trace-rb/compare/v1.4.2...master
2107
+ [1.4.1]: https://github.com/DataDog/dd-trace-rb/compare/v1.4.1...v1.4.2
2101
2108
  [1.4.1]: https://github.com/DataDog/dd-trace-rb/compare/v1.4.0...v1.4.1
2102
2109
  [1.4.0]: https://github.com/DataDog/dd-trace-rb/compare/v1.3.0...v1.4.0
2103
2110
  [1.3.0]: https://github.com/DataDog/dd-trace-rb/compare/v1.2.0...v1.3.0
@@ -151,12 +151,10 @@ module Datadog
151
151
  tags: tags || {}
152
152
  )
153
153
 
154
- # Build or extend the OpenTracer::SpanContext
155
- span_context = if parent_span_context
156
- SpanContextFactory.clone(span_context: parent_span_context)
157
- else
158
- SpanContextFactory.build(datadog_context: datadog_context)
159
- end
154
+ span_context = SpanContextFactory.build(
155
+ datadog_context: datadog_context || datadog_tracer.send(:call_context),
156
+ baggage: parent_span_context ? parent_span_context.baggage.dup : {}
157
+ )
160
158
 
161
159
  # Wrap the Datadog span and OpenTracer::Span context in a OpenTracer::Span
162
160
  Span.new(datadog_span: datadog_span, span_context: span_context)
@@ -4,7 +4,7 @@ module DDTrace
4
4
  module VERSION
5
5
  MAJOR = 1
6
6
  MINOR = 4
7
- PATCH = 1
7
+ PATCH = 2
8
8
  PRE = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddtrace
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-15 00:00:00.000000000 Z
11
+ date: 2022-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -778,7 +778,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
778
778
  - !ruby/object:Gem::Version
779
779
  version: 2.0.0
780
780
  requirements: []
781
- rubygems_version: 3.3.3
781
+ rubygems_version: 3.2.15
782
782
  signing_key:
783
783
  specification_version: 4
784
784
  summary: Datadog tracing code for your Ruby applications