-
Notifications
You must be signed in to change notification settings - Fork 10
/
span_format.json
55 lines (53 loc) · 1.48 KB
/
span_format.json
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
53
54
55
{
"name": "span-name",
"context": {
"trace_id": "trace-id",
"span_id": "span-id",
"trace_state": "[]"
},
"kind": "SpanKind.CLIENT",
"parent_id": "parent-id or None (for root span)",
"start_time": "UTC timestamp",
"end_time": "UTC timestamp",
"status": {
"status_code": "OK or Error"
},
"attributes": {
"description": "List of AI component entities used in this span, eg Model, Inference hosting service. Needs to be one of the supported entity types.",
"span.type": "Monocle-span-type",
"entity.count": "count-of-entities",
"entity.<index>.name": "Monocle-Entity-name",
"entity.<index>.type": "Monocle-Entity-Type",
"entity.<index>.<attribute>": "Value"
},
"events" : [
{
"name": "data.input",
"timestamp": "UTC timestamp",
"attributes": {
"input_attribute": "value"
}
},
{
"name": "data.output",
"timestamp": "UTC timestamp",
"attributes": {
"output_attribute": "value"
}
},
{
"name": "metadata",
"timestamp": "UTC timestamp",
"attributes": {
"metadata_attribute": "value"
}
}
],
"links": [],
"resource": {
"attributes": {
"service.name": "top-workflow-name"
},
"schema_url": ""
}
}