opentelemetry-api 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/opentelemetry/context/propagation/composite_propagator.rb +8 -12
- data/lib/opentelemetry/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d08aa373b1b789dfeaa4541beb9c6cc77f5338a1fd8031a33c6ab7d9e68fc228
|
4
|
+
data.tar.gz: f93c6d644183106c76eae7920fd0dc51fba1bcc7ab15dfab1ed55dab0b0e48df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69f567cc86c5d6be5a6e6ba6b777bfff01277bfcaf417c8130c32b237ee2596aa94963dc08d22a843683deff6de67fd90a7902f48894044d9f912e82bbb8ae43
|
7
|
+
data.tar.gz: 26dfc71e399df415210cad456ccbf2e6f8848161eb1a3bc77a0b3180eb94c07fc7447bb8128bb8d3ea11ecb52ce29038435b0c09e8337d9c31036ab574f87f7f
|
data/LICENSE
CHANGED
@@ -186,7 +186,7 @@
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
187
187
|
identification within third-party archives.
|
188
188
|
|
189
|
-
Copyright
|
189
|
+
Copyright 2020 OpenTelemetry Authors
|
190
190
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
192
192
|
you may not use this file except in compliance with the License.
|
@@ -38,12 +38,10 @@ module OpenTelemetry
|
|
38
38
|
# @return [Object] carrier
|
39
39
|
def inject(carrier, context = Context.current, &setter)
|
40
40
|
@injectors.inject(carrier) do |memo, injector|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
carrier
|
46
|
-
end
|
41
|
+
injector.inject(memo, context, &setter)
|
42
|
+
rescue => e # rubocop:disable Style/RescueStandardError
|
43
|
+
OpenTelemetry.logger.warn "Error in CompositePropagator#inject #{e.message}"
|
44
|
+
carrier
|
47
45
|
end
|
48
46
|
end
|
49
47
|
|
@@ -63,12 +61,10 @@ module OpenTelemetry
|
|
63
61
|
# carrier
|
64
62
|
def extract(carrier, context = Context.current, &getter)
|
65
63
|
@extractors.inject(context) do |ctx, extractor|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
ctx
|
71
|
-
end
|
64
|
+
extractor.extract(carrier, ctx, &getter)
|
65
|
+
rescue => e # rubocop:disable Style/RescueStandardError
|
66
|
+
OpenTelemetry.logger.warn "Error in CompositePropagator#extract #{e.message}"
|
67
|
+
ctx
|
72
68
|
end
|
73
69
|
end
|
74
70
|
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: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ipsa
|
@@ -206,7 +206,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
206
206
|
requirements:
|
207
207
|
- - ">="
|
208
208
|
- !ruby/object:Gem::Version
|
209
|
-
version: 2.
|
209
|
+
version: 2.5.0
|
210
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
212
|
- - ">="
|