Skip to content

Commit

Permalink
Change from feature to fix in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
adinauer committed Oct 10, 2022
1 parent 800b00b commit 4f3decd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Unreleased

### Features
### Fixes

- Improve public facing API for creating Baggage from header ([#2284](https://github.com/getsentry/sentry-java/pull/2284))

Expand Down
12 changes: 12 additions & 0 deletions sentry/src/test/java/io/sentry/BaggageTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,18 @@ class BaggageTest {
assertEquals("%22%28%29%2C%2F%3A%3B%3C%3D%3E%3F%40%5B%5C%5D%7B%7D=value", baggage.toHeaderString(null))
}

@Test
fun `can skip logger for header from single string`() {
val baggage = Baggage.fromHeader("sentry-trace_id=a,sentry-transaction=sentryTransaction")
assertEquals("sentry-trace_id=a,sentry-transaction=sentryTransaction", baggage.toHeaderString(null))
}

@Test
fun `can skip logger for header from list of strings`() {
val baggage = Baggage.fromHeader(listOf("sentry-trace_id=a", "sentry-transaction=sentryTransaction"))
assertEquals("sentry-trace_id=a,sentry-transaction=sentryTransaction", baggage.toHeaderString(null))
}

/**
* token = 1*tchar
* tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
Expand Down

0 comments on commit 4f3decd

Please sign in to comment.