Skip to content

Commit 3b4b698

Browse files
committed
fix relative file paths for tests
1 parent 7389c3b commit 3b4b698

File tree

2 files changed

+44
-24
lines changed

2 files changed

+44
-24
lines changed

schemas/buffered-segments.v1.schema.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
"$ref": "#/definitions/SegmentSpans"
99
}
1010
},
11-
"required": ["spans"],
11+
"required": [
12+
"spans"
13+
],
1214
"definitions": {
1315
"SegmentSpans": {
1416
"type": "array",
1517
"minItems": 1,
1618
"items": {
17-
"$ref": "./ingest-spans.v1.schema.json#/definitions/SpanEvent"
19+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/SpanEvent"
1820
}
1921
}
2022
}

schemas/ingest-spans.v1.schema.json

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,67 +10,70 @@
1010
"additionalProperties": true,
1111
"properties": {
1212
"event_id": {
13-
"$ref": "./ingest-spans.v1.schema.json#/definitions/UUID"
13+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/UUID"
1414
},
1515
"organization_id": {
16-
"$ref": "./ingest-spans.v1.schema.json#/definitions/UInt"
16+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/UInt"
1717
},
1818
"project_id": {
19-
"$ref": "./ingest-spans.v1.schema.json#/definitions/UInt"
19+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/UInt"
2020
},
2121
"key_id": {
22-
"$ref": "./ingest-spans.v1.schema.json#/definitions/UInt"
22+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/UInt"
2323
},
2424
"trace_id": {
25-
"$ref": "./ingest-spans.v1.schema.json#/definitions/UUID",
25+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/UUID",
2626
"description": "The trace ID is a unique identifier for a trace. It is a 16 byte hexadecimal string."
2727
},
2828
"span_id": {
2929
"type": "string",
3030
"description": "The span ID is a unique identifier for a span within a trace. It is an 8 byte hexadecimal string."
3131
},
3232
"parent_span_id": {
33-
"type": ["string", "null"],
33+
"type": [
34+
"string",
35+
"null"
36+
],
3437
"description": "The parent span ID is the ID of the span that caused this span. It is an 8 byte hexadecimal string."
3538
},
3639
"start_timestamp": {
37-
"$ref": "./ingest-spans.v1.schema.json#/definitions/PositiveFloat",
40+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/PositiveFloat",
3841
"description": "UNIX timestamp in seconds with fractional part up to microsecond precision."
3942
},
4043
"end_timestamp": {
41-
"$ref": "./ingest-spans.v1.schema.json#/definitions/PositiveFloat",
44+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/PositiveFloat",
4245
"description": "UNIX timestamp in seconds with fractional part up to microsecond precision."
4346
},
4447
"retention_days": {
45-
"$ref": "./ingest-spans.v1.schema.json#/definitions/UInt16"
48+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/UInt16"
4649
},
4750
"downsampled_retention_days": {
48-
"$ref": "./ingest-spans.v1.schema.json#/definitions/UInt16"
51+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/UInt16"
4952
},
5053
"received": {
51-
"$ref": "./ingest-spans.v1.schema.json#/definitions/PositiveFloat",
54+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/PositiveFloat",
5255
"description": "Unix timestamp when the span was received by Sentry."
5356
},
5457
"name": {
5558
"type": "string"
5659
},
5760
"status": {
58-
"$ref": "./ingest-spans.v1.schema.json#/definitions/SpanStatus"
61+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/SpanStatus"
5962
},
6063
"is_remote": {
6164
"type": "boolean"
6265
},
6366
"kind": {
64-
"$ref": "./ingest-spans.v1.schema.json#/definitions/SpanKind"
67+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/SpanKind"
6568
},
6669
"links": {
6770
"type": "array",
6871
"items": {
69-
"$ref": "./ingest-spans.v1.schema.json#/definitions/SpanLink"
72+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/SpanLink"
7073
}
7174
},
7275
"attributes": {
73-
"$ref": "./ingest-spans.v1.schema.json#/definitions/Attributes"
76+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/Attributes"
7477
}
7578
},
7679
"required": [
@@ -112,36 +115,48 @@
112115
},
113116
"SpanStatus": {
114117
"type": "string",
115-
"enum": ["ok", "error"]
118+
"enum": [
119+
"ok",
120+
"error"
121+
]
116122
},
117123
"SpanKind": {
118124
"type": "string",
119-
"enum": ["internal", "server", "client", "producer", "consumer"]
125+
"enum": [
126+
"internal",
127+
"server",
128+
"client",
129+
"producer",
130+
"consumer"
131+
]
120132
},
121133
"SpanLink": {
122134
"type": "object",
123135
"title": "span_link",
124136
"additionalProperties": true,
125137
"properties": {
126138
"trace_id": {
127-
"$ref": "./ingest-spans.v1.schema.json#/definitions/UUID"
139+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/UUID"
128140
},
129141
"span_id": {
130142
"type": "string"
131143
},
132144
"attributes": {
133-
"$ref": "./ingest-spans.v1.schema.json#/definitions/Attributes"
145+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/Attributes"
134146
},
135147
"sampled": {
136148
"type": "boolean"
137149
}
138150
},
139-
"required": ["trace_id", "span_id"]
151+
"required": [
152+
"trace_id",
153+
"span_id"
154+
]
140155
},
141156
"Attributes": {
142157
"type": "object",
143158
"additionalProperties": {
144-
"$ref": "./ingest-spans.v1.schema.json#/definitions/AttributeValue"
159+
"$ref": "file://./ingest-spans.v1.schema.json#/definitions/AttributeValue"
145160
}
146161
},
147162
"AttributeValue": {
@@ -155,7 +170,10 @@
155170
"type": ["number", "null", "string", "boolean"]
156171
}
157172
},
158-
"required": ["type", "value"]
173+
"required": [
174+
"type",
175+
"value"
176+
]
159177
}
160178
}
161179
}

0 commit comments

Comments
 (0)