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

Updating grpc status code #1488

Merged
merged 9 commits into from
Nov 10, 2020
Merged

Updating grpc status code #1488

merged 9 commits into from
Nov 10, 2020

Conversation

eddynaka
Copy link
Contributor

@eddynaka eddynaka commented Nov 6, 2020

Fixes #1345.

Changes

Please provide a brief description of the changes here.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #
  • Changes in public API reviewed

@eddynaka eddynaka self-assigned this Nov 6, 2020
@codecov
Copy link

codecov bot commented Nov 6, 2020

Codecov Report

Merging #1488 (c0606df) into master (30f6b70) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1488      +/-   ##
==========================================
+ Coverage   81.24%   81.25%   +0.01%     
==========================================
  Files         232      232              
  Lines        6303     6312       +9     
==========================================
+ Hits         5121     5129       +8     
- Misses       1182     1183       +1     
Impacted Files Coverage Δ
...tation.AspNetCore/Implementation/HttpInListener.cs 86.15% <100.00%> (+0.55%) ⬆️
...try.Instrumentation.GrpcNetClient/GrpcTagHelper.cs 100.00% <100.00%> (ø)
...ent/Implementation/GrpcClientDiagnosticListener.cs 86.66% <100.00%> (+1.30%) ⬆️
...ZPages/Implementation/ZPagesExporterEventSource.cs 56.25% <0.00%> (-6.25%) ⬇️

@eddynaka eddynaka marked this pull request as ready for review November 6, 2020 23:52
@eddynaka eddynaka requested a review from a team November 6, 2020 23:52
@@ -36,17 +36,16 @@ public static string GetGrpcMethodFromActivity(Activity activity)
return activity.GetTagValue(GrpcMethodTagName) as string;
}

public static Status GetGrpcStatusCodeFromActivity(Activity activity)
public static int GetGrpcStatusCodeFromActivity(Activity activity)
Copy link
Member

Choose a reason for hiding this comment

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

this looks good, you may make it follow the TryGetStatusCode pattern as well.

@cijothomas cijothomas merged commit 7063ea0 into open-telemetry:master Nov 10, 2020
@eddynaka eddynaka deleted the feature/updating-grpc-code branch November 12, 2020 10:35
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.

Update grpc.status_code based on spec
3 participants