-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New A72 changes for OpenTelemetry #8216 #8226
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
Changes from 3 commits
ad07d2d
01927ac
8cd9b0b
681ce72
64124ff
6886a15
ed45ee7
9a05b61
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -14,6 +14,10 @@ | |||
| * limitations under the License. | ||||
| */ | ||||
|
|
||||
| // OpenCensus's binary format for grpc-trace-bin: | ||||
| // https://github.com/census-instrumentation/opencensus-specs/blob/master/ | ||||
| // encodings/BinaryEncoding.md | ||||
|
|
||||
| package opentelemetry | ||||
|
|
||||
| import ( | ||||
|
|
@@ -58,14 +62,14 @@ func populateSpan(rs stats.RPCStats, ai *attemptInfo) { | |||
| // message id - "must be calculated as two different counters starting | ||||
| // from one for sent messages and one for received messages." | ||||
| ai.countRecvMsg++ | ||||
| span.AddEvent("Inbound compressed message", trace.WithAttributes( | ||||
| span.AddEvent("Inbound message", trace.WithAttributes( | ||||
| attribute.Int64("sequence-number", int64(ai.countRecvMsg)), | ||||
| attribute.Int64("message-size", int64(rs.Length)), | ||||
| attribute.Int64("message-size-compressed", int64(rs.CompressedLength)), | ||||
|
||||
| // CompressedLength is the size of the compressed payload data. Does not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@purnesh42H I have added both inbound and outbound. For compression to be considered enabled
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the grfc says to only add this if the message is actually compressed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to add this. This was only for grfc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done