Skip to content

Commit f8dab89

Browse files
committed
changelog
1 parent fa3b562 commit f8dab89

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@
77
- Add debug mode for Session Replay masking ([#4357](https://github.com/getsentry/sentry-java/pull/4357))
88
- Use `Sentry.replay().enableDebugMaskingOverlay()` to overlay the screen with the Session Replay masks.
99
- The masks will be invalidated at most once per `frameRate` (default 1 fps).
10+
- Extend Logs API to allow passing in `attributes` ([#4402](https://github.com/getsentry/sentry-java/pull/4402))
11+
- `Sentry.logger.log` now takes a `SentryLogParameters`
12+
- Use `SentryLogParameters.create(SentryAttributes.of(...))` to pass attributes
13+
- Attribute values may be of type `string`, `boolean`, `integer` or `double`.
14+
- Other types will be converted to `string`. Currently we simply call `toString()` but we might offer more in the future.
15+
- You may manually flatten complex types into multiple separate attributes of simple types.
16+
- e.g. intead of `SentryAttribute.named("point", Point(10, 20))` you may store it as `SentryAttribute.integerAttribute("point.x", point.x)` and `SentryAttribute.integerAttribute("point.y", point.y)`
17+
- `SentryAttribute.named()` will automatically infer the type or fall back to `string`.
18+
- `SentryAttribute.booleanAttribute()` takes a `Boolean` value
19+
- `SentryAttribute.integerAttribute()` takes a `Integer` value
20+
- `SentryAttribute.doubleAttribute()` takes a `Double` value
21+
- `SentryAttribute.stringAttribute()` takes a `String` value
22+
- We opted for handling parameters via `SentryLogParameters` to avoid creating tons of overloads that are ambiguous.
1023

1124
## 8.12.0
1225

0 commit comments

Comments
 (0)