-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfaro.gen.yaml
More file actions
740 lines (736 loc) · 24.1 KB
/
Copy pathfaro.gen.yaml
File metadata and controls
740 lines (736 loc) · 24.1 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
# Code auto-generated. DO NOT EDIT.
openapi: 3.0.0
info:
title: Faro API
description: The Faro API accepts payloads from the Faro SDKs.
version: 1.0.0
license:
name: MIT
url: https://opensource.org/licenses/MIT
servers:
- url: /collect/{appKey}
description: Faro Collector API
variables:
appKey:
default: default
description: The application key is provided by your endpoint provider.
paths:
/collect/{appKey}:
post:
operationId: submitPayload
security: []
parameters:
- name: appKey
description: 'The application key is provided by your endpoint provider.
'
in: path
required: true
schema:
type: string
requestBody:
description: Optional description in *Markdown*
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Payload'
summary: Submit a Faro payload
responses:
default:
description: OK
'202':
description: OK
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/Exception'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Exception'
components:
schemas:
Action:
type: object
description: holds data about user action events. These are events that are
directly related to user interactions as well as the parent action itself
properties:
name:
type: string
description: Action name (e.g. `click`, `submit`)
x-go-type-skip-optional-pointer: true
id:
type: string
description: Unique action identifier
x-go-type-skip-optional-pointer: true
parentId:
type: string
description: Parent action ID for nested actions
x-go-type-skip-optional-pointer: true
x-go-type-skip-optional-pointer: true
App:
type: object
description: holds metadata about the application event originates from.
properties:
bundleId:
type: string
description: 'Bundle identifier (used by web apps bundled with Faro bundler
plugins and mobile Android symbolication to encode build identity "{applicationId}@{versionCode}@{versionName}"
(e.g. com.example.app@[email protected]) matching the symbols upload path and server-side
R8/native retrace lookup key).
'
x-go-type-skip-optional-pointer: true
gitHash:
type: string
description: Git hash of the application source code this telemetry was
generated from
x-go-type-skip-optional-pointer: true
environment:
type: string
description: Deployment environment (e.g. `production`, `staging`)
x-go-type-skip-optional-pointer: true
installationId:
type: string
description: 'Per-installation identifier (OTel: app.installation.id). Identical
across launches of the same installed app; resets on uninstall/reinstall.
Privacy-preserving alternative to device.id. On iOS, typically sourced
from identifierForVendor.
'
x-go-type-skip-optional-pointer: true
name:
type: string
description: Application name
x-go-type-skip-optional-pointer: true
namespace:
type: string
description: Application namespace
x-go-type-skip-optional-pointer: true
release:
type: string
description: Release identifier
x-go-type-skip-optional-pointer: true
version:
type: string
description: Application version
x-go-type-skip-optional-pointer: true
x-go-type-skip-optional-pointer: true
Brand:
type: object
description: represents a single browser brand.
properties:
brand:
type: string
description: Brand name
x-go-type-skip-optional-pointer: true
version:
type: string
description: Brand version
x-go-type-skip-optional-pointer: true
x-go-type-skip-optional-pointer: true
BrandsArray:
type: array
items:
$ref: '#/components/schemas/Brand'
BrandsString:
type: string
description: represents brands as a string.
x-go-type-skip-optional-pointer: true
Browser:
type: object
description: holds metadata about a client's browser.
properties:
name:
type: string
description: Browser name (e.g. `Chrome`)
x-go-type-skip-optional-pointer: true
version:
type: string
description: Browser version
x-go-type-skip-optional-pointer: true
os:
type: string
description: Operating system
x-go-type-skip-optional-pointer: true
x-go-name: OS
mobile:
type: boolean
description: Whether the browser is on a mobile device
x-go-type-skip-optional-pointer: true
userAgent:
type: string
description: Full user agent string
x-go-type-skip-optional-pointer: true
language:
type: string
description: Browser language
x-go-type-skip-optional-pointer: true
brands:
description: Browser brand list; either a string or an array of Brand objects
oneOf:
- $ref: '#/components/schemas/BrandsString'
- $ref: '#/components/schemas/BrandsArray'
x-go-type-skip-optional-pointer: true
viewportWidth:
type: string
description: Viewport width in pixels
x-go-type-skip-optional-pointer: true
viewportHeight:
type: string
description: Viewport height in pixels
x-go-type-skip-optional-pointer: true
x-go-type-skip-optional-pointer: true
Device:
type: object
description: holds metadata about the device the app runs on.
properties:
manufacturer:
type: string
description: 'Device manufacturer (OTel: device.manufacturer). E.g. Apple,
Samsung.'
x-go-type-skip-optional-pointer: true
model_identifier:
type: string
description: 'Machine-readable model ID (OTel: device.model.identifier).
E.g. iPhone3,4, SM-G920F.'
x-go-type-skip-optional-pointer: true
model_name:
type: string
description: 'Human-readable model name (OTel: device.model.name). E.g.
iPhone 6s Plus.'
x-go-type-skip-optional-pointer: true
brand:
type: string
description: Consumer-facing brand. E.g. Google Pixel, Samsung Galaxy.
x-go-type-skip-optional-pointer: true
is_physical:
type: boolean
description: Whether this is a physical device (true) or emulator/simulator
(false).
x-go-type-skip-optional-pointer: true
type:
type: string
description: Device form factor. E.g. mobile, tablet.
x-go-type-skip-optional-pointer: true
x-go-type-skip-optional-pointer: true
Event:
type: object
description: holds RUM event data.
required:
- name
properties:
attributes:
type: object
description: Arbitrary event attributes
additionalProperties:
type: string
x-go-type-skip-optional-pointer: true
domain:
type: string
description: Event domain / category
x-go-type-skip-optional-pointer: true
name:
type: string
description: Event name
timestamp:
type: string
description: Time the event occurred
format: date-time
x-go-type-skip-optional-pointer: true
trace:
description: Associated trace and span IDs
$ref: '#/components/schemas/TraceContext'
action:
description: Associated user action
$ref: '#/components/schemas/Action'
x-go-type-skip-optional-pointer: true
Exception:
description: holds all the data regarding an exception.
type: object
required:
- timestamp
properties:
context:
description: Arbitrary key-value context
$ref: '#/components/schemas/ExceptionContext'
x-go-type-skip-optional-pointer: true
stacktrace:
description: Stack trace
$ref: '#/components/schemas/Stacktrace'
timestamp:
type: string
description: Time the exception was captured
format: date-time
trace:
description: Associated trace and span IDs
$ref: '#/components/schemas/TraceContext'
x-go-type-skip-optional-pointer: true
type:
type: string
description: Exception class or type name
x-go-type-skip-optional-pointer: true
fatal:
type: boolean
description: 'Whether this exception caused app termination (crash, ANR,
OOM). Defaults to false when not set. Web exceptions are typically non-fatal;
mobile SDKs set this for native crash reports.
'
x-go-type-skip-optional-pointer: true
fingerprint:
type: string
description: Custom grouping fingerprint
x-go-type-skip-optional-pointer: true
value:
type: string
description: Exception message
x-go-type-skip-optional-pointer: true
action:
description: Associated user action
$ref: '#/components/schemas/Action'
x-go-type-skip-optional-pointer: true
ExceptionContext:
type: object
additionalProperties:
type: string
x-go-type-skip-optional-pointer: true
Frame:
type: object
description: represents a single stacktrace frame.
properties:
colno:
type: integer
description: Column number
x-go-type-skip-optional-pointer: true
filename:
type: string
description: Source file name or URL
x-go-type-skip-optional-pointer: true
function:
type: string
description: Function name
x-go-type-skip-optional-pointer: true
lineno:
type: integer
description: Line number
x-go-type-skip-optional-pointer: true
module:
type: string
description: Module name
x-go-type-skip-optional-pointer: true
x-go-type-skip-optional-pointer: true
Geo:
type: object
description: holds metadata about a client's geo.
properties:
continent_iso:
type: string
description: Continent ISO code
x-go-type-skip-optional-pointer: true
x-go-name: ContinentISOCode
country_iso:
type: string
description: Country ISO 3166-1 alpha-2 code
x-go-type-skip-optional-pointer: true
x-go-name: CountryISOCode
subdivision_iso:
type: string
description: Subdivision / state ISO code
x-go-type-skip-optional-pointer: true
x-go-name: SubdivisionISO
city:
type: string
description: City name
x-go-type-skip-optional-pointer: true
asn_org:
type: string
description: ASN organisation name
x-go-type-skip-optional-pointer: true
x-go-name: ASNOrg
asn_id:
type: string
description: ASN identifier
x-go-type-skip-optional-pointer: true
x-go-name: ASNID
x-go-type-skip-optional-pointer: true
K6:
type: object
description: holds metadata about whether or not the run happened in a K6 browser.
properties:
isK6Browser:
type: boolean
description: '`true` when running inside a k6 browser session'
x-go-type-skip-optional-pointer: true
testRunId:
type: string
description: k6 test run identifier when running inside a k6 browser session
x-go-type-skip-optional-pointer: true
x-go-name: TestRunID
x-go-type-skip-optional-pointer: true
Kind:
type: string
enum:
- event
- exception
- log
- measurement
- unknown
Log:
type: object
description: controls the data that come into a Log message.
required:
- timestamp
properties:
context:
description: Arbitrary key-value context
$ref: '#/components/schemas/LogContext'
x-go-type-skip-optional-pointer: true
level:
description: Log severity level
$ref: '#/components/schemas/LogLevel'
x-go-type-skip-optional-pointer: true
x-go-name: LogLevel
message:
type: string
description: Log message text
x-go-type-skip-optional-pointer: true
timestamp:
type: string
description: Time the log was captured
format: date-time
trace:
description: Associated trace and span IDs
$ref: '#/components/schemas/TraceContext'
action:
description: Associated user action
$ref: '#/components/schemas/Action'
x-go-type-skip-optional-pointer: true
LogContext:
type: object
description: is a string to string map structure that represents the context
of a log message.
additionalProperties:
type: string
x-go-type-skip-optional-pointer: true
LogLevel:
type: string
description: log level enum for incoming app logs.
enum:
- trace
- debug
- info
- warning
- error
x-go-type-skip-optional-pointer: true
x-go-name: LogLevel
Measurement:
type: object
description: holds the data for user provided measurements.
properties:
context:
description: Arbitrary key-value context
$ref: '#/components/schemas/MeasurementContext'
timestamp:
type: string
description: Time the measurement was captured
format: date-time
x-go-type-skip-optional-pointer: true
trace:
description: Associated trace and span IDs
$ref: '#/components/schemas/TraceContext'
type:
type: string
description: Measurement type name
x-go-type-skip-optional-pointer: true
values:
type: object
description: Named numeric values
additionalProperties:
type: number
format: double
x-go-type-skip-optional-pointer: true
action:
description: Associated user action
$ref: '#/components/schemas/Action'
x-go-type-skip-optional-pointer: true
MeasurementContext:
type: object
additionalProperties:
type: string
x-go-type-skip-optional-pointer: true
Meta:
type: object
description: holds metadata about an app event.
properties:
sdk:
description: Metadata about the Faro SDK that produced the payload
$ref: '#/components/schemas/SDK'
app:
description: Metadata about the application
$ref: '#/components/schemas/App'
user:
description: Metadata about the end user
$ref: '#/components/schemas/User'
session:
description: Metadata about the browser/app session
$ref: '#/components/schemas/Session'
page:
description: Metadata about the current web page
$ref: '#/components/schemas/Page'
browser:
description: Metadata about the browser
$ref: '#/components/schemas/Browser'
device:
description: Metadata about the device
$ref: '#/components/schemas/Device'
os:
description: Metadata about the operating system
x-go-name: OS
allOf:
- $ref: '#/components/schemas/OS'
k6:
description: Metadata indicating whether the session runs in k6 browser
$ref: '#/components/schemas/K6'
view:
description: Metadata about the current view/screen
$ref: '#/components/schemas/View'
geo:
description: Geo information (populated server-side by the receiver)
$ref: '#/components/schemas/Geo'
x-go-type-skip-optional-pointer: true
OS:
type: object
description: holds metadata about the operating system the app runs on.
properties:
name:
type: string
description: 'OS name (OTel: os.name). E.g. iOS, Android, Windows, macOS.'
x-go-type-skip-optional-pointer: true
version:
type: string
description: 'OS version string (OTel: os.version). E.g. 18.1, 15.'
x-go-type-skip-optional-pointer: true
build_id:
type: string
description: 'OS build identifier (OTel: os.build_id). E.g. 22G91, TQ3A.230901.001.'
x-go-type-skip-optional-pointer: true
detail:
type: string
description: 'Human-readable OS version detail (OTel: os.description). Richer
than name+version alone.'
x-go-type-skip-optional-pointer: true
x-go-type-skip-optional-pointer: true
Overrides:
type: object
description: represents session override metadata.
properties:
serviceName:
type: string
description: Override the service name for this session
x-go-type-skip-optional-pointer: true
geoLocationTrackingEnabled:
type: boolean
description: Whether geo-location tracking is enabled for this session
x-go-type-skip-optional-pointer: false
x-go-type-skip-optional-pointer: true
Page:
type: object
description: holds metadata about the web page event originates from.
properties:
attributes:
type: object
description: Arbitrary page attributes
additionalProperties:
type: string
x-go-type-skip-optional-pointer: true
id:
type: string
description: Page identifier
x-go-type-skip-optional-pointer: true
url:
type: string
description: Full page URL
x-go-type-skip-optional-pointer: true
x-go-type-skip-optional-pointer: true
Payload:
type: object
description: is the body of the receiver request.
properties:
events:
type: array
description: Custom RUM events
items:
$ref: '#/components/schemas/Event'
minItems: 0
x-go-type-skip-optional-pointer: true
exceptions:
type: array
description: Captured exceptions / errors
items:
$ref: '#/components/schemas/Exception'
minItems: 0
x-go-type-skip-optional-pointer: true
logs:
type: array
description: Log messages
items:
$ref: '#/components/schemas/Log'
minItems: 0
x-go-type-skip-optional-pointer: true
measurements:
type: array
description: Custom numeric measurements
items:
$ref: '#/components/schemas/Measurement'
x-go-type-skip-optional-pointer: true
meta:
description: Contextual metadata about the app, session, user, and client
$ref: '#/components/schemas/Meta'
free-form: true
x-go-type-skip-optional-pointer: true
traces:
type: object
description: OTel trace data (OTLP JSON format)
$ref: '#/components/schemas/Traces'
SDK:
type: object
description: holds metadata about the app agent that produced the event.
properties:
name:
type: string
description: SDK name (e.g. `@grafana/faro-web-sdk`)
x-go-type-skip-optional-pointer: true
version:
type: string
description: SDK version
x-go-type-skip-optional-pointer: true
integrations:
type: array
description: Active SDK integrations/plugins
items:
$ref: '#/components/schemas/SDKIntegration'
x-go-type-skip-optional-pointer: true
x-go-type-skip-optional-pointer: true
x-go-name: SDK
SDKIntegration:
type: object
description: holds metadata about a plugin/integration on the app agent that
collected and sent the event.
properties:
name:
type: string
description: Integration name
x-go-type-skip-optional-pointer: true
version:
type: string
description: Integration version
x-go-type-skip-optional-pointer: true
Session:
type: object
description: holds metadata about the browser session the event originates from.
properties:
id:
type: string
description: Session identifier. Must match `^[a-zA-Z0-9_.@:-]+$` and be
at most 128 characters long.
x-go-type-skip-optional-pointer: true
attributes:
type: object
description: Arbitrary session attributes
additionalProperties:
type: string
x-go-type-skip-optional-pointer: true
overrides:
description: Session-level overrides
$ref: '#/components/schemas/Overrides'
x-go-type-skip-optional-pointer: true
SpanEvent:
type: object
required:
- name
properties:
attributes:
type: array
droppedAttributesCount:
type: integer
name:
type: string
timeUnixNano:
type: string
Stacktrace:
type: object
description: is a collection of Frames.
properties:
frames:
type: array
description: Ordered list of stack frames (innermost first)
items:
$ref: '#/components/schemas/Frame'
minItems: 0
x-go-type-skip-optional-pointer: true
TimeFormat:
type: string
enum:
- '2006-01-02T15:04:05.999Z'
x-enum-varnames:
- RFC3339Milli
TraceContext:
description: holds trace id and span id associated to an entity (log, exception,
measurement...).
type: object
required:
- trace_id
- span_id
properties:
span_id:
type: string
description: OTel span ID (hex-encoded)
x-go-type-skip-optional-pointer: true
x-omitempty: false
trace_id:
type: string
description: OTel trace ID (hex-encoded)
x-go-type-skip-optional-pointer: true
x-omitempty: false
x-go-type-skip-optional-pointer: true
Traces:
type: object
description: otel traces model.
x-go-type: ptrace.Traces
x-go-type-import:
name: ptrace
path: go.opentelemetry.io/collector/pdata/ptrace
User:
type: object
description: holds metadata about the user related to an app event.
properties:
username:
type: string
description: Username
x-go-type-skip-optional-pointer: true
id:
type: string
description: User identifier
x-go-type-skip-optional-pointer: true
email:
type: string
description: Email address
x-go-type-skip-optional-pointer: true
attributes:
type: object
description: Arbitrary user attributes
additionalProperties:
type: string
x-go-type-skip-optional-pointer: true
x-go-type-skip-optional-pointer: true
View:
type: object
description: holds metadata about a view.
properties:
name:
type: string
description: View or screen name
x-go-type-skip-optional-pointer: true
x-go-type-skip-optional-pointer: true