Skip to content

Make traces and metrics optional dependencies.#462

Merged
ioquatix merged 1 commit into
mainfrom
optional-traces-metrics-dependencies
Jul 22, 2026
Merged

Make traces and metrics optional dependencies.#462
ioquatix merged 1 commit into
mainfrom
optional-traces-metrics-dependencies

Conversation

@ioquatix

Copy link
Copy Markdown
Member

Summary

  • Remove metrics and traces from the runtime gemspec dependencies.
  • Add metrics and traces to the test/development bundle so provider tests and opt-in provider files still work.

Verification

  • ruby -Ilib -e 'spec = Gem::Specification.load("async.gemspec"); abort("unexpected dependency") if spec.dependencies.any? {|dependency| ["metrics", "traces"].include?(dependency.name)}; require "async"; loaded = .grep(%r{/(metrics|traces)/|/(metrics|traces).rb\z}); abort("unexpected load: #{loaded.inspect}") unless loaded.empty?; puts "ok"'
  • BUNDLE_GEMFILE="gems.rb" bundle exec ruby -Ilib -e 'require "metrics/provider/async/task"; require "traces/provider/async/task"; require "traces/provider/async/barrier"; puts "ok"'

@ioquatix ioquatix changed the title Make traces and metrics optional dependencies Make traces and metrics optional dependencies. Jul 22, 2026
@ioquatix
ioquatix merged commit 0e024fc into main Jul 22, 2026
77 of 81 checks passed
@ioquatix
ioquatix deleted the optional-traces-metrics-dependencies branch July 22, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant