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

Commit

Permalink
time is required (#170)
Browse files Browse the repository at this point in the history
* time is required

* handle case when only end_time was set
  • Loading branch information
SergeyKanzhelev authored and Bogdan Drutu committed Jan 18, 2019
1 parent 459753e commit 6d79e46
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/opencensus/proto/trace/v1/trace.proto
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,24 @@ message Span {
// The start time of the span. On the client side, this is the time kept by
// the local machine where the span execution starts. On the server side, this
// is the time when the server's application handler starts running.
//
// This field is semantically required. When not set on receive -
// receiver should set it to the value of end_time field if it was
// set. Or to the current time if neither was set. It is important to
// keep end_time > start_time for consistency.
//
// This field is required.
google.protobuf.Timestamp start_time = 5;

// The end time of the span. On the client side, this is the time kept by
// the local machine where the span execution ends. On the server side, this
// is the time when the server application handler stops running.
//
// This field is semantically required. When not set on receive -
// receiver should set it to start_time value. It is important to
// keep end_time > start_time for consistency.
//
// This field is required.
google.protobuf.Timestamp end_time = 6;

// A set of attributes, each with a key and a value.
Expand Down

0 comments on commit 6d79e46

Please sign in to comment.