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

impl(otel): trace captures LRO name #11056

Merged
merged 3 commits into from
Mar 18, 2023

Conversation

dbolduc
Copy link
Member

@dbolduc dbolduc commented Mar 16, 2023

Fixes #10618

Note that, at the moment, I only need to set one string attribute. I may want a more general interface (set numeric attributes, set multiple attributes at once). But I am not going to generalize until the need is clear.


This change is Reviewable

@codecov
Copy link

codecov bot commented Mar 16, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (d52ed04) 93.74% compared to head (985901b) 93.75%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11056   +/-   ##
=======================================
  Coverage   93.74%   93.75%           
=======================================
  Files        1727     1727           
  Lines      155822   155889   +67     
=======================================
+ Hits       146081   146156   +75     
+ Misses       9741     9733    -8     
Impacted Files Coverage Δ
google/cloud/internal/opentelemetry.h 100.00% <ø> (ø)
google/cloud/internal/async_polling_loop.cc 100.00% <100.00%> (ø)
google/cloud/internal/async_polling_loop_test.cc 100.00% <100.00%> (ø)
google/cloud/internal/async_rest_polling_loop.cc 100.00% <100.00%> (ø)
...gle/cloud/internal/async_rest_polling_loop_test.cc 100.00% <100.00%> (ø)
google/cloud/internal/opentelemetry.cc 100.00% <100.00%> (ø)
google/cloud/internal/opentelemetry_test.cc 100.00% <100.00%> (ø)

... and 6 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dbolduc dbolduc marked this pull request as ready for review March 18, 2023 05:33
@dbolduc dbolduc requested a review from a team as a code owner March 18, 2023 05:33
@dbolduc dbolduc merged commit eecc9e5 into googleapis:main Mar 18, 2023
Copy link

@grace223 grace223 left a comment

Choose a reason for hiding this comment

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

Thanks

using ::google::cloud::testing_util::SpanNamed;
using ::testing::AllOf;
using ::testing::Each;
using ::testing::SizeIs;

TEST(AsyncPollingLoopTest, TracedAsyncBackoff) {

Choose a reason for hiding this comment

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

Thanks

@@ -317,6 +317,39 @@ TEST(OpenTelemetry, MakeTracedSleeperDisabled) {
EXPECT_THAT(spans, IsEmpty());

Choose a reason for hiding this comment

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

Thanks

@dbolduc dbolduc deleted the otel-add-span-attribute branch March 20, 2023 15:44
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.

Async OpenTelemetry tracing in common/grpc_utils
3 participants