Skip to content

Commit

Permalink
Merge branch 'main' into windows-intermittent-log-failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle authored Oct 29, 2024
2 parents e7bd0db + 555b062 commit 8b8d10b
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
end

it 'translates all the things' do
# TODO: See issue #1507 to fix
skip 'Intermittently fails' if RUBY_ENGINE == 'truffleruby'

OpenTelemetry.tracer_provider = OpenTelemetry::SDK::Trace::TracerProvider.new(resource: OpenTelemetry::SDK::Resources::Resource.telemetry_sdk)
tracer = OpenTelemetry.tracer_provider.tracer('tracer', 'v0.0.1')
other_tracer = OpenTelemetry.tracer_provider.tracer('other_tracer')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,6 @@
end

it 'translates all the things' do
# TODO: See issue #1507 to fix
skip 'Intermittently fails' if RUBY_ENGINE == 'truffleruby'

stub_request(:post, 'http://localhost:4318/v1/traces').to_return(status: 200)
processor = OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new(exporter)
tracer = OpenTelemetry.tracer_provider.tracer('tracer', 'v0.0.1')
Expand Down Expand Up @@ -635,7 +632,7 @@
)

assert_requested(:post, 'http://localhost:4318/v1/traces') do |req|
req.body == Zlib.gzip(encoded_etsr)
Zlib.gunzip(req.body) == encoded_etsr
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,6 @@
end

it 'translates all the things' do
skip 'Intermittently fails' if RUBY_ENGINE == 'truffleruby'

stub_request(:post, 'http://localhost:4318/v1/metrics').to_return(status: 200)
meter_provider.add_metric_reader(exporter)
meter = meter_provider.meter('test')
Expand Down Expand Up @@ -639,7 +637,7 @@
)

assert_requested(:post, 'http://localhost:4318/v1/metrics') do |req|
req.body == Zlib.gzip(encoded_etsr) # is asserting that the body of the HTTP request is equal to the result of gzipping the encoded_etsr.
Zlib.gunzip(req.body) == encoded_etsr
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,6 @@
end

it 'translates all the things' do
# TODO: See issue #1507 to fix
skip 'Intermittently fails' if RUBY_ENGINE == 'truffleruby'

stub_request(:post, 'http://localhost:4318/v1/traces').to_return(status: 200)
processor = OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new(exporter)
tracer = OpenTelemetry.tracer_provider.tracer('tracer', 'v0.0.1')
Expand Down Expand Up @@ -778,7 +775,7 @@
)

assert_requested(:post, 'http://localhost:4318/v1/traces') do |req|
req.body == Zlib.gzip(encoded_etsr)
Zlib.gunzip(req.body) == encoded_etsr
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions metrics_api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History: opentelemetry-metrics-api

### v0.1.1 / 2024-10-22

* FIXED: Refactor instrument validation

### v0.1.0 / 2024-07-31

Initial release.
2 changes: 1 addition & 1 deletion metrics_api/lib/opentelemetry/metrics/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
module OpenTelemetry
module Metrics
## Current OpenTelemetry metrics version
VERSION = '0.1.0'
VERSION = '0.1.1'
end
end
6 changes: 6 additions & 0 deletions metrics_sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History: opentelemetry-metrics-sdk

### v0.3.0 / 2024-10-22

* ADDED: Add basic metrics view
* FIXED: Coerce aggregation_temporality to symbol
* FIXED: Add warning if invalid meter name given

### v0.2.0 / 2024-08-27

* ADDED: Add basic periodic exporting metric_reader
Expand Down
2 changes: 1 addition & 1 deletion metrics_sdk/lib/opentelemetry/sdk/metrics/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module OpenTelemetry
module SDK
module Metrics
# Current OpenTelemetry metrics sdk version
VERSION = '0.2.0'
VERSION = '0.3.0'
end
end
end
2 changes: 1 addition & 1 deletion metrics_sdk/opentelemetry-metrics-sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 3.0'

spec.add_dependency 'opentelemetry-api', '~> 1.1'
spec.add_dependency 'opentelemetry-metrics-api'
spec.add_dependency 'opentelemetry-metrics-api', '~> 0.1.1'
spec.add_dependency 'opentelemetry-sdk', '~> 1.2'

spec.add_development_dependency 'benchmark-ipsa', '~> 0.2.0'
Expand Down

0 comments on commit 8b8d10b

Please sign in to comment.