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] Add convenience functions to add span tags for subrequest #2799

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented Sep 25, 2024

  • This allows adding initial tags for KV and R2. Also add lw:top_level_execution span.

@fhanau fhanau force-pushed the felix/subrequest-client-spans branch from 36cf832 to 9301352 Compare September 27, 2024 03:25
fhanau added a commit that referenced this pull request Sep 29, 2024
Splitting this off of #2799, which will take some more work.
@fhanau fhanau force-pushed the felix/subrequest-client-spans branch from 9301352 to 760b2cf Compare September 29, 2024 04:33
fhanau added a commit that referenced this pull request Sep 29, 2024
Splitting this off of #2799, which will take some more work.
fhanau added a commit that referenced this pull request Sep 30, 2024
Splitting this off of #2799, which will take some more work.
jclee pushed a commit that referenced this pull request Oct 11, 2024
Splitting this off of #2799, which will take some more work.
@fhanau fhanau force-pushed the felix/subrequest-client-spans branch 2 times, most recently from 1ad873b to 2026572 Compare October 28, 2024 10:50
@fhanau fhanau requested a review from mikea October 28, 2024 10:55
@fhanau fhanau marked this pull request as ready for review October 28, 2024 10:55
@fhanau fhanau requested review from a team as code owners October 28, 2024 10:55
@@ -709,6 +725,13 @@ class IoContext final: public kj::Refcounted, private kj::TaskSet::ErrorHandler
kj::Maybe<kj::String> cfBlobJson,
kj::ConstString operationName);

// As above, but with list of span tags to add, analogous to getSubrequestChannelSpans().
kj::Own<kj::HttpClient> getHttpClientSpans(uint channel,
Copy link
Member

Choose a reason for hiding this comment

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

Bikeshed: The name is slightly confusing/misleading. Something like getHttpClientWithSpans(...) would be slightly clearer here.

@fhanau fhanau force-pushed the felix/subrequest-client-spans branch from 2026572 to 8b5822e Compare October 28, 2024 14:32
- This allows adding initial tags for KV and R2. Also add lw:top_level_execution
  span.
@fhanau fhanau force-pushed the felix/subrequest-client-spans branch from 8b5822e to fe4e607 Compare October 28, 2024 14:37
@fhanau fhanau merged commit b46b62c into main Nov 1, 2024
13 checks passed
@fhanau fhanau deleted the felix/subrequest-client-spans branch November 1, 2024 17:33
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