Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code.function property contains full module path #813

Open
gggritso opened this issue Nov 29, 2023 · 0 comments
Open

code.function property contains full module path #813

gggritso opened this issue Nov 29, 2023 · 0 comments

Comments

@gggritso
Copy link
Member

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

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

No branches or pull requests

2 participants