Skip to content

Reevaluate traceId generation places #4674

@stefanosiano

Description

@stefanosiano

Description

There is an "issue" with ANRs not having the same traceId of the currently running transaction, if the transaction finishes right before the ANR occurs.

This is due to our TWP implementation. Should we change it?
It would mean to either

  • understand if an anr is likely going to occur and don't overwrite the stored traceId when the current span finishes
  • replace the traceId stored from spans only after at least 5 seconds, ensuring that the traceId stored in the PersistingScopeObserver is used only by ANRs

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