Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
assume Ok Status when not set (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyKanzhelev authored and Bogdan Drutu committed Jan 16, 2019
1 parent f1f2125 commit 84867c6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/opencensus/proto/trace/v1/trace.proto
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ message Span {
// The included links.
Links links = 10;

// An optional final status for this span.
// An optional final status for this span. Semantically when Status
// wasn't set it is means span ended without errors and assume
// Status.Ok (code = 0).
Status status = 11;

// A highly recommended but not required flag that identifies when a
Expand All @@ -293,7 +295,8 @@ message Span {
// [google.rpc.Status](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto),
// which is used by [gRPC](https://github.com/grpc).
message Status {
// The status code.
// The status code. This is optional field. It is safe to assume 0 (OK)
// when not set.
int32 code = 1;

// A developer-facing error message, which should be in English.
Expand Down

0 comments on commit 84867c6

Please sign in to comment.