Skip to content

Commit 8108ddb

Browse files
authored
Remove user_segment from DSC (#2586)
1 parent 9c6f387 commit 8108ddb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
- Fix breadcrumb serialization error message to be an object ([#2584](https://github.com/getsentry/sentry-ruby/pull/2584))
1313
- Fixes [#2478](https://github.com/getsentry/sentry-ruby/issues/2478)
1414

15+
### Internal
16+
17+
- Remove `user_segment` from DSC ([#2586](https://github.com/getsentry/sentry-ruby/pull/2586))
18+
1519
## 5.23.0
1620

1721
### Features

sentry-ruby/lib/sentry/propagation_context.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ def populate_head_baggage
124124
"trace_id" => trace_id,
125125
"environment" => configuration.environment,
126126
"release" => configuration.release,
127-
"public_key" => configuration.dsn&.public_key,
128-
"user_segment" => @scope.user && @scope.user["segment"]
127+
"public_key" => configuration.dsn&.public_key
129128
}
130129

131130
items.compact!

sentry-ruby/lib/sentry/transaction.rb

-3
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,6 @@ def populate_head_baggage
342342

343343
items["transaction"] = name unless source_low_quality?
344344

345-
user = @hub.current_scope&.user
346-
items["user_segment"] = user["segment"] if user && user["segment"]
347-
348345
items.compact!
349346
@baggage = Baggage.new(items, mutable: false)
350347
end

0 commit comments

Comments
 (0)