diff --git a/CHANGELOG.md b/CHANGELOG.md index d81b81577..19a59948e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Fix latency related nil error for Sidekiq Queues Module span data [#2486](https://github.com/getsentry/sentry-ruby/pull/2486) - Fixes [#2485](https://github.com/getsentry/sentry-ruby/issues/2485) +### Internal + +- Remove usage of user segment from baggage and dynamic sampling context propagation logic [#2493](https://github.com/getsentry/sentry-ruby/pull/2493) + ## 5.22.0 ### Features diff --git a/sentry-ruby/lib/sentry/propagation_context.rb b/sentry-ruby/lib/sentry/propagation_context.rb index db2f58b8f..21c15dcfd 100644 --- a/sentry-ruby/lib/sentry/propagation_context.rb +++ b/sentry-ruby/lib/sentry/propagation_context.rb @@ -125,7 +125,6 @@ def populate_head_baggage "environment" => configuration.environment, "release" => configuration.release, "public_key" => configuration.dsn&.public_key, - "user_segment" => @scope.user && @scope.user["segment"] } items.compact! diff --git a/sentry-ruby/lib/sentry/transaction.rb b/sentry-ruby/lib/sentry/transaction.rb index 5e3ceb982..1281da253 100644 --- a/sentry-ruby/lib/sentry/transaction.rb +++ b/sentry-ruby/lib/sentry/transaction.rb @@ -337,7 +337,6 @@ def populate_head_baggage items["transaction"] = name unless source_low_quality? user = @hub.current_scope&.user - items["user_segment"] = user["segment"] if user && user["segment"] items.compact! @baggage = Baggage.new(items, mutable: false)