Skip to content

Event processors are not executed on cloned Scopes #5575

Closed as not planned
Closed as not planned
@Loskir

Description

@Loskir

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/node

SDK Version

7.10.0

Framework Version

No response

Link to Sentry event

No response

Steps to Reproduce

Run this code

const Sentry = require('@sentry/node')
const {Scope} = require('@sentry/node')

Sentry.init({
  dsn: '*insert some dsn*',
})

const scope = Scope.clone(Sentry.getCurrentHub().getScope())
scope.addEventProcessor(function(event, hint) {
  console.log(event, hint)
  return event
})
Sentry.captureException(new Error('test'), scope)

Expected Result

EventProcessors are executed

Actual Result

EventProcessors are not executed. No console output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions