Skip to content

[vue] Router instrumentation logs route name if set; missing option to log path instead #5013

Description

@LeoniePhiline

Problem Statement

My Vue routes are configured with path and name. (Route names are optional in Vue Router.)

In Sentry, I need paths logged, not route names.
In fact: Full paths, including the base path of the SPA.

The current Vue Router Sentry instrumentation chooses the name, if it is set, and falls back to the path only if no route name has been configured.

Solution Brainstorm

New options for vue router instrumentation:

  • Log navigation as route name
    • Include route parameters
      • Yes
      • No
  • Log navigation as route path
    • Include route parameters
      • Yes, log path with inserted parameters (as in the URL bar)
      • No, log path with route parameter placeholders
    • Include SPA base path
      • Yes
      • No

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions