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

[o11y] Fix incorrect R2 span names, add initial cache, memory-cache user spans #2829

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented Sep 29, 2024

Splitting this off of #2799, which will take some more work.

@fhanau fhanau changed the title [o11y] Fix incorrect R2 span names [o11y] Fix incorrect R2 span names, add initial user spans for cache, memory-cache Sep 29, 2024
@fhanau fhanau changed the title [o11y] Fix incorrect R2 span names, add initial user spans for cache, memory-cache [o11y] Fix incorrect R2 span names, add initial cache, memory-cache user spans Sep 29, 2024
Splitting this off of #2799, which will take some more work.
@fhanau fhanau requested a review from mikea September 30, 2024 15:17
@fhanau fhanau marked this pull request as ready for review September 30, 2024 15:17
@fhanau fhanau requested review from a team as code owners September 30, 2024 15:17
@fhanau fhanau requested a review from tewaro September 30, 2024 15:17
@@ -518,7 +518,8 @@ jsg::Promise<bool> Cache::delete_(

kj::Own<kj::HttpClient> Cache::getHttpClient(
IoContext& context, kj::Maybe<kj::String> cfBlobJson, kj::ConstString operationName) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should make operationName a LiteralConstString. Would this also simplify the next line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for the suggestion, that does make things easier! I tried to get the ConstString stuff right and the approach I had was memory safe at least but this is certainly more elegant/saves a memory allocation.

@fhanau fhanau merged commit 4eef7fd into main Sep 30, 2024
11 checks passed
@fhanau fhanau deleted the felix/span-fixes branch September 30, 2024 19:52
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.

3 participants