opentelemetry-test-helpers 0.2.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: cd237508ac940ebf92dcfc6aa7746889a8abfe3bc65f79ac68b52097d6249f74
4
- data.tar.gz: 6e2fd84912d49ddc95fa3ec179d7f86dcd23bcc3c8fdafbd0e4ef07404105c03
3
+ metadata.gz: c2d3ac50ec54c723aa4343b0330fd8a72c68f5782cc794294221e38c927a49cf
4
+ data.tar.gz: 1199953f27ed30dd1a0e4d21153e5f434b251dd17b0b71eecada9a487c6cafec
5
5
  SHA512:
6
- metadata.gz: c41d529101597bdf7f8e6c34d00775a0575819f9ce956d5e60a0f0b2003274154d413fa173c0f3936e5b3839e706fc10a48b65668ef711fdfa120185dff441cd
7
- data.tar.gz: 900b42f72f917d8c1f05f8bc9225fc1ceecd9b32426c3b950ad051e0b1ce64a2e517a7b33e9ad8ca60e06e0f8bcdb227c65d85d12c52933104116b614cbb6af5
6
+ metadata.gz: d7966b7303ded467313e57a68fb2397fe824baebee4fb1ad87a3c37252e75eb1586f43e757dd193f104375a050a47e0e5b3821907bf89f0e42a2a5a1da15eb39
7
+ data.tar.gz: a6bd874dcf7a7b7d4a0867cbbefbbddb300a1f25f6c5bc8ea5f7fce68b4b60a73c1f468d3a1eaec5bf07cb4c174d1e6f52dd04fa7f8ebf22a4b54139803f3948
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History: opentelemetry-test-helpers
2
2
 
3
+ ### v0.4.0 / 2023-06-08
4
+
5
+ * BREAKING CHANGE: Remove support for EoL Ruby 2.7
6
+
7
+ * ADDED: Remove support for EoL Ruby 2.7
8
+
9
+ ### v0.3.0 / 2022-09-14
10
+
11
+ * ADDED: Support InstrumentationScope, and update OTLP proto to 0.18.0
12
+
3
13
  ### v0.2.0 / 2022-06-09
4
14
 
5
15
  * ADDED: Otlp grpc
@@ -7,6 +7,6 @@
7
7
  module OpenTelemetry
8
8
  ## Current OpenTelemetry Test Helpers version
9
9
  module TestHelpers
10
- VERSION = '0.2.0'
10
+ VERSION = '0.4.0'
11
11
  end
12
12
  end
@@ -55,24 +55,22 @@ module OpenTelemetry
55
55
  keys_to_delete.each { |k| ENV.delete(k) }
56
56
  end
57
57
 
58
- def with_ids(trace_id, span_id)
58
+ def with_ids(trace_id, span_id, &block)
59
59
  OpenTelemetry::Trace.stub(:generate_trace_id, trace_id) do
60
- OpenTelemetry::Trace.stub(:generate_span_id, span_id) do
61
- yield
62
- end
60
+ OpenTelemetry::Trace.stub(:generate_span_id, span_id, &block)
63
61
  end
64
62
  end
65
63
 
66
64
  def create_span_data(name: '', kind: nil, status: nil, parent_span_id: OpenTelemetry::Trace::INVALID_SPAN_ID,
67
65
  total_recorded_attributes: 0, total_recorded_events: 0, total_recorded_links: 0, start_timestamp: OpenTelemetry::TestHelpers.exportable_timestamp,
68
66
  end_timestamp: OpenTelemetry::TestHelpers.exportable_timestamp, attributes: nil, links: nil, events: nil, resource: nil,
69
- instrumentation_library: OpenTelemetry::SDK::InstrumentationLibrary.new('', 'v0.0.1'),
67
+ instrumentation_scope: OpenTelemetry::SDK::InstrumentationScope.new('', 'v0.0.1'),
70
68
  span_id: OpenTelemetry::Trace.generate_span_id, trace_id: OpenTelemetry::Trace.generate_trace_id,
71
69
  trace_flags: OpenTelemetry::Trace::TraceFlags::DEFAULT, tracestate: nil)
72
70
  resource ||= OpenTelemetry::SDK::Resources::Resource.telemetry_sdk
73
71
  OpenTelemetry::SDK::Trace::SpanData.new(name, kind, status, parent_span_id, total_recorded_attributes,
74
72
  total_recorded_events, total_recorded_links, start_timestamp, end_timestamp,
75
- attributes, links, events, resource, instrumentation_library, span_id, trace_id, trace_flags, tracestate)
73
+ attributes, links, events, resource, instrumentation_scope, span_id, trace_id, trace_flags, tracestate)
76
74
  end
77
75
  end
78
76
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-test-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.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: 2022-06-09 00:00:00.000000000 Z
11
+ date: 2023-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.73.0
103
+ version: '1.3'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.73.0
110
+ version: '1.3'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -168,10 +168,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
168
168
  licenses:
169
169
  - Apache-2.0
170
170
  metadata:
171
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-test-helpers/v0.2.0/file.CHANGELOG.html
171
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-test-helpers/v0.4.0/file.CHANGELOG.html
172
172
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/test_helpers
173
173
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
174
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-test-helpers/v0.2.0
174
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-test-helpers/v0.4.0
175
175
  post_install_message:
176
176
  rdoc_options: []
177
177
  require_paths:
@@ -180,14 +180,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
180
  requirements:
181
181
  - - ">="
182
182
  - !ruby/object:Gem::Version
183
- version: 2.6.0
183
+ version: '3.0'
184
184
  required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - ">="
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []
190
- rubygems_version: 3.1.6
190
+ rubygems_version: 3.2.33
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: A collection of helpers for testing OpenTelemetry Ruby