Skip to content

Event processor migration: NextJS server event processors #20367

@Lms24

Description

@Lms24

packages/nextjs/src/server/index.ts

quite a few processors in this file:

  • devErrorSymbolicationEventProcessor: should be able to use ignoreSpans by filtering on attribute. The error symbolication part is not a concern.
  • getGlobalScope().setTag('turbopack', true); we most likely want to set an attribute for this on the segment span (?)
  • client?.on('preprocessEvent' - This one does a lot of data modification. Can likely be ported to processSpan and another
  • getGlobalScope().addEventProcessor - this one drops a lot of transactions. The one filtering on transaction names can likely be ported to ignoreSpans, especially the ones that seem to filter out OTel spans from NextJS. The TRANSACTION_ATTR_SHOULD_DROP_TRANSACTIONbehaviour is a bit of an unknown to me but seems like we set this attribute post span-start, so likely not something we can continue to support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    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