Skip to content

Commit

Permalink
feat: Schema for log event records (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh authored Apr 14, 2021
1 parent 44f36c0 commit ec5afce
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions data-model/src/main/avro/LogEvent.avdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@namespace("org.hypertrace.core.datamodel")
protocol LogEventProtocol {
import idl "Attributes.avdl";

record LogEvent {
/** Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970 **/
long timestamp_nanos = 0;

/** tenant_id serves the purpose of identifying tenant **/
union { null, string } tenant_id = null;

union { null, bytes } span_id = null;
union { null, bytes } trace_id = null;
union { null, Attributes } attributes = null;
}

record LogEvents {
array<LogEvent> log_events = [];
}
}

0 comments on commit ec5afce

Please sign in to comment.