Skip to content

[R2 instrumentation] Update R2 span names#5001

Merged
jmorrell-cloudflare merged 1 commit intomainfrom
jmorrell/update-r2-span-names
Sep 16, 2025
Merged

[R2 instrumentation] Update R2 span names#5001
jmorrell-cloudflare merged 1 commit intomainfrom
jmorrell/update-r2-span-names

Conversation

@jmorrell-cloudflare
Copy link
Copy Markdown
Contributor

R2::head() deserves it's own span name, and the bucket admin methods do too.

Depends on https://gitlab.cfdata.org/cloudflare/ew/edgeworker/-/merge_requests/11390 to update the allowlist

@jmorrell-cloudflare jmorrell-cloudflare force-pushed the jmorrell/update-r2-span-names branch from a5d1284 to 264f8a6 Compare September 5, 2025 23:43
@jmorrell-cloudflare jmorrell-cloudflare marked this pull request as ready for review September 7, 2025 17:10
@jmorrell-cloudflare jmorrell-cloudflare requested review from a team as code owners September 7, 2025 17:10
Copy link
Copy Markdown
Contributor

@fhanau fhanau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • As I understand, we are only modifying the span name for r2-admin APIs, whereas the (presumably more widely used) r2-bucket APIs keep the same name. This sounds like the right approach to me – the name is no longer overloaded, and for the r2-bucket APIs we keep the name that closely fits the name of the JS API (e.g. "head")

Changes here look good – note the comments on the downstream PR before merging though.

@jmorrell-cloudflare jmorrell-cloudflare merged commit 7c574bd into main Sep 16, 2025
21 checks passed
@jmorrell-cloudflare jmorrell-cloudflare deleted the jmorrell/update-r2-span-names branch September 16, 2025 00:30
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