@libo11y/spec 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +84 -2
- package/dist/appregistry.d.ts +61 -0
- package/dist/appregistry.js +152 -0
- package/dist/cli.d.ts +6 -0
- package/dist/cli.js +95 -0
- package/dist/generated/goprint.d.ts +5 -0
- package/dist/generated/goprint.js +108 -0
- package/dist/generated/spec.d.ts +218 -0
- package/dist/generated/spec.js +191 -0
- package/dist/generated/tables.d.ts +41 -0
- package/dist/generated/tables.js +176 -0
- package/dist/goquote.d.ts +2 -0
- package/dist/goquote.js +59 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/yaml.d.ts +19 -0
- package/dist/yaml.js +491 -0
- package/dist/yamlv3.d.ts +36 -0
- package/dist/yamlv3.js +335 -0
- package/package.json +36 -4
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// Code generated by specgen from Go's unicode.IsPrint (Unicode 15.0.0). DO NOT EDIT.
|
|
2
|
+
/**
|
|
3
|
+
* The code points Go's unicode.IsPrint accepts, as sorted, inclusive [lo, hi] pairs flattened into one
|
|
4
|
+
* array. strconv.Quote escapes everything outside them, and also '"' and '\\'.
|
|
5
|
+
*/
|
|
6
|
+
export const GO_PRINT_RANGES = [
|
|
7
|
+
32, 126, 161, 172, 174, 887, 890, 895, 900, 906, 908, 908, 910, 929, 931, 1327, 1329, 1366, 1369,
|
|
8
|
+
1418, 1421, 1423, 1425, 1479, 1488, 1514, 1519, 1524, 1542, 1563, 1565, 1756, 1758, 1805, 1808,
|
|
9
|
+
1866, 1869, 1969, 1984, 2042, 2045, 2093, 2096, 2110, 2112, 2139, 2142, 2142, 2144, 2154, 2160,
|
|
10
|
+
2190, 2200, 2273, 2275, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486,
|
|
11
|
+
2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2558, 2561,
|
|
12
|
+
2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620,
|
|
13
|
+
2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2678, 2689,
|
|
14
|
+
2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759,
|
|
15
|
+
2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2801, 2809, 2815, 2817, 2819, 2821, 2828, 2831,
|
|
16
|
+
2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2901,
|
|
17
|
+
2903, 2908, 2909, 2911, 2915, 2918, 2935, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969,
|
|
18
|
+
2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018,
|
|
19
|
+
3021, 3024, 3024, 3031, 3031, 3046, 3066, 3072, 3084, 3086, 3088, 3090, 3112, 3114, 3129, 3132,
|
|
20
|
+
3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3162, 3165, 3165, 3168, 3171, 3174, 3183, 3191,
|
|
21
|
+
3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285,
|
|
22
|
+
3286, 3293, 3294, 3296, 3299, 3302, 3311, 3313, 3315, 3328, 3340, 3342, 3344, 3346, 3396, 3398,
|
|
23
|
+
3400, 3402, 3407, 3412, 3427, 3430, 3455, 3457, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517,
|
|
24
|
+
3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3558, 3567, 3570, 3572, 3585,
|
|
25
|
+
3642, 3647, 3675, 3713, 3714, 3716, 3716, 3718, 3722, 3724, 3747, 3749, 3749, 3751, 3773, 3776,
|
|
26
|
+
3780, 3782, 3782, 3784, 3790, 3792, 3801, 3804, 3807, 3840, 3911, 3913, 3948, 3953, 3991, 3993,
|
|
27
|
+
4028, 4030, 4044, 4046, 4058, 4096, 4293, 4295, 4295, 4301, 4301, 4304, 4680, 4682, 4685, 4688,
|
|
28
|
+
4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800,
|
|
29
|
+
4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4988, 4992, 5017, 5024,
|
|
30
|
+
5109, 5112, 5117, 5120, 5759, 5761, 5788, 5792, 5880, 5888, 5909, 5919, 5942, 5952, 5971, 5984,
|
|
31
|
+
5996, 5998, 6000, 6002, 6003, 6016, 6109, 6112, 6121, 6128, 6137, 6144, 6157, 6159, 6169, 6176,
|
|
32
|
+
6264, 6272, 6314, 6320, 6389, 6400, 6430, 6432, 6443, 6448, 6459, 6464, 6464, 6468, 6509, 6512,
|
|
33
|
+
6516, 6528, 6571, 6576, 6601, 6608, 6618, 6622, 6683, 6686, 6750, 6752, 6780, 6783, 6793, 6800,
|
|
34
|
+
6809, 6816, 6829, 6832, 6862, 6912, 6988, 6992, 7038, 7040, 7155, 7164, 7223, 7227, 7241, 7245,
|
|
35
|
+
7304, 7312, 7354, 7357, 7367, 7376, 7418, 7424, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016,
|
|
36
|
+
8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8132, 8134, 8147, 8150,
|
|
37
|
+
8155, 8157, 8175, 8178, 8180, 8182, 8190, 8208, 8231, 8240, 8286, 8304, 8305, 8308, 8334, 8336,
|
|
38
|
+
8348, 8352, 8384, 8400, 8432, 8448, 8587, 8592, 9254, 9280, 9290, 9312, 11123, 11126, 11157,
|
|
39
|
+
11159, 11507, 11513, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11632, 11647, 11670,
|
|
40
|
+
11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734,
|
|
41
|
+
11736, 11742, 11744, 11869, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12283, 12289, 12351,
|
|
42
|
+
12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12771, 12784, 12830, 12832, 42124,
|
|
43
|
+
42128, 42182, 42192, 42539, 42560, 42743, 42752, 42954, 42960, 42961, 42963, 42963, 42965, 42969,
|
|
44
|
+
42994, 43052, 43056, 43065, 43072, 43127, 43136, 43205, 43214, 43225, 43232, 43347, 43359, 43388,
|
|
45
|
+
43392, 43469, 43471, 43481, 43486, 43518, 43520, 43574, 43584, 43597, 43600, 43609, 43612, 43714,
|
|
46
|
+
43739, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43824, 43883,
|
|
47
|
+
43888, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217,
|
|
48
|
+
64256, 64262, 64275, 64279, 64285, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324,
|
|
49
|
+
64326, 64450, 64467, 64911, 64914, 64967, 64975, 64975, 65008, 65049, 65056, 65106, 65108, 65126,
|
|
50
|
+
65128, 65131, 65136, 65140, 65142, 65276, 65281, 65470, 65474, 65479, 65482, 65487, 65490, 65495,
|
|
51
|
+
65498, 65500, 65504, 65510, 65512, 65518, 65532, 65533, 65536, 65547, 65549, 65574, 65576, 65594,
|
|
52
|
+
65596, 65597, 65599, 65613, 65616, 65629, 65664, 65786, 65792, 65794, 65799, 65843, 65847, 65934,
|
|
53
|
+
65936, 65948, 65952, 65952, 66000, 66045, 66176, 66204, 66208, 66256, 66272, 66299, 66304, 66339,
|
|
54
|
+
66349, 66378, 66384, 66426, 66432, 66461, 66463, 66499, 66504, 66517, 66560, 66717, 66720, 66729,
|
|
55
|
+
66736, 66771, 66776, 66811, 66816, 66855, 66864, 66915, 66927, 66938, 66940, 66954, 66956, 66962,
|
|
56
|
+
66964, 66965, 66967, 66977, 66979, 66993, 66995, 67001, 67003, 67004, 67072, 67382, 67392, 67413,
|
|
57
|
+
67424, 67431, 67456, 67461, 67463, 67504, 67506, 67514, 67584, 67589, 67592, 67592, 67594, 67637,
|
|
58
|
+
67639, 67640, 67644, 67644, 67647, 67669, 67671, 67742, 67751, 67759, 67808, 67826, 67828, 67829,
|
|
59
|
+
67835, 67867, 67871, 67897, 67903, 67903, 67968, 68023, 68028, 68047, 68050, 68099, 68101, 68102,
|
|
60
|
+
68108, 68115, 68117, 68119, 68121, 68149, 68152, 68154, 68159, 68168, 68176, 68184, 68192, 68255,
|
|
61
|
+
68288, 68326, 68331, 68342, 68352, 68405, 68409, 68437, 68440, 68466, 68472, 68497, 68505, 68508,
|
|
62
|
+
68521, 68527, 68608, 68680, 68736, 68786, 68800, 68850, 68858, 68903, 68912, 68921, 69216, 69246,
|
|
63
|
+
69248, 69289, 69291, 69293, 69296, 69297, 69373, 69415, 69424, 69465, 69488, 69513, 69552, 69579,
|
|
64
|
+
69600, 69622, 69632, 69709, 69714, 69749, 69759, 69820, 69822, 69826, 69840, 69864, 69872, 69881,
|
|
65
|
+
69888, 69940, 69942, 69959, 69968, 70006, 70016, 70111, 70113, 70132, 70144, 70161, 70163, 70209,
|
|
66
|
+
70272, 70278, 70280, 70280, 70282, 70285, 70287, 70301, 70303, 70313, 70320, 70378, 70384, 70393,
|
|
67
|
+
70400, 70403, 70405, 70412, 70415, 70416, 70419, 70440, 70442, 70448, 70450, 70451, 70453, 70457,
|
|
68
|
+
70459, 70468, 70471, 70472, 70475, 70477, 70480, 70480, 70487, 70487, 70493, 70499, 70502, 70508,
|
|
69
|
+
70512, 70516, 70656, 70747, 70749, 70753, 70784, 70855, 70864, 70873, 71040, 71093, 71096, 71133,
|
|
70
|
+
71168, 71236, 71248, 71257, 71264, 71276, 71296, 71353, 71360, 71369, 71424, 71450, 71453, 71467,
|
|
71
|
+
71472, 71494, 71680, 71739, 71840, 71922, 71935, 71942, 71945, 71945, 71948, 71955, 71957, 71958,
|
|
72
|
+
71960, 71989, 71991, 71992, 71995, 72006, 72016, 72025, 72096, 72103, 72106, 72151, 72154, 72164,
|
|
73
|
+
72192, 72263, 72272, 72354, 72368, 72440, 72448, 72457, 72704, 72712, 72714, 72758, 72760, 72773,
|
|
74
|
+
72784, 72812, 72816, 72847, 72850, 72871, 72873, 72886, 72960, 72966, 72968, 72969, 72971, 73014,
|
|
75
|
+
73018, 73018, 73020, 73021, 73023, 73031, 73040, 73049, 73056, 73061, 73063, 73064, 73066, 73102,
|
|
76
|
+
73104, 73105, 73107, 73112, 73120, 73129, 73440, 73464, 73472, 73488, 73490, 73530, 73534, 73561,
|
|
77
|
+
73648, 73648, 73664, 73713, 73727, 74649, 74752, 74862, 74864, 74868, 74880, 75075, 77712, 77810,
|
|
78
|
+
77824, 78895, 78912, 78933, 82944, 83526, 92160, 92728, 92736, 92766, 92768, 92777, 92782, 92862,
|
|
79
|
+
92864, 92873, 92880, 92909, 92912, 92917, 92928, 92997, 93008, 93017, 93019, 93025, 93027, 93047,
|
|
80
|
+
93053, 93071, 93760, 93850, 93952, 94026, 94031, 94087, 94095, 94111, 94176, 94180, 94192, 94193,
|
|
81
|
+
94208, 100343, 100352, 101589, 101632, 101640, 110576, 110579, 110581, 110587, 110589, 110590,
|
|
82
|
+
110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355,
|
|
83
|
+
113664, 113770, 113776, 113788, 113792, 113800, 113808, 113817, 113820, 113823, 118528, 118573,
|
|
84
|
+
118576, 118598, 118608, 118723, 118784, 119029, 119040, 119078, 119081, 119154, 119163, 119274,
|
|
85
|
+
119296, 119365, 119488, 119507, 119520, 119539, 119552, 119638, 119648, 119672, 119808, 119892,
|
|
86
|
+
119894, 119964, 119966, 119967, 119970, 119970, 119973, 119974, 119977, 119980, 119982, 119993,
|
|
87
|
+
119995, 119995, 119997, 120003, 120005, 120069, 120071, 120074, 120077, 120084, 120086, 120092,
|
|
88
|
+
120094, 120121, 120123, 120126, 120128, 120132, 120134, 120134, 120138, 120144, 120146, 120485,
|
|
89
|
+
120488, 120779, 120782, 121483, 121499, 121503, 121505, 121519, 122624, 122654, 122661, 122666,
|
|
90
|
+
122880, 122886, 122888, 122904, 122907, 122913, 122915, 122916, 122918, 122922, 122928, 122989,
|
|
91
|
+
123023, 123023, 123136, 123180, 123184, 123197, 123200, 123209, 123214, 123215, 123536, 123566,
|
|
92
|
+
123584, 123641, 123647, 123647, 124112, 124153, 124896, 124902, 124904, 124907, 124909, 124910,
|
|
93
|
+
124912, 124926, 124928, 125124, 125127, 125142, 125184, 125259, 125264, 125273, 125278, 125279,
|
|
94
|
+
126065, 126132, 126209, 126269, 126464, 126467, 126469, 126495, 126497, 126498, 126500, 126500,
|
|
95
|
+
126503, 126503, 126505, 126514, 126516, 126519, 126521, 126521, 126523, 126523, 126530, 126530,
|
|
96
|
+
126535, 126535, 126537, 126537, 126539, 126539, 126541, 126543, 126545, 126546, 126548, 126548,
|
|
97
|
+
126551, 126551, 126553, 126553, 126555, 126555, 126557, 126557, 126559, 126559, 126561, 126562,
|
|
98
|
+
126564, 126564, 126567, 126570, 126572, 126578, 126580, 126583, 126585, 126588, 126590, 126590,
|
|
99
|
+
126592, 126601, 126603, 126619, 126625, 126627, 126629, 126633, 126635, 126651, 126704, 126705,
|
|
100
|
+
126976, 127019, 127024, 127123, 127136, 127150, 127153, 127167, 127169, 127183, 127185, 127221,
|
|
101
|
+
127232, 127405, 127462, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589,
|
|
102
|
+
127744, 128727, 128732, 128748, 128752, 128764, 128768, 128886, 128891, 128985, 128992, 129003,
|
|
103
|
+
129008, 129008, 129024, 129035, 129040, 129095, 129104, 129113, 129120, 129159, 129168, 129197,
|
|
104
|
+
129200, 129201, 129280, 129619, 129632, 129645, 129648, 129660, 129664, 129672, 129680, 129725,
|
|
105
|
+
129727, 129733, 129742, 129755, 129760, 129768, 129776, 129784, 129792, 129938, 129940, 129994,
|
|
106
|
+
130032, 130041, 131072, 173791, 173824, 177977, 177984, 178205, 178208, 183969, 183984, 191456,
|
|
107
|
+
194560, 195101, 196608, 201546, 201552, 205743, 917760, 917999,
|
|
108
|
+
];
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/** The schema URL stamped on every resource libo11y builds. */
|
|
2
|
+
export declare const SCHEMA_URL = "https://schemas.o11y.ing/libo11y/1.2.0";
|
|
3
|
+
/** The libo11y specification version this package implements. */
|
|
4
|
+
export declare const SPEC_VERSION = "1.2.0";
|
|
5
|
+
/** The pinned OpenTelemetry semantic conventions version. */
|
|
6
|
+
export declare const SEMCONV_VERSION = "1.41.0";
|
|
7
|
+
/** The log attribute that carries an event's name. */
|
|
8
|
+
export declare const EVENT_NAME_KEY = "event.name";
|
|
9
|
+
/** The closed value set for `o11y.outcome`. */
|
|
10
|
+
export type Outcome = "success" | "failure" | "unknown";
|
|
11
|
+
export declare const OUTCOME_VALUE_SUCCESS = "success";
|
|
12
|
+
export declare const OUTCOME_VALUE_FAILURE = "failure";
|
|
13
|
+
export declare const OUTCOME_VALUE_UNKNOWN = "unknown";
|
|
14
|
+
/** Every value of `o11y.outcome`. */
|
|
15
|
+
export declare const OUTCOME_VALUES: readonly Outcome[];
|
|
16
|
+
/** The closed value set for `o11y.record.class`. */
|
|
17
|
+
export type RecordClass = "audit";
|
|
18
|
+
export declare const RECORD_CLASS_VALUE_AUDIT = "audit";
|
|
19
|
+
/** Every value of `o11y.record.class`. */
|
|
20
|
+
export declare const RECORD_CLASS_VALUES: readonly RecordClass[];
|
|
21
|
+
/** The closed value set for `o11y.data.classification`. */
|
|
22
|
+
export type DataClassification = "public" | "internal" | "confidential" | "pii";
|
|
23
|
+
export declare const DATA_CLASSIFICATION_VALUE_PUBLIC = "public";
|
|
24
|
+
export declare const DATA_CLASSIFICATION_VALUE_INTERNAL = "internal";
|
|
25
|
+
export declare const DATA_CLASSIFICATION_VALUE_CONFIDENTIAL = "confidential";
|
|
26
|
+
export declare const DATA_CLASSIFICATION_VALUE_PII = "pii";
|
|
27
|
+
/** Every value of `o11y.data.classification`. */
|
|
28
|
+
export declare const DATA_CLASSIFICATION_VALUES: readonly DataClassification[];
|
|
29
|
+
/** The closed value set for `o11y.signal`. */
|
|
30
|
+
export type Signal = "traces" | "metrics" | "logs" | "resource";
|
|
31
|
+
export declare const SIGNAL_VALUE_TRACES = "traces";
|
|
32
|
+
export declare const SIGNAL_VALUE_METRICS = "metrics";
|
|
33
|
+
export declare const SIGNAL_VALUE_LOGS = "logs";
|
|
34
|
+
export declare const SIGNAL_VALUE_RESOURCE = "resource";
|
|
35
|
+
/** Every value of `o11y.signal`. */
|
|
36
|
+
export declare const SIGNAL_VALUES: readonly Signal[];
|
|
37
|
+
/** The closed value set for `o11y.log.source`. */
|
|
38
|
+
export type LogSource = "logger" | "console";
|
|
39
|
+
export declare const LOG_SOURCE_VALUE_LOGGER = "logger";
|
|
40
|
+
export declare const LOG_SOURCE_VALUE_CONSOLE = "console";
|
|
41
|
+
/** Every value of `o11y.log.source`. */
|
|
42
|
+
export declare const LOG_SOURCE_VALUES: readonly LogSource[];
|
|
43
|
+
/** The closed value set for `o11y.rum.platform`. */
|
|
44
|
+
export type RUMPlatform = "web" | "webext" | "react_native" | "ios" | "android";
|
|
45
|
+
export declare const RUM_PLATFORM_VALUE_WEB = "web";
|
|
46
|
+
export declare const RUM_PLATFORM_VALUE_WEBEXT = "webext";
|
|
47
|
+
export declare const RUM_PLATFORM_VALUE_REACT_NATIVE = "react_native";
|
|
48
|
+
export declare const RUM_PLATFORM_VALUE_IOS = "ios";
|
|
49
|
+
export declare const RUM_PLATFORM_VALUE_ANDROID = "android";
|
|
50
|
+
/** Every value of `o11y.rum.platform`. */
|
|
51
|
+
export declare const RUM_PLATFORM_VALUES: readonly RUMPlatform[];
|
|
52
|
+
/** The closed value set for `o11y.rum.view.kind`. */
|
|
53
|
+
export type RUMViewKind = "initial" | "soft" | "bfcache_restore" | "prerender" | "screen";
|
|
54
|
+
export declare const RUM_VIEW_KIND_VALUE_INITIAL = "initial";
|
|
55
|
+
export declare const RUM_VIEW_KIND_VALUE_SOFT = "soft";
|
|
56
|
+
export declare const RUM_VIEW_KIND_VALUE_BFCACHE_RESTORE = "bfcache_restore";
|
|
57
|
+
export declare const RUM_VIEW_KIND_VALUE_PRERENDER = "prerender";
|
|
58
|
+
export declare const RUM_VIEW_KIND_VALUE_SCREEN = "screen";
|
|
59
|
+
/** Every value of `o11y.rum.view.kind`. */
|
|
60
|
+
export declare const RUM_VIEW_KIND_VALUES: readonly RUMViewKind[];
|
|
61
|
+
/** The closed value set for `o11y.rum.action.type`. */
|
|
62
|
+
export type RUMActionType = "click" | "tap" | "long_press" | "swipe" | "scroll" | "submit" | "key_press" | "custom";
|
|
63
|
+
export declare const RUM_ACTION_TYPE_VALUE_CLICK = "click";
|
|
64
|
+
export declare const RUM_ACTION_TYPE_VALUE_TAP = "tap";
|
|
65
|
+
export declare const RUM_ACTION_TYPE_VALUE_LONG_PRESS = "long_press";
|
|
66
|
+
export declare const RUM_ACTION_TYPE_VALUE_SWIPE = "swipe";
|
|
67
|
+
export declare const RUM_ACTION_TYPE_VALUE_SCROLL = "scroll";
|
|
68
|
+
export declare const RUM_ACTION_TYPE_VALUE_SUBMIT = "submit";
|
|
69
|
+
export declare const RUM_ACTION_TYPE_VALUE_KEY_PRESS = "key_press";
|
|
70
|
+
export declare const RUM_ACTION_TYPE_VALUE_CUSTOM = "custom";
|
|
71
|
+
/** Every value of `o11y.rum.action.type`. */
|
|
72
|
+
export declare const RUM_ACTION_TYPE_VALUES: readonly RUMActionType[];
|
|
73
|
+
/** The closed value set for `o11y.rum.frustration.type`. */
|
|
74
|
+
export type RUMFrustrationType = "rage" | "dead" | "error";
|
|
75
|
+
export declare const RUM_FRUSTRATION_TYPE_VALUE_RAGE = "rage";
|
|
76
|
+
export declare const RUM_FRUSTRATION_TYPE_VALUE_DEAD = "dead";
|
|
77
|
+
export declare const RUM_FRUSTRATION_TYPE_VALUE_ERROR = "error";
|
|
78
|
+
/** Every value of `o11y.rum.frustration.type`. */
|
|
79
|
+
export declare const RUM_FRUSTRATION_TYPE_VALUES: readonly RUMFrustrationType[];
|
|
80
|
+
/** The closed value set for `o11y.rum.error.source`. */
|
|
81
|
+
export type RUMErrorSource = "uncaught" | "unhandled_rejection" | "console" | "boundary" | "resource" | "csp" | "network" | "crash" | "anr" | "hang" | "custom";
|
|
82
|
+
export declare const RUM_ERROR_SOURCE_VALUE_UNCAUGHT = "uncaught";
|
|
83
|
+
export declare const RUM_ERROR_SOURCE_VALUE_UNHANDLED_REJECTION = "unhandled_rejection";
|
|
84
|
+
export declare const RUM_ERROR_SOURCE_VALUE_CONSOLE = "console";
|
|
85
|
+
export declare const RUM_ERROR_SOURCE_VALUE_BOUNDARY = "boundary";
|
|
86
|
+
export declare const RUM_ERROR_SOURCE_VALUE_RESOURCE = "resource";
|
|
87
|
+
export declare const RUM_ERROR_SOURCE_VALUE_CSP = "csp";
|
|
88
|
+
export declare const RUM_ERROR_SOURCE_VALUE_NETWORK = "network";
|
|
89
|
+
export declare const RUM_ERROR_SOURCE_VALUE_CRASH = "crash";
|
|
90
|
+
export declare const RUM_ERROR_SOURCE_VALUE_ANR = "anr";
|
|
91
|
+
export declare const RUM_ERROR_SOURCE_VALUE_HANG = "hang";
|
|
92
|
+
export declare const RUM_ERROR_SOURCE_VALUE_CUSTOM = "custom";
|
|
93
|
+
/** Every value of `o11y.rum.error.source`. */
|
|
94
|
+
export declare const RUM_ERROR_SOURCE_VALUES: readonly RUMErrorSource[];
|
|
95
|
+
/** The closed value set for `o11y.rum.device.class`. */
|
|
96
|
+
export type RUMDeviceClass = "desktop" | "mobile" | "tablet" | "tv" | "bot" | "unknown";
|
|
97
|
+
export declare const RUM_DEVICE_CLASS_VALUE_DESKTOP = "desktop";
|
|
98
|
+
export declare const RUM_DEVICE_CLASS_VALUE_MOBILE = "mobile";
|
|
99
|
+
export declare const RUM_DEVICE_CLASS_VALUE_TABLET = "tablet";
|
|
100
|
+
export declare const RUM_DEVICE_CLASS_VALUE_TV = "tv";
|
|
101
|
+
export declare const RUM_DEVICE_CLASS_VALUE_BOT = "bot";
|
|
102
|
+
export declare const RUM_DEVICE_CLASS_VALUE_UNKNOWN = "unknown";
|
|
103
|
+
/** Every value of `o11y.rum.device.class`. */
|
|
104
|
+
export declare const RUM_DEVICE_CLASS_VALUES: readonly RUMDeviceClass[];
|
|
105
|
+
/** The closed value set for `o11y.rum.connection.type`. */
|
|
106
|
+
export type RUMConnectionType = "wifi" | "cellular" | "ethernet" | "offline" | "unknown";
|
|
107
|
+
export declare const RUM_CONNECTION_TYPE_VALUE_WIFI = "wifi";
|
|
108
|
+
export declare const RUM_CONNECTION_TYPE_VALUE_CELLULAR = "cellular";
|
|
109
|
+
export declare const RUM_CONNECTION_TYPE_VALUE_ETHERNET = "ethernet";
|
|
110
|
+
export declare const RUM_CONNECTION_TYPE_VALUE_OFFLINE = "offline";
|
|
111
|
+
export declare const RUM_CONNECTION_TYPE_VALUE_UNKNOWN = "unknown";
|
|
112
|
+
/** Every value of `o11y.rum.connection.type`. */
|
|
113
|
+
export declare const RUM_CONNECTION_TYPE_VALUES: readonly RUMConnectionType[];
|
|
114
|
+
/** The closed value set for `o11y.rum.connection.effective`. */
|
|
115
|
+
export type RUMConnectionEffective = "slow-2g" | "2g" | "3g" | "4g";
|
|
116
|
+
export declare const RUM_CONNECTION_EFFECTIVE_VALUE_SLOW_2G = "slow-2g";
|
|
117
|
+
export declare const RUM_CONNECTION_EFFECTIVE_VALUE_TYPE_2G = "2g";
|
|
118
|
+
export declare const RUM_CONNECTION_EFFECTIVE_VALUE_TYPE_3G = "3g";
|
|
119
|
+
export declare const RUM_CONNECTION_EFFECTIVE_VALUE_TYPE_4G = "4g";
|
|
120
|
+
/** Every value of `o11y.rum.connection.effective`. */
|
|
121
|
+
export declare const RUM_CONNECTION_EFFECTIVE_VALUES: readonly RUMConnectionEffective[];
|
|
122
|
+
/** The closed value set for `o11y.rum.vital.rating`. */
|
|
123
|
+
export type RUMVitalRating = "good" | "needs-improvement" | "poor";
|
|
124
|
+
export declare const RUM_VITAL_RATING_VALUE_GOOD = "good";
|
|
125
|
+
export declare const RUM_VITAL_RATING_VALUE_NEEDS_IMPROVEMENT = "needs-improvement";
|
|
126
|
+
export declare const RUM_VITAL_RATING_VALUE_POOR = "poor";
|
|
127
|
+
/** Every value of `o11y.rum.vital.rating`. */
|
|
128
|
+
export declare const RUM_VITAL_RATING_VALUES: readonly RUMVitalRating[];
|
|
129
|
+
/** The closed value set for `o11y.rum.session.retained`. */
|
|
130
|
+
export type RUMSessionRetained = "head_sampled" | "error" | "frustration";
|
|
131
|
+
export declare const RUM_SESSION_RETAINED_VALUE_HEAD_SAMPLED = "head_sampled";
|
|
132
|
+
export declare const RUM_SESSION_RETAINED_VALUE_ERROR = "error";
|
|
133
|
+
export declare const RUM_SESSION_RETAINED_VALUE_FRUSTRATION = "frustration";
|
|
134
|
+
/** Every value of `o11y.rum.session.retained`. */
|
|
135
|
+
export declare const RUM_SESSION_RETAINED_VALUES: readonly RUMSessionRetained[];
|
|
136
|
+
/** The closed value set for `deployment.environment.name`. */
|
|
137
|
+
export type Environment = "production" | "staging" | "development" | "test";
|
|
138
|
+
export declare const ENVIRONMENT_VALUE_PRODUCTION = "production";
|
|
139
|
+
export declare const ENVIRONMENT_VALUE_STAGING = "staging";
|
|
140
|
+
export declare const ENVIRONMENT_VALUE_DEVELOPMENT = "development";
|
|
141
|
+
export declare const ENVIRONMENT_VALUE_TEST = "test";
|
|
142
|
+
/** Every value of `deployment.environment.name`. */
|
|
143
|
+
export declare const ENVIRONMENT_VALUES_LIST: readonly Environment[];
|
|
144
|
+
export declare const ATTR_OUTCOME = "o11y.outcome";
|
|
145
|
+
export declare const ATTR_RECORD_CLASS = "o11y.record.class";
|
|
146
|
+
export declare const ATTR_TEAM_NAME = "o11y.team.name";
|
|
147
|
+
export declare const ATTR_TENANT_ID = "o11y.tenant.id";
|
|
148
|
+
export declare const ATTR_COST_CENTER = "o11y.cost_center";
|
|
149
|
+
export declare const ATTR_DATA_CLASSIFICATION = "o11y.data.classification";
|
|
150
|
+
export declare const ATTR_LABEL = "o11y.label";
|
|
151
|
+
export declare const ATTR_BUILD_MODIFIED = "o11y.build.modified";
|
|
152
|
+
export declare const ATTR_BUILD_TIME = "o11y.build.time";
|
|
153
|
+
export declare const ATTR_CONFIG = "o11y.config";
|
|
154
|
+
export declare const ATTR_SIGNAL = "o11y.signal";
|
|
155
|
+
export declare const ATTR_RULE = "o11y.rule";
|
|
156
|
+
export declare const ATTR_DURATION = "o11y.duration";
|
|
157
|
+
export declare const ATTR_LOG_SOURCE = "o11y.log.source";
|
|
158
|
+
export declare const ATTR_RUM_PLATFORM = "o11y.rum.platform";
|
|
159
|
+
export declare const ATTR_RUM_VIEW_NAME = "o11y.rum.view.name";
|
|
160
|
+
export declare const ATTR_RUM_VIEW_ID = "o11y.rum.view.id";
|
|
161
|
+
export declare const ATTR_RUM_VIEW_KIND = "o11y.rum.view.kind";
|
|
162
|
+
export declare const ATTR_RUM_ACTION_TYPE = "o11y.rum.action.type";
|
|
163
|
+
export declare const ATTR_RUM_ACTION_NAME = "o11y.rum.action.name";
|
|
164
|
+
export declare const ATTR_RUM_FRUSTRATION_TYPE = "o11y.rum.frustration.type";
|
|
165
|
+
export declare const ATTR_RUM_ERROR_SOURCE = "o11y.rum.error.source";
|
|
166
|
+
export declare const ATTR_RUM_ERROR_FINGERPRINT = "o11y.rum.error.fingerprint";
|
|
167
|
+
export declare const ATTR_RUM_ELEMENT_SELECTOR = "o11y.rum.element.selector";
|
|
168
|
+
export declare const ATTR_RUM_ELEMENT_TEXT = "o11y.rum.element.text";
|
|
169
|
+
export declare const ATTR_RUM_DEVICE_CLASS = "o11y.rum.device.class";
|
|
170
|
+
export declare const ATTR_RUM_CONNECTION_TYPE = "o11y.rum.connection.type";
|
|
171
|
+
export declare const ATTR_RUM_CONNECTION_EFFECTIVE = "o11y.rum.connection.effective";
|
|
172
|
+
export declare const ATTR_RUM_VITAL_RATING = "o11y.rum.vital.rating";
|
|
173
|
+
export declare const ATTR_RUM_SESSION_RETAINED = "o11y.rum.session.retained";
|
|
174
|
+
export declare const ATTR_RUM_REPLAY_SEGMENT = "o11y.rum.replay.segment";
|
|
175
|
+
export declare const ATTR_RUM_CONFIG_VERSION = "o11y.rum.config.version";
|
|
176
|
+
export declare const ATTR_RUM_BROWSER_FAMILY = "o11y.rum.browser.family";
|
|
177
|
+
export declare const ATTR_CLOUD_ACCOUNT_ID = "cloud.account.id";
|
|
178
|
+
export declare const ATTR_CLOUD_AVAILABILITY_ZONE = "cloud.availability_zone";
|
|
179
|
+
export declare const ATTR_CLOUD_PLATFORM = "cloud.platform";
|
|
180
|
+
export declare const ATTR_CLOUD_PROVIDER = "cloud.provider";
|
|
181
|
+
export declare const ATTR_CLOUD_REGION = "cloud.region";
|
|
182
|
+
export declare const ATTR_CONTAINER_ID = "container.id";
|
|
183
|
+
export declare const ATTR_FAAS_INSTANCE = "faas.instance";
|
|
184
|
+
export declare const ATTR_FAAS_NAME = "faas.name";
|
|
185
|
+
export declare const ATTR_FAAS_VERSION = "faas.version";
|
|
186
|
+
export declare const ATTR_HOST_ARCH = "host.arch";
|
|
187
|
+
export declare const ATTR_HOST_ID = "host.id";
|
|
188
|
+
export declare const ATTR_HOST_NAME = "host.name";
|
|
189
|
+
export declare const ATTR_K8S_CLUSTER_NAME = "k8s.cluster.name";
|
|
190
|
+
export declare const ATTR_K8S_CONTAINER_NAME = "k8s.container.name";
|
|
191
|
+
export declare const ATTR_K8S_DEPLOYMENT_NAME = "k8s.deployment.name";
|
|
192
|
+
export declare const ATTR_K8S_NAMESPACE_NAME = "k8s.namespace.name";
|
|
193
|
+
export declare const ATTR_K8S_NODE_NAME = "k8s.node.name";
|
|
194
|
+
export declare const ATTR_K8S_POD_NAME = "k8s.pod.name";
|
|
195
|
+
export declare const ATTR_K8S_POD_UID = "k8s.pod.uid";
|
|
196
|
+
export declare const ATTR_OS_TYPE = "os.type";
|
|
197
|
+
export declare const ATTR_PROCESS_PID = "process.pid";
|
|
198
|
+
export declare const ATTR_PROCESS_RUNTIME_NAME = "process.runtime.name";
|
|
199
|
+
export declare const ATTR_PROCESS_RUNTIME_VERSION = "process.runtime.version";
|
|
200
|
+
export declare const ATTR_VCS_REF_HEAD_NAME = "vcs.ref.head.name";
|
|
201
|
+
export declare const ATTR_VCS_REF_HEAD_REVISION = "vcs.ref.head.revision";
|
|
202
|
+
export declare const EVENT_TELEMETRY_CONFIGURED = "o11y.telemetry.configured";
|
|
203
|
+
export declare const EVENT_REQUEST_SUMMARY = "o11y.request.summary";
|
|
204
|
+
export declare const EVENT_TELEMETRY_DROPPED = "o11y.telemetry.dropped";
|
|
205
|
+
export declare const EVENT_RUM_ERROR = "o11y.rum.error";
|
|
206
|
+
export declare const EVENT_RUM_FRUSTRATION = "o11y.rum.frustration";
|
|
207
|
+
export declare const EVENT_RUM_SESSION_START = "o11y.rum.session.start";
|
|
208
|
+
export declare const EVENT_RUM_SESSION_END = "o11y.rum.session.end";
|
|
209
|
+
export declare const METRIC_SCHEMA_VIOLATIONS = "o11y.schema.violations";
|
|
210
|
+
export declare const METRIC_RUM_VITAL_LCP = "o11y.rum.vital.lcp";
|
|
211
|
+
export declare const METRIC_RUM_VITAL_INP = "o11y.rum.vital.inp";
|
|
212
|
+
export declare const METRIC_RUM_VITAL_CLS = "o11y.rum.vital.cls";
|
|
213
|
+
export declare const METRIC_RUM_VITAL_FCP = "o11y.rum.vital.fcp";
|
|
214
|
+
export declare const METRIC_RUM_VITAL_TTFB = "o11y.rum.vital.ttfb";
|
|
215
|
+
export declare const METRIC_RUM_BROWSER_LONG_ANIMATION_FRAMES = "o11y.rum.browser.long_animation_frames";
|
|
216
|
+
export declare const METRIC_RUM_VIEWS = "o11y.rum.views";
|
|
217
|
+
export declare const METRIC_RUM_ERRORS = "o11y.rum.errors";
|
|
218
|
+
export declare const METRIC_RUM_FRUSTRATIONS = "o11y.rum.frustrations";
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
// Code generated by specgen from spec/registry (spec 1.2.0). DO NOT EDIT.
|
|
2
|
+
/** The schema URL stamped on every resource libo11y builds. */
|
|
3
|
+
export const SCHEMA_URL = "https://schemas.o11y.ing/libo11y/1.2.0";
|
|
4
|
+
/** The libo11y specification version this package implements. */
|
|
5
|
+
export const SPEC_VERSION = "1.2.0";
|
|
6
|
+
/** The pinned OpenTelemetry semantic conventions version. */
|
|
7
|
+
export const SEMCONV_VERSION = "1.41.0";
|
|
8
|
+
/** The log attribute that carries an event's name. */
|
|
9
|
+
export const EVENT_NAME_KEY = "event.name";
|
|
10
|
+
export const OUTCOME_VALUE_SUCCESS = "success";
|
|
11
|
+
export const OUTCOME_VALUE_FAILURE = "failure";
|
|
12
|
+
export const OUTCOME_VALUE_UNKNOWN = "unknown";
|
|
13
|
+
/** Every value of `o11y.outcome`. */
|
|
14
|
+
export const OUTCOME_VALUES = ["success", "failure", "unknown"];
|
|
15
|
+
export const RECORD_CLASS_VALUE_AUDIT = "audit";
|
|
16
|
+
/** Every value of `o11y.record.class`. */
|
|
17
|
+
export const RECORD_CLASS_VALUES = ["audit"];
|
|
18
|
+
export const DATA_CLASSIFICATION_VALUE_PUBLIC = "public";
|
|
19
|
+
export const DATA_CLASSIFICATION_VALUE_INTERNAL = "internal";
|
|
20
|
+
export const DATA_CLASSIFICATION_VALUE_CONFIDENTIAL = "confidential";
|
|
21
|
+
export const DATA_CLASSIFICATION_VALUE_PII = "pii";
|
|
22
|
+
/** Every value of `o11y.data.classification`. */
|
|
23
|
+
export const DATA_CLASSIFICATION_VALUES = ["public", "internal", "confidential", "pii"];
|
|
24
|
+
export const SIGNAL_VALUE_TRACES = "traces";
|
|
25
|
+
export const SIGNAL_VALUE_METRICS = "metrics";
|
|
26
|
+
export const SIGNAL_VALUE_LOGS = "logs";
|
|
27
|
+
export const SIGNAL_VALUE_RESOURCE = "resource";
|
|
28
|
+
/** Every value of `o11y.signal`. */
|
|
29
|
+
export const SIGNAL_VALUES = ["traces", "metrics", "logs", "resource"];
|
|
30
|
+
export const LOG_SOURCE_VALUE_LOGGER = "logger";
|
|
31
|
+
export const LOG_SOURCE_VALUE_CONSOLE = "console";
|
|
32
|
+
/** Every value of `o11y.log.source`. */
|
|
33
|
+
export const LOG_SOURCE_VALUES = ["logger", "console"];
|
|
34
|
+
export const RUM_PLATFORM_VALUE_WEB = "web";
|
|
35
|
+
export const RUM_PLATFORM_VALUE_WEBEXT = "webext";
|
|
36
|
+
export const RUM_PLATFORM_VALUE_REACT_NATIVE = "react_native";
|
|
37
|
+
export const RUM_PLATFORM_VALUE_IOS = "ios";
|
|
38
|
+
export const RUM_PLATFORM_VALUE_ANDROID = "android";
|
|
39
|
+
/** Every value of `o11y.rum.platform`. */
|
|
40
|
+
export const RUM_PLATFORM_VALUES = ["web", "webext", "react_native", "ios", "android"];
|
|
41
|
+
export const RUM_VIEW_KIND_VALUE_INITIAL = "initial";
|
|
42
|
+
export const RUM_VIEW_KIND_VALUE_SOFT = "soft";
|
|
43
|
+
export const RUM_VIEW_KIND_VALUE_BFCACHE_RESTORE = "bfcache_restore";
|
|
44
|
+
export const RUM_VIEW_KIND_VALUE_PRERENDER = "prerender";
|
|
45
|
+
export const RUM_VIEW_KIND_VALUE_SCREEN = "screen";
|
|
46
|
+
/** Every value of `o11y.rum.view.kind`. */
|
|
47
|
+
export const RUM_VIEW_KIND_VALUES = ["initial", "soft", "bfcache_restore", "prerender", "screen"];
|
|
48
|
+
export const RUM_ACTION_TYPE_VALUE_CLICK = "click";
|
|
49
|
+
export const RUM_ACTION_TYPE_VALUE_TAP = "tap";
|
|
50
|
+
export const RUM_ACTION_TYPE_VALUE_LONG_PRESS = "long_press";
|
|
51
|
+
export const RUM_ACTION_TYPE_VALUE_SWIPE = "swipe";
|
|
52
|
+
export const RUM_ACTION_TYPE_VALUE_SCROLL = "scroll";
|
|
53
|
+
export const RUM_ACTION_TYPE_VALUE_SUBMIT = "submit";
|
|
54
|
+
export const RUM_ACTION_TYPE_VALUE_KEY_PRESS = "key_press";
|
|
55
|
+
export const RUM_ACTION_TYPE_VALUE_CUSTOM = "custom";
|
|
56
|
+
/** Every value of `o11y.rum.action.type`. */
|
|
57
|
+
export const RUM_ACTION_TYPE_VALUES = ["click", "tap", "long_press", "swipe", "scroll", "submit", "key_press", "custom"];
|
|
58
|
+
export const RUM_FRUSTRATION_TYPE_VALUE_RAGE = "rage";
|
|
59
|
+
export const RUM_FRUSTRATION_TYPE_VALUE_DEAD = "dead";
|
|
60
|
+
export const RUM_FRUSTRATION_TYPE_VALUE_ERROR = "error";
|
|
61
|
+
/** Every value of `o11y.rum.frustration.type`. */
|
|
62
|
+
export const RUM_FRUSTRATION_TYPE_VALUES = ["rage", "dead", "error"];
|
|
63
|
+
export const RUM_ERROR_SOURCE_VALUE_UNCAUGHT = "uncaught";
|
|
64
|
+
export const RUM_ERROR_SOURCE_VALUE_UNHANDLED_REJECTION = "unhandled_rejection";
|
|
65
|
+
export const RUM_ERROR_SOURCE_VALUE_CONSOLE = "console";
|
|
66
|
+
export const RUM_ERROR_SOURCE_VALUE_BOUNDARY = "boundary";
|
|
67
|
+
export const RUM_ERROR_SOURCE_VALUE_RESOURCE = "resource";
|
|
68
|
+
export const RUM_ERROR_SOURCE_VALUE_CSP = "csp";
|
|
69
|
+
export const RUM_ERROR_SOURCE_VALUE_NETWORK = "network";
|
|
70
|
+
export const RUM_ERROR_SOURCE_VALUE_CRASH = "crash";
|
|
71
|
+
export const RUM_ERROR_SOURCE_VALUE_ANR = "anr";
|
|
72
|
+
export const RUM_ERROR_SOURCE_VALUE_HANG = "hang";
|
|
73
|
+
export const RUM_ERROR_SOURCE_VALUE_CUSTOM = "custom";
|
|
74
|
+
/** Every value of `o11y.rum.error.source`. */
|
|
75
|
+
export const RUM_ERROR_SOURCE_VALUES = ["uncaught", "unhandled_rejection", "console", "boundary", "resource", "csp", "network", "crash", "anr", "hang", "custom"];
|
|
76
|
+
export const RUM_DEVICE_CLASS_VALUE_DESKTOP = "desktop";
|
|
77
|
+
export const RUM_DEVICE_CLASS_VALUE_MOBILE = "mobile";
|
|
78
|
+
export const RUM_DEVICE_CLASS_VALUE_TABLET = "tablet";
|
|
79
|
+
export const RUM_DEVICE_CLASS_VALUE_TV = "tv";
|
|
80
|
+
export const RUM_DEVICE_CLASS_VALUE_BOT = "bot";
|
|
81
|
+
export const RUM_DEVICE_CLASS_VALUE_UNKNOWN = "unknown";
|
|
82
|
+
/** Every value of `o11y.rum.device.class`. */
|
|
83
|
+
export const RUM_DEVICE_CLASS_VALUES = ["desktop", "mobile", "tablet", "tv", "bot", "unknown"];
|
|
84
|
+
export const RUM_CONNECTION_TYPE_VALUE_WIFI = "wifi";
|
|
85
|
+
export const RUM_CONNECTION_TYPE_VALUE_CELLULAR = "cellular";
|
|
86
|
+
export const RUM_CONNECTION_TYPE_VALUE_ETHERNET = "ethernet";
|
|
87
|
+
export const RUM_CONNECTION_TYPE_VALUE_OFFLINE = "offline";
|
|
88
|
+
export const RUM_CONNECTION_TYPE_VALUE_UNKNOWN = "unknown";
|
|
89
|
+
/** Every value of `o11y.rum.connection.type`. */
|
|
90
|
+
export const RUM_CONNECTION_TYPE_VALUES = ["wifi", "cellular", "ethernet", "offline", "unknown"];
|
|
91
|
+
export const RUM_CONNECTION_EFFECTIVE_VALUE_SLOW_2G = "slow-2g";
|
|
92
|
+
export const RUM_CONNECTION_EFFECTIVE_VALUE_TYPE_2G = "2g";
|
|
93
|
+
export const RUM_CONNECTION_EFFECTIVE_VALUE_TYPE_3G = "3g";
|
|
94
|
+
export const RUM_CONNECTION_EFFECTIVE_VALUE_TYPE_4G = "4g";
|
|
95
|
+
/** Every value of `o11y.rum.connection.effective`. */
|
|
96
|
+
export const RUM_CONNECTION_EFFECTIVE_VALUES = ["slow-2g", "2g", "3g", "4g"];
|
|
97
|
+
export const RUM_VITAL_RATING_VALUE_GOOD = "good";
|
|
98
|
+
export const RUM_VITAL_RATING_VALUE_NEEDS_IMPROVEMENT = "needs-improvement";
|
|
99
|
+
export const RUM_VITAL_RATING_VALUE_POOR = "poor";
|
|
100
|
+
/** Every value of `o11y.rum.vital.rating`. */
|
|
101
|
+
export const RUM_VITAL_RATING_VALUES = ["good", "needs-improvement", "poor"];
|
|
102
|
+
export const RUM_SESSION_RETAINED_VALUE_HEAD_SAMPLED = "head_sampled";
|
|
103
|
+
export const RUM_SESSION_RETAINED_VALUE_ERROR = "error";
|
|
104
|
+
export const RUM_SESSION_RETAINED_VALUE_FRUSTRATION = "frustration";
|
|
105
|
+
/** Every value of `o11y.rum.session.retained`. */
|
|
106
|
+
export const RUM_SESSION_RETAINED_VALUES = ["head_sampled", "error", "frustration"];
|
|
107
|
+
export const ENVIRONMENT_VALUE_PRODUCTION = "production";
|
|
108
|
+
export const ENVIRONMENT_VALUE_STAGING = "staging";
|
|
109
|
+
export const ENVIRONMENT_VALUE_DEVELOPMENT = "development";
|
|
110
|
+
export const ENVIRONMENT_VALUE_TEST = "test";
|
|
111
|
+
/** Every value of `deployment.environment.name`. */
|
|
112
|
+
export const ENVIRONMENT_VALUES_LIST = ["production", "staging", "development", "test"];
|
|
113
|
+
// Attribute keys minted by the libo11y specification.
|
|
114
|
+
export const ATTR_OUTCOME = "o11y.outcome";
|
|
115
|
+
export const ATTR_RECORD_CLASS = "o11y.record.class";
|
|
116
|
+
export const ATTR_TEAM_NAME = "o11y.team.name";
|
|
117
|
+
export const ATTR_TENANT_ID = "o11y.tenant.id";
|
|
118
|
+
export const ATTR_COST_CENTER = "o11y.cost_center";
|
|
119
|
+
export const ATTR_DATA_CLASSIFICATION = "o11y.data.classification";
|
|
120
|
+
export const ATTR_LABEL = "o11y.label";
|
|
121
|
+
export const ATTR_BUILD_MODIFIED = "o11y.build.modified";
|
|
122
|
+
export const ATTR_BUILD_TIME = "o11y.build.time";
|
|
123
|
+
export const ATTR_CONFIG = "o11y.config";
|
|
124
|
+
export const ATTR_SIGNAL = "o11y.signal";
|
|
125
|
+
export const ATTR_RULE = "o11y.rule";
|
|
126
|
+
export const ATTR_DURATION = "o11y.duration";
|
|
127
|
+
export const ATTR_LOG_SOURCE = "o11y.log.source";
|
|
128
|
+
export const ATTR_RUM_PLATFORM = "o11y.rum.platform";
|
|
129
|
+
export const ATTR_RUM_VIEW_NAME = "o11y.rum.view.name";
|
|
130
|
+
export const ATTR_RUM_VIEW_ID = "o11y.rum.view.id";
|
|
131
|
+
export const ATTR_RUM_VIEW_KIND = "o11y.rum.view.kind";
|
|
132
|
+
export const ATTR_RUM_ACTION_TYPE = "o11y.rum.action.type";
|
|
133
|
+
export const ATTR_RUM_ACTION_NAME = "o11y.rum.action.name";
|
|
134
|
+
export const ATTR_RUM_FRUSTRATION_TYPE = "o11y.rum.frustration.type";
|
|
135
|
+
export const ATTR_RUM_ERROR_SOURCE = "o11y.rum.error.source";
|
|
136
|
+
export const ATTR_RUM_ERROR_FINGERPRINT = "o11y.rum.error.fingerprint";
|
|
137
|
+
export const ATTR_RUM_ELEMENT_SELECTOR = "o11y.rum.element.selector";
|
|
138
|
+
export const ATTR_RUM_ELEMENT_TEXT = "o11y.rum.element.text";
|
|
139
|
+
export const ATTR_RUM_DEVICE_CLASS = "o11y.rum.device.class";
|
|
140
|
+
export const ATTR_RUM_CONNECTION_TYPE = "o11y.rum.connection.type";
|
|
141
|
+
export const ATTR_RUM_CONNECTION_EFFECTIVE = "o11y.rum.connection.effective";
|
|
142
|
+
export const ATTR_RUM_VITAL_RATING = "o11y.rum.vital.rating";
|
|
143
|
+
export const ATTR_RUM_SESSION_RETAINED = "o11y.rum.session.retained";
|
|
144
|
+
export const ATTR_RUM_REPLAY_SEGMENT = "o11y.rum.replay.segment";
|
|
145
|
+
export const ATTR_RUM_CONFIG_VERSION = "o11y.rum.config.version";
|
|
146
|
+
export const ATTR_RUM_BROWSER_FAMILY = "o11y.rum.browser.family";
|
|
147
|
+
// Upstream attribute keys copied from the pinned registry snapshot.
|
|
148
|
+
export const ATTR_CLOUD_ACCOUNT_ID = "cloud.account.id";
|
|
149
|
+
export const ATTR_CLOUD_AVAILABILITY_ZONE = "cloud.availability_zone";
|
|
150
|
+
export const ATTR_CLOUD_PLATFORM = "cloud.platform";
|
|
151
|
+
export const ATTR_CLOUD_PROVIDER = "cloud.provider";
|
|
152
|
+
export const ATTR_CLOUD_REGION = "cloud.region";
|
|
153
|
+
export const ATTR_CONTAINER_ID = "container.id";
|
|
154
|
+
export const ATTR_FAAS_INSTANCE = "faas.instance";
|
|
155
|
+
export const ATTR_FAAS_NAME = "faas.name";
|
|
156
|
+
export const ATTR_FAAS_VERSION = "faas.version";
|
|
157
|
+
export const ATTR_HOST_ARCH = "host.arch";
|
|
158
|
+
export const ATTR_HOST_ID = "host.id";
|
|
159
|
+
export const ATTR_HOST_NAME = "host.name";
|
|
160
|
+
export const ATTR_K8S_CLUSTER_NAME = "k8s.cluster.name";
|
|
161
|
+
export const ATTR_K8S_CONTAINER_NAME = "k8s.container.name";
|
|
162
|
+
export const ATTR_K8S_DEPLOYMENT_NAME = "k8s.deployment.name";
|
|
163
|
+
export const ATTR_K8S_NAMESPACE_NAME = "k8s.namespace.name";
|
|
164
|
+
export const ATTR_K8S_NODE_NAME = "k8s.node.name";
|
|
165
|
+
export const ATTR_K8S_POD_NAME = "k8s.pod.name";
|
|
166
|
+
export const ATTR_K8S_POD_UID = "k8s.pod.uid";
|
|
167
|
+
export const ATTR_OS_TYPE = "os.type";
|
|
168
|
+
export const ATTR_PROCESS_PID = "process.pid";
|
|
169
|
+
export const ATTR_PROCESS_RUNTIME_NAME = "process.runtime.name";
|
|
170
|
+
export const ATTR_PROCESS_RUNTIME_VERSION = "process.runtime.version";
|
|
171
|
+
export const ATTR_VCS_REF_HEAD_NAME = "vcs.ref.head.name";
|
|
172
|
+
export const ATTR_VCS_REF_HEAD_REVISION = "vcs.ref.head.revision";
|
|
173
|
+
// Registered event names.
|
|
174
|
+
export const EVENT_TELEMETRY_CONFIGURED = "o11y.telemetry.configured";
|
|
175
|
+
export const EVENT_REQUEST_SUMMARY = "o11y.request.summary";
|
|
176
|
+
export const EVENT_TELEMETRY_DROPPED = "o11y.telemetry.dropped";
|
|
177
|
+
export const EVENT_RUM_ERROR = "o11y.rum.error";
|
|
178
|
+
export const EVENT_RUM_FRUSTRATION = "o11y.rum.frustration";
|
|
179
|
+
export const EVENT_RUM_SESSION_START = "o11y.rum.session.start";
|
|
180
|
+
export const EVENT_RUM_SESSION_END = "o11y.rum.session.end";
|
|
181
|
+
// Registered metric names.
|
|
182
|
+
export const METRIC_SCHEMA_VIOLATIONS = "o11y.schema.violations";
|
|
183
|
+
export const METRIC_RUM_VITAL_LCP = "o11y.rum.vital.lcp";
|
|
184
|
+
export const METRIC_RUM_VITAL_INP = "o11y.rum.vital.inp";
|
|
185
|
+
export const METRIC_RUM_VITAL_CLS = "o11y.rum.vital.cls";
|
|
186
|
+
export const METRIC_RUM_VITAL_FCP = "o11y.rum.vital.fcp";
|
|
187
|
+
export const METRIC_RUM_VITAL_TTFB = "o11y.rum.vital.ttfb";
|
|
188
|
+
export const METRIC_RUM_BROWSER_LONG_ANIMATION_FRAMES = "o11y.rum.browser.long_animation_frames";
|
|
189
|
+
export const METRIC_RUM_VIEWS = "o11y.rum.views";
|
|
190
|
+
export const METRIC_RUM_ERRORS = "o11y.rum.errors";
|
|
191
|
+
export const METRIC_RUM_FRUSTRATIONS = "o11y.rum.frustrations";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** How the redaction layer treats an attribute. A key with no entry is unclassified. */
|
|
2
|
+
export type Sensitivity = "public" | "internal" | "pii" | "secret";
|
|
3
|
+
/** A spec requirement level. */
|
|
4
|
+
export type Requirement = "required" | "conditionally_required" | "recommended" | "opt_in";
|
|
5
|
+
/** One attribute's place in the resource taxonomy. */
|
|
6
|
+
export interface ResourceAttrInfo {
|
|
7
|
+
readonly tier: string;
|
|
8
|
+
readonly requirement: Requirement;
|
|
9
|
+
readonly source: string;
|
|
10
|
+
readonly role: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A registered event's contract. required lists literal keys the event must carry. requiredTemplates
|
|
14
|
+
* lists template attributes the event satisfies with at least one <template>.<key> attribute.
|
|
15
|
+
*/
|
|
16
|
+
export interface EventInfo {
|
|
17
|
+
readonly required: readonly string[];
|
|
18
|
+
readonly requiredTemplates: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
/** The tiered resource-attribute taxonomy. */
|
|
21
|
+
export declare const RESOURCE: ReadonlyMap<string, ResourceAttrInfo>;
|
|
22
|
+
/** The attributes setup requires at init. */
|
|
23
|
+
export declare const REQUIRED_TIER0: readonly string[];
|
|
24
|
+
/** The base allowed set for deployment.environment.name. */
|
|
25
|
+
export declare const ENVIRONMENT_VALUES: ReadonlySet<string>;
|
|
26
|
+
/** Classifies every attribute the spec has an opinion on. */
|
|
27
|
+
export declare const SENSITIVITY_OF: ReadonlyMap<string, Sensitivity>;
|
|
28
|
+
/** Maps each key a pre-spec release emitted to the spec key that replaces it. */
|
|
29
|
+
export declare const LEGACY_KEYS: ReadonlyMap<string, string>;
|
|
30
|
+
/** The only resource attributes permitted as effective metric labels. */
|
|
31
|
+
export declare const METRIC_RESOURCE_LABELS: readonly string[];
|
|
32
|
+
/** Registered event names mapped to their contracts. */
|
|
33
|
+
export declare const EVENTS: ReadonlyMap<string, EventInfo>;
|
|
34
|
+
/** Span kinds registered by the spec mapped to their required attributes. */
|
|
35
|
+
export declare const SPAN_REQUIRED: ReadonlyMap<string, readonly string[]>;
|
|
36
|
+
/** The schema an application registry file declares. */
|
|
37
|
+
export declare const APP_REGISTRY_SCHEMA = "libo11y.app-registry/v1";
|
|
38
|
+
/** Namespaces an application registry may not claim: libo11y's, OpenTelemetry's and the pinned semconv release's. */
|
|
39
|
+
export declare const APP_RESERVED_NAMESPACES: ReadonlySet<string>;
|
|
40
|
+
/** RUM span shapes mapped to their required attributes. */
|
|
41
|
+
export declare const RUM_SPAN_REQUIRED: ReadonlyMap<string, readonly string[]>;
|