-
-
Notifications
You must be signed in to change notification settings - Fork 196
Open
Labels
Description
How do you use Sentry?
Sentry SaaS (sentry.io)
SDK version
4.1.0
Steps to reproduce
- Enable Laravel instrumentation on an app
- Using the Sentry UI, examine the
code.function
value of a database query span OR use the "Queries" feature and look at the query details
Expected result
code.function
span data property contains just the function name, e.g., show
Actual result
code.function
contains the entire module path, e.g., App\Http\Controllers\UserController::show
To be honest I'm not 100% sure that this is wrong, I'm just going off the OTel recommendations. In the Python SDK implementation, code.function
is just the function name, too. Ideally the SDKs would all have matching behaviour.
Laravel example: https://sentry-sdks.sentry.io/performance/database/spans/span/6012d1bb6731a029/?project=6778710&statsPeriod=7d