Skip to content

[ReactNativation] [ExpoRouter] Name navigation spans using dispatched action data #4429

@krystofwoldrich

Description

@krystofwoldrich

The ReactNavigationIntegration doesn't read dispatch action data and starts generic Route Changed navigation span on every dispatch.

Depending on the action type the new route name can be specified in the data. For example navigation action has name of the new route in it's payload. This might not be the final route as that depends on the router processing the action.

Using the data from the dispatched action will reduce the number of Route Changed spans. We should still update the name once the router processed the action with the final route name.


current integration implementation
react-navigation onDispatch implementation
poc branch


Related Issue: not all actions are expected to trigger navigation

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions