Skip to content

Commit

Permalink
Use mappings for EventHandler sentry context (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Galarzaa90 authored Jul 10, 2024
1 parent 4575003 commit b2de057
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,12 @@ public open class EventHandler<T : Event>(

if (sentry.enabled) {
context.sentry.context(
"event", eventName ?: "Unknown",
)
"event",

context.sentry.context(
"extension", extension.name
mapOf(
"name" to (eventName ?: "Unknown"),
"extension" to extension.name
),
)

context.sentry.breadcrumb(BreadcrumbType.Info) {
Expand Down

0 comments on commit b2de057

Please sign in to comment.