Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Document event processors in the SDK where it is supported. #102

@rodolfoBee

Description

@rodolfoBee

Core or SDK?

Platform/SDK

Which part? Which one?

SDKs

Description

Multiple SDKs offer event processors that are called before the event goes into the beforeSend callback, but it is not described in the docs how to add them to the SDK.

Because transaction events do not go through beforeSend, event processors are the only option a customer has to change data, such as scrubbing PII from transactions at the SDK level.

In addition, we mention hints can be used in event processor and beforeSend/beforeBreadcrumb, and just mentioning it without describing

Suggested Solution

The event processor can be added to the filtering page as an alternative option, or have a separate session for them. A sample page can be created for the web SDKs and expanded to the other pages as the code snippets are added.

For example, here is a code snipet for JavaScript:

Sentry.addGlobalEventProcessor((event, hint) => {
  // some logic
  return event
})

and Python:

from sentry_sdk.scope import add_global_event_processor

def myEventProcessor(event, hint):
    ## some logic
     return event

sentry_sdk.scope.add_global_event_processor(myEventProcessor)

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions