Skip to content

Commit

Permalink
Remove userId
Browse files Browse the repository at this point in the history
  • Loading branch information
romtsn committed Jul 13, 2023
1 parent 86b52b7 commit 7612a62
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion sentry/src/main/java/io/sentry/Baggage.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ public static Baggage fromEvent(
baggage.setEnvironment(event.getEnvironment());
final User user = event.getUser();
baggage.setUserSegment(user != null ? getSegment(user) : null);
baggage.setUserId(user != null ? user.getId() : null);
baggage.setTransaction(event.getTransaction());
// we don't persist sample rate
baggage.setSampleRate(null);
Expand Down
2 changes: 0 additions & 2 deletions sentry/src/test/java/io/sentry/SentryClientTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,6 @@ class SentryClientTest {
release = "io.sentry.samples@22.1.1"
contexts.trace = SpanContext(traceId, SpanId(), "ui.load", null, null)
transaction = "MainActivity"
user = User().apply { id = "user_id" }
}
val hint = HintUtils.createWithTypeCheckHint(BackfillableHint())
val scope = createScope()
Expand All @@ -750,7 +749,6 @@ class SentryClientTest {
assertEquals("io.sentry.samples@22.1.1", it.header.traceContext!!.release)
assertEquals(traceId, it.header.traceContext!!.traceId)
assertEquals("MainActivity", it.header.traceContext!!.transaction)
assertEquals("user_id", it.header.traceContext!!.userId)
},
anyOrNull()
)
Expand Down

0 comments on commit 7612a62

Please sign in to comment.