Skip to content

Commit

Permalink
Remove sample_rate from DSC from prop context
Browse files Browse the repository at this point in the history
  • Loading branch information
sl0thentr0py committed Aug 31, 2023
1 parent 143bdce commit d251e9f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion sentry-ruby/lib/sentry/propagation_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def populate_head_baggage

items = {
"trace_id" => trace_id,
"sample_rate" => configuration.traces_sample_rate&.to_s,
"environment" => configuration.environment,
"release" => configuration.release,
"public_key" => configuration.dsn&.public_key,
Expand Down
2 changes: 0 additions & 2 deletions sentry-ruby/spec/sentry/propagation_context_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@
perform_basic_setup do |config|
config.environment = "test"
config.release = "foobar"
config.traces_sample_rate = 0.5
end
end

Expand All @@ -120,7 +119,6 @@
expect(baggage.mutable).to eq(false)
expect(baggage.items).to eq({
"trace_id" => subject.trace_id,
"sample_rate" => "0.5",
"environment" => "test",
"release" => "foobar",
"public_key" => Sentry.configuration.dsn.public_key
Expand Down

0 comments on commit d251e9f

Please sign in to comment.