Skip to content

Shorten view paths in spans #739

@stayallive

Description

@stayallive

Problem Statement

When playing around with Laravel Folio I noticed the view spans have the full path the the views:

image

This is a little on the long and verbose side.

Solution Brainstorm

We should remove base_path() from those view paths turning:

/Users/alex/dev/sentry-laravel-test/resources/views/pages/users/[id].blade.php

In just:

/resources/views/pages/users/[id].blade.php

(since views can also be in the vendor folder and other places stripping away resources/views too seems a bit too much, so that's why I'm suggesting just the base_path())

Metadata

Metadata

Assignees

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions