Skip to content

Deprecate beforeSendTransaction and ignoreTransactions and log warnings if used with span streaming enabled #22856

Description

@Lms24

With span streaming enabled by default, beforeSendTranasaction and ignoreTransactions are ignored by the SDK and thus not applied anymore. It's easy to miss though when upgrading. To mitigate this, we:

  1. deprecate the two options with a note stating that they'll be removed in v12, and until then can only be used in conjunction with traceLifecycle: 'Static'. Otherwise, they have no effect and will be ignored by the SDK.
  2. log a console warning (bypassing our debug logger), in case users still have these options defined.

Metadata

Metadata

Assignees

Labels

javascriptPull requests that update javascript code

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions