Skip to content

Add dynamically configurable sampling rules #9602

Add dynamically configurable sampling rules

Add dynamically configurable sampling rules #9602

Workflow file for this run

name: Test unstable
on: [push]
jobs:
test-head:
strategy:
fail-fast: false
matrix:
ruby: [head, jruby-head]
runs-on: ubuntu-latest
env:
SKIP_SIMPLECOV: 1
JRUBY_OPTS: --dev
DD_INSTRUMENTATION_TELEMETRY_ENABLED: false
DD_REMOTE_CONFIGURATION_ENABLED: false
steps:
- uses: actions/checkout@v4
# bundler appears to match both prerelease and release rubies when we
# want the former only. relax the constraint to allow any version for
# head rubies
- run: sed -i~ -e '/spec\.required_ruby_version/d' ddtrace.gemspec
- uses: ruby/setup-ruby@31a7f6d628878b80bc63375a93ae079ec50a1601 # v1.143.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
continue-on-error: true
- run: bundle exec rake spec:main
continue-on-error: true
- run: bundle exec rake spec:contrib
continue-on-error: true
- run: bundle exec rake spec:opentracer
continue-on-error: true
# A few contrib jobs that `ddtrace` already includes their gem in the global Gemfile.
# We technically don't need appraisal to run them, thus are easy candidates for early testing.
- run: bundle exec rake spec:rake
continue-on-error: true
- run: bundle exec rake spec:rspec
continue-on-error: true
- run: bundle exec rake spec:concurrent_ruby
continue-on-error: true
- run: bundle exec rake spec:http
continue-on-error: true