Created
April 4, 2018 14:29
-
-
Save discostu105/6de7cbce5264e4f6a052f5b38e29c9f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Trace { | |
repeated Span spans | |
} | |
type Span { | |
required string name | |
required int startTime | |
required int endTime | |
required SpanContext spanContext | |
optional Link link // should links be repeated? census: repeated links, only one "reference" | |
"links" to spans from other traces are allowed | |
"reference" only from the same trace | |
repeated AnyInfo infos // non-timed stuff | |
repeated Event events // timed stuff | |
} | |
type Link { | |
required LinkType type // childof, followsfrom TODO: other types of links (e.g. to other traces?) | |
SpanContext spanParent | |
} | |
type Event { | |
required int timestamp | |
repeated Map<string, AnyEventInfo> infos // bogdan: should this necessarily be a map? | |
} | |
type LogEventInfo : AnyEventInfo { | |
either { | |
string stringValue | |
int64 intValue | |
bool boolValue | |
} | |
} | |
// uniquely identifies a span | |
type SpanContext { | |
required int UUID | |
} | |
type HttpClientInfo : AnyInfo { | |
required string url | |
required string httpmethod | |
} | |
type DbClientInfo : AnyInfo { | |
required string statement | |
required string ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment