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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c91a5540309be0f2dcc70066b25eab314bed537321a6d4b8360b72077cb9da22
4
- data.tar.gz: 925121d6b30bf9cf3b1a17c30afbfdf5e328b0374b23a8daade2cf1d486e795f
3
+ metadata.gz: d08aa373b1b789dfeaa4541beb9c6cc77f5338a1fd8031a33c6ab7d9e68fc228
4
+ data.tar.gz: f93c6d644183106c76eae7920fd0dc51fba1bcc7ab15dfab1ed55dab0b0e48df
5
5
  SHA512:
6
- metadata.gz: 93299563d90db1b05e873f431e151dc1d2e7e05f54d0b5311985be42d15a3f33f50e3e35fb24e0ef063a26a3cc06333bcb304ee418dd590ed124c08416735b80
7
- data.tar.gz: e7edc0bde321596ec89fedc87c1209e35a6b306b22a87aa0e761a4a77cd3b4d9f0239a486f7444f280008c733e9a8378369cb0640fd60b58106bf256b9bd4e5c
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 [yyyy] [name of copyright owner]
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
- begin
42
- injector.inject(memo, context, &setter)
43
- rescue => e # rubocop:disable Style/RescueStandardError
44
- OpenTelemetry.logger.warn "Error in CompositePropagator#inject #{e.message}"
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
- begin
67
- extractor.extract(carrier, ctx, &getter)
68
- rescue => e # rubocop:disable Style/RescueStandardError
69
- OpenTelemetry.logger.warn "Error in CompositePropagator#extract #{e.message}"
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
@@ -6,5 +6,5 @@
6
6
 
7
7
  module OpenTelemetry
8
8
  ## Current OpenTelemetry version
9
- VERSION = '0.3.0'
9
+ VERSION = '0.4.0'
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: 0.3.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-03 00:00:00.000000000 Z
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.4.0
209
+ version: 2.5.0
210
210
  required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  requirements:
212
212
  - - ">="