You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,19 @@
7
7
- Add debug mode for Session Replay masking ([#4357](https://github.com/getsentry/sentry-java/pull/4357))
8
8
- Use `Sentry.replay().enableDebugMaskingOverlay()` to overlay the screen with the Session Replay masks.
9
9
- 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.
0 commit comments