Skip to content

code.function property contains full module path #813

@gggritso

Description

@gggritso

How do you use Sentry?

Sentry SaaS (sentry.io)

SDK version

4.1.0

Steps to reproduce

  1. Enable Laravel instrumentation on an app
  2. 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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions