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: README.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -201,6 +201,20 @@ final class SentryCustomizationCompilerPass implements CompilerPassInterface
201
201
}
202
202
```
203
203
204
+
#### Custom serializers
205
+
206
+
The option class_serializers can be used to send customize objects serialization.
207
+
```yml
208
+
sentry:
209
+
...
210
+
options:
211
+
...
212
+
class_serializers:
213
+
SerializableClassName: '@YourSerializerService'
214
+
```
215
+
216
+
Several serializer can be added and the serializable check is done using instanceof. The serializer must implements the `__invoke` method returning an **array** with the information to send to sentry (class name is always sent).
0 commit comments