Skip to content

SDK sends query params and fragment in span description of http.client spans #15360

Closed
@Lms24

Description

@Lms24

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/core, still need to check if also a problem in Otel-based SDKs

SDK Version

v8, v9

Framework Version

N/A

Link to Sentry event

No response

Reproduction Example/SDK Setup

Default SDK setup w/ tracing

Steps to Reproduce

await fetch(/api/users?id=123);

Expected Result

an op: http.client span with GET /api/users as span name/description

Actual Result

an op: http.client span with GET /api/users?id=123 as span name/description

Notes

Worth mentioning that this used to work already and we had integration tests that covered this. For some reason we must have removed them in the v8 process. Part of this issue is investigating why we removed them, and how we can prevent something like this going forward.

Metadata

Metadata

Assignees

Labels

Package: browserIssues related to the Sentry Browser SDK

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions