-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathtrace.yaml
51 lines (50 loc) · 1.29 KB
/
trace.yaml
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
openapi: 3.0.0
components:
schemas:
Trace:
type: object
properties:
traceId:
type: string
tree:
$ref: "#/components/schemas/Span"
flat:
description: flattened version, mapped as spanId -> span{}
type: object
additionalProperties:
$ref: "#/components/schemas/Span"
Span:
type: object
properties:
id:
type: string
parentId:
type: string
name:
type: string
kind:
type: string
startTime:
type: integer
format: int64
description: span start time in unix milli format
example: 1656701595277
endTime:
type: integer
format: int64
description: span end time in unix milli format
example: 1656701595800
attributes:
type: object
description: Key-Value of span attributes
additionalProperties:
type: string
description: attribute value
example:
span.name: "POST /create"
tracetest.span.type: "http"
tracetest.span.duration: "2000"
children:
type: array
items:
$ref: "#/components/schemas/Span"