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

GrpcNetClient Instrumentation to leverage native Activity Status. #3569

Merged
merged 5 commits into from
Aug 12, 2022

Conversation

Yun-Ting
Copy link
Contributor

Working towards #3118.

@codecov
Copy link

codecov bot commented Aug 11, 2022

Codecov Report

❗ No coverage uploaded for pull request base (main@a2958eb). Click here to learn what that means.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3569   +/-   ##
=======================================
  Coverage        ?   87.24%           
=======================================
  Files           ?      278           
  Lines           ?    10087           
  Branches        ?        0           
=======================================
  Hits            ?     8800           
  Misses          ?     1287           
  Partials        ?        0           
Impacted Files Coverage Δ
...try.Instrumentation.GrpcNetClient/GrpcTagHelper.cs 100.00% <100.00%> (ø)
...ent/Implementation/GrpcClientDiagnosticListener.cs 85.71% <100.00%> (ø)

@Yun-Ting Yun-Ting marked this pull request as ready for review August 11, 2022 20:38
@Yun-Ting Yun-Ting requested a review from a team August 11, 2022 20:38
@@ -61,7 +61,7 @@ public void GrpcTagHelper_GetGrpcStatusCodeFromActivity()
var statusCode = GrpcTagHelper.ResolveSpanStatusForGrpcStatusCode(status);
activity.SetTag(SemanticConventions.AttributeRpcGrpcStatusCode, status);

Assert.Equal(StatusCode.Unset, statusCode.StatusCode);
Assert.Equal(ActivityStatusCode.Unset, statusCode);
Copy link
Member

Choose a reason for hiding this comment

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

surprised that we had no tests with status being Error?

@cijothomas cijothomas merged commit d1da1d6 into open-telemetry:main Aug 12, 2022
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