-
Notifications
You must be signed in to change notification settings - Fork 474
/
model.go
52 lines (42 loc) · 1.15 KB
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package json
// OTEL
type ValueString struct {
StringValue string `json:"stringValue"`
}
type Attribute struct {
Key string `json:"key"`
Value ValueString `json:"value"`
}
type Event struct {
TimeUnixNano string `json:"timeUnixNano"`
Name string `json:"name"`
}
type Status struct {
Code string `json:"code"`
}
type Span struct {
TraceID string `json:"traceId"`
SpanID string `json:"spanId"`
Name string `json:"name"`
Kind string `json:"kind"`
StartTimeUnixNano string `json:"startTimeUnixNano"`
EndTimeUnixNano string `json:"endTimeUnixNano"`
Attributes []Attribute `json:"attributes"`
Events []Event `json:"events"`
Status Status `json:"status"`
ParentSpanId string `json:"parentSpanId"`
}
type ScopeSpan struct {
Scope struct{} `json:"scope"`
Spans []Span `json:"spans"`
}
type Resource struct {
Attributes []Attribute `json:"attributes"`
}
type Batch struct {
Resource Resource `json:"resource"`
ScopeSpans []ScopeSpan `json:"scopeSpans"`
}
type Data struct {
Batches []Batch `json:"batches"`
}