Skip to content

Improve span naming when serving a resource (Wicket)#18312

Merged
trask merged 3 commits into
open-telemetry:mainfrom
asvanberg:wicket-resource-span-name
May 2, 2026
Merged

Improve span naming when serving a resource (Wicket)#18312
trask merged 3 commits into
open-telemetry:mainfrom
asvanberg:wicket-resource-span-name

Conversation

@asvanberg
Copy link
Copy Markdown
Contributor

Requesting a page replaces the span name with the fully qualified class name of the Java page class. However, the same does not happen if the request hits a resource. In Wicket, a resource can serve things like class path resources, file paths, web context files, or anything else.

This change applies the same span renaming as for pages by replacing it with the fully qualified class name of the Java ResourceReference.

Instead of many spans named "GET /*" it will be split into for example;
GET /com.company.resource.ProfilePicture
GET /com.company.resource.RolesJSON
GET /org.apache.wicket.request.resource.ContextRelativeResourceReference
GET /org.apache.wicket.request.resource.PackageResourceReference
GET /org.apache.wicket.resource.JQueryResourceReference

Requesting a page replaces the span name with the fully qualified class
name of the Java page class. However, the same does not happen if the
request hits a resource. In Wicket, a resource can serve things like
class path resources, file paths, web context files, or anything else.

This change applies the same span renaming as for pages by replacing it
with the fully qualified class name of the Java ResourceReference.

Instead of many spans named "GET /*" it will be split into for example;
GET /com.company.resource.ProfilePicture
GET /com.company.resource.RolesJSON
GET /org.apache.wicket.request.resource.ContextRelativeResourceReference
GET /org.apache.wicket.request.resource.PackageResourceReference
GET /org.apache.wicket.resource.JQueryResourceReference
@asvanberg asvanberg requested a review from a team as a code owner April 26, 2026 09:04
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Apr 26, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: asvanberg / name: Andreas Svanberg (1f106b3, 7f4314c)
  • ✅ login: trask / name: Trask Stalnaker (528774a)

@trask
Copy link
Copy Markdown
Member

trask commented Apr 29, 2026

/easycla

@trask
Copy link
Copy Markdown
Member

trask commented Apr 29, 2026

hi @asvanberg! let us know once you have signed the CLA, thanks

@asvanberg
Copy link
Copy Markdown
Contributor Author

hi @asvanberg! let us know once you have signed the CLA, thanks

I can't.

The Individual CLA option is not enabled for this project. Please to your administrator to enable the Individual CLA option for this project.

@trask
Copy link
Copy Markdown
Member

trask commented Apr 29, 2026

ok, can you open an issue instead then?

@asvanberg
Copy link
Copy Markdown
Contributor Author

Managed to sign the CLA. @trask

@trask trask mentioned this pull request May 2, 2026
@trask trask enabled auto-merge (squash) May 2, 2026 21:39
@trask trask merged commit e84cdb9 into open-telemetry:main May 2, 2026
92 checks passed
@otelbot
Copy link
Copy Markdown
Contributor

otelbot Bot commented May 2, 2026

Thank you for your contribution @asvanberg! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants