opentelemetry-api 1.0.1 → 1.0.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: b78ad94bb13917c6a8b6202d920944c1465eb634dc9776559a84149974f55b82
4
- data.tar.gz: 2454e81466acd5b7334a6e46f6f442b3e6a0b1afa8c33bf0fa1efdbdabb74da3
3
+ metadata.gz: 85960a6afb5657aa62490a88b174a18f17592ef4bff6b0be5a4dc07cd86f50fd
4
+ data.tar.gz: e9f6492ede00c699ccb7d2d05a6bb161f37196be55e5a73830b6799ad6a1af5e
5
5
  SHA512:
6
- metadata.gz: 6db7e0e3d83ed9c232dc0a88ada719283c24d6fbc9e5863a44c90646b129cef129d1a04a3a7ea12d77aa692db5ba4dc69a96e95e4e680f0045d4917470dcbe29
7
- data.tar.gz: d534d75d903d70b3db8fb838b9cb8562910cab8c98586f551f71cd9abe46cba97167a5298afa8472edcf3a96613a06b22060e29daecb4bb2d5a37f02c21f0f05
6
+ metadata.gz: '09097da2630ecd44d805690f28ddb8ea65ad59b70dfc40031f85fb271abf46213b37b44463d5430853d7a033d5e7a4f52a72304c4236575a0a29c8940231d013'
7
+ data.tar.gz: e7aebf486eb2021ee30ea4045f343e02bdddb49c20a9feeb8973c394aa0cdc55c0474ff3cd5e7693f3f620432f6c5db9a9beb3a4e10b49a1b5056e48d0588470
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-api
2
2
 
3
+ ### v1.0.2 / 2022-05-02
4
+
5
+ * FIXED: Text map propagator extraction should use argument context
6
+
3
7
  ### v1.0.1 / 2021-12-01
4
8
 
5
9
  * FIXED: Deprecate api rack env getter
@@ -45,7 +45,10 @@ module OpenTelemetry
45
45
  # @return [Context] context updated with extracted baggage, or the original context
46
46
  # if extraction fails
47
47
  def extract(carrier, context: Context.current, getter: Context::Propagation.text_map_getter)
48
- tp = TraceParent.from_string(getter.get(carrier, TRACEPARENT_KEY))
48
+ trace_parent_value = getter.get(carrier, TRACEPARENT_KEY)
49
+ return context unless trace_parent_value
50
+
51
+ tp = TraceParent.from_string(trace_parent_value)
49
52
  tracestate = Tracestate.from_string(getter.get(carrier, TRACESTATE_KEY))
50
53
 
51
54
  span_context = Trace::SpanContext.new(trace_id: tp.trace_id,
@@ -54,7 +57,7 @@ module OpenTelemetry
54
57
  tracestate: tracestate,
55
58
  remote: true)
56
59
  span = OpenTelemetry::Trace.non_recording_span(span_context)
57
- OpenTelemetry::Trace.context_with_span(span)
60
+ OpenTelemetry::Trace.context_with_span(span, parent_context: context)
58
61
  rescue OpenTelemetry::Error
59
62
  context
60
63
  end
@@ -6,5 +6,5 @@
6
6
 
7
7
  module OpenTelemetry
8
8
  ## Current OpenTelemetry version
9
- VERSION = '1.0.1'
9
+ VERSION = '1.0.2'
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2022-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ipsa
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: opentelemetry-test-helpers
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rake
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -187,10 +201,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
187
201
  licenses:
188
202
  - Apache-2.0
189
203
  metadata:
190
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.0.1/file.CHANGELOG.html
204
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.0.2/file.CHANGELOG.html
191
205
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/api
192
206
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
193
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.0.1
207
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-api/v1.0.2
194
208
  post_install_message:
195
209
  rdoc_options: []
196
210
  require_paths: