Skip to content

Add more R2 instrumentation attributes#4961

Merged
jmorrell-cloudflare merged 5 commits intomainfrom
jmorrell/r2-add-attributes-1
Sep 4, 2025
Merged

Add more R2 instrumentation attributes#4961
jmorrell-cloudflare merged 5 commits intomainfrom
jmorrell/r2-add-attributes-1

Conversation

@jmorrell-cloudflare
Copy link
Copy Markdown
Contributor

@jmorrell-cloudflare jmorrell-cloudflare commented Sep 2, 2025

Rename some of the existing attributes and add a few more by passing data down into the R2Bucket class.

cloudflare.binding.type
cloudflare.binding.name
cloudflare.r2.operation
cloudflare.r2.bucket
cloudflare.r2.request.key

The current method of getting the bucket name: this->adminBucketName() seems to be for R2Admin and does not get populated with the bucket name for users using the normal R2 bindings.

@jmorrell-cloudflare jmorrell-cloudflare force-pushed the jmorrell/r2-add-attributes-1 branch from 7ee8b5a to 1b171fd Compare September 3, 2025 13:59
@jmorrell-cloudflare jmorrell-cloudflare force-pushed the jmorrell/r2-add-attributes-1 branch from 1b171fd to cd2946d Compare September 3, 2025 14:28
@jmorrell-cloudflare jmorrell-cloudflare merged commit 493de52 into main Sep 4, 2025
21 of 22 checks passed
@jmorrell-cloudflare jmorrell-cloudflare deleted the jmorrell/r2-add-attributes-1 branch September 4, 2025 16:11
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