Skip to content

Instantly share code, notes, and snippets.

@discostu105
Created April 4, 2018 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save discostu105/6de7cbce5264e4f6a052f5b38e29c9f4 to your computer and use it in GitHub Desktop.
Save discostu105/6de7cbce5264e4f6a052f5b38e29c9f4 to your computer and use it in GitHub Desktop.
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