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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85960a6afb5657aa62490a88b174a18f17592ef4bff6b0be5a4dc07cd86f50fd
|
4
|
+
data.tar.gz: e9f6492ede00c699ccb7d2d05a6bb161f37196be55e5a73830b6799ad6a1af5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09097da2630ecd44d805690f28ddb8ea65ad59b70dfc40031f85fb271abf46213b37b44463d5430853d7a033d5e7a4f52a72304c4236575a0a29c8940231d013'
|
7
|
+
data.tar.gz: e7aebf486eb2021ee30ea4045f343e02bdddb49c20a9feeb8973c394aa0cdc55c0474ff3cd5e7693f3f620432f6c5db9a9beb3a4e10b49a1b5056e48d0588470
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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
|
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.
|
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:
|
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.
|
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.
|
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:
|