@radicaltools/cli 0.1.0 → 0.3.0

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.
Files changed (29) hide show
  1. package/README.md +335 -25
  2. package/dist/hub-catalogue/concern/concern-api-evolution.radical +935 -0
  3. package/dist/hub-catalogue/concern/concern-architecture-style.radical +1112 -0
  4. package/dist/hub-catalogue/concern/concern-authentication.radical +685 -0
  5. package/dist/hub-catalogue/concern/concern-authorization.radical +1464 -0
  6. package/dist/hub-catalogue/concern/concern-availability.radical +804 -0
  7. package/dist/hub-catalogue/concern/concern-backend-stack.radical +1118 -0
  8. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1304 -0
  9. package/dist/hub-catalogue/concern/concern-capacity.radical +802 -0
  10. package/dist/hub-catalogue/concern/concern-communication-style.radical +1202 -0
  11. package/dist/hub-catalogue/concern/concern-data-consistency.radical +1081 -0
  12. package/dist/hub-catalogue/concern/concern-data-store.radical +960 -0
  13. package/dist/hub-catalogue/concern/concern-decomposition.radical +1143 -0
  14. package/dist/hub-catalogue/concern/concern-deployment.radical +952 -0
  15. package/dist/hub-catalogue/concern/concern-encryption.radical +1055 -0
  16. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1340 -0
  17. package/dist/hub-catalogue/concern/concern-infrastructure.radical +1151 -0
  18. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1079 -0
  19. package/dist/hub-catalogue/concern/concern-messaging.radical +940 -0
  20. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +864 -0
  21. package/dist/hub-catalogue/concern/concern-observability.radical +1048 -0
  22. package/dist/hub-catalogue/concern/concern-personal-data.radical +1434 -0
  23. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1153 -0
  24. package/dist/hub-catalogue/concern/concern-secrets.radical +1026 -0
  25. package/dist/hub-catalogue/concern/concern-supply-chain.radical +1312 -0
  26. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1306 -0
  27. package/dist/hub-catalogue/concern/concern-test-strategy.radical +1193 -0
  28. package/dist/index.js +9643 -1332
  29. package/package.json +6 -3
@@ -0,0 +1,1048 @@
1
+ {
2
+ "hub": {
3
+ "id": "concern-observability",
4
+ "category": "concern",
5
+ "name": "Observability",
6
+ "description": "Running in production: the service levels promised and how they are measured, who is alerted and when, what the logs may hold and for how long, and how a failure is traced to its cause.",
7
+ "tags": [
8
+ "operations",
9
+ "observability",
10
+ "slo",
11
+ "sli",
12
+ "logging",
13
+ "tracing",
14
+ "alerting",
15
+ "opentelemetry"
16
+ ],
17
+ "requiredMetamodel": "c4-ddd-governance-builtin",
18
+ "concern": {
19
+ "id": "observability",
20
+ "trigger": "LIST NODES WHERE (type = \"container\" OR type = \"webapp\") AND external != true",
21
+ "why": "these elements run in production, so how you will know they are healthy, and find out why when they are not, has to be decided.",
22
+ "group": "operations"
23
+ },
24
+ "sources": [
25
+ {
26
+ "title": "Google SRE book, chapter 6: Monitoring Distributed Systems",
27
+ "url": "https://sre.google/sre-book/monitoring-distributed-systems/"
28
+ },
29
+ {
30
+ "title": "Google SRE workbook: Alerting on SLOs",
31
+ "url": "https://sre.google/workbook/alerting-on-slos/"
32
+ },
33
+ {
34
+ "title": "Google SRE book, chapter 11: Being On-Call",
35
+ "url": "https://sre.google/sre-book/being-on-call/"
36
+ },
37
+ {
38
+ "title": "OpenTelemetry documentation",
39
+ "url": "https://opentelemetry.io/docs/"
40
+ },
41
+ {
42
+ "title": "W3C Trace Context",
43
+ "url": "https://www.w3.org/TR/trace-context/"
44
+ },
45
+ {
46
+ "title": "OWASP Logging Cheat Sheet",
47
+ "url": "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html"
48
+ },
49
+ {
50
+ "title": "The Twelve-Factor App, XI. Logs",
51
+ "url": "https://12factor.net/logs"
52
+ }
53
+ ],
54
+ "templateParams": [
55
+ {
56
+ "key": "SIGNALS",
57
+ "title": "Signals",
58
+ "label": "What will you collect?",
59
+ "hint": "Traces show where a slow or failed request spent its time across elements; logs alone rarely do.",
60
+ "defaultValue": "otel",
61
+ "options": [
62
+ {
63
+ "value": "otel",
64
+ "label": "logs, metrics and traces (OpenTelemetry)",
65
+ "description": "One vendor-neutral standard for all three, sent through a Collector to the backend you choose. Pick it when a request crosses two or more of your elements or a queue, or when you may change backend later."
66
+ },
67
+ {
68
+ "value": "logs",
69
+ "label": "structured logs and metrics only",
70
+ "description": "Less to run and pay for; a request across elements is followed by its correlation id, by hand. Pick it for a single element with few dependencies, or a team not yet ready to run a tracing backend."
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ "key": "SLI",
76
+ "title": "Measured by",
77
+ "label": "How are the service levels measured?",
78
+ "hint": "A service level indicator measured where users meet the service is the number every alert and every argument rests on.",
79
+ "defaultValue": "request",
80
+ "options": [
81
+ {
82
+ "value": "request",
83
+ "label": "the share of good requests at the edge",
84
+ "description": "Good requests over valid requests, counted at the load balancer or the server's edge. Pick it when the element has steady traffic (more than about 1 request per second), so that a ratio over minutes means something."
85
+ },
86
+ {
87
+ "value": "probes",
88
+ "label": "synthetic probes from outside",
89
+ "description": "A probe exercises a real read path every minute from several locations outside the network. Pick it for low or bursty traffic, where a few failed requests swing the ratio, or to see outages before the first user arrives in the morning."
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "key": "ONCALL",
95
+ "title": "Alerting",
96
+ "label": "Who is alerted when it breaks?",
97
+ "hint": "Alerts go to people who can act, on symptoms users feel, not on every cause.",
98
+ "defaultValue": "oncall",
99
+ "options": [
100
+ {
101
+ "value": "oncall",
102
+ "label": "the on-call engineer, around the clock",
103
+ "description": "A paid rotation answers pages at any hour within 5 minutes. Pick it for an availability target of 99.9 % or more, or users in several time zones: 43 minutes a month do not wait for the morning."
104
+ },
105
+ {
106
+ "value": "hours",
107
+ "label": "the team, in working hours",
108
+ "description": "Alerts reach the team in working hours; outside them they become tickets and the status page says so. Pick it for internal tools, a target of 99.5 % or less, or users in one time zone who are not working at night."
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ "key": "LOGS",
114
+ "title": "Personal data",
115
+ "label": "May logs hold personal data?",
116
+ "hint": "Logs are read by many people and tools and kept in places with weaker access than the database; personal data in them is a leak waiting to happen and falls under GDPR all the same.",
117
+ "defaultValue": "redact",
118
+ "options": [
119
+ {
120
+ "value": "redact",
121
+ "label": "no, pseudonymous ids only",
122
+ "description": "Names, e-mail and postal addresses, phone numbers and payment data never reach a log; a user id that means nothing outside the system stands in. Pick it by default, and always when logs go to a SaaS backend or many people can read them."
123
+ },
124
+ {
125
+ "value": "restricted",
126
+ "label": "only in a restricted log store",
127
+ "description": "Support needs to find a customer's requests by what the customer says; personal data goes only to a separate store with role-based access, every read recorded and a short retention. Pick it only with a lawful basis for it and a named owner."
128
+ }
129
+ ]
130
+ },
131
+ {
132
+ "key": "SAMPLING",
133
+ "title": "Trace sampling",
134
+ "label": "Which traces are kept?",
135
+ "hint": "Every trace kept costs storage; the ones that explain failures are a small share of them. Applies only with OpenTelemetry traces.",
136
+ "defaultValue": "tail",
137
+ "options": [
138
+ {
139
+ "value": "head",
140
+ "label": "head sampling",
141
+ "description": "A fixed share of traces is chosen at the first element and every element follows that choice. Pick it for high traffic with errors that are not rare, when the cost of a Collector that buffers traces is not justified."
142
+ },
143
+ {
144
+ "value": "tail",
145
+ "label": "tail sampling",
146
+ "description": "The Collector waits for a whole trace and keeps every one with an error or slower than the target, plus a share of the rest. Pick it when errors are rare and each one must be explainable."
147
+ },
148
+ {
149
+ "value": "all",
150
+ "label": "every trace",
151
+ "description": "Nothing is dropped. Pick it for low traffic (under about 50 requests per second) where storage is cheap and every request may need explaining."
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "key": "AVAILABILITY",
157
+ "label": "Availability promised (%, per 30 days)",
158
+ "defaultValue": "99.9",
159
+ "type": "number"
160
+ },
161
+ {
162
+ "key": "P95_MS",
163
+ "label": "Response time at the 95th percentile (ms)",
164
+ "defaultValue": "500",
165
+ "type": "number"
166
+ },
167
+ {
168
+ "key": "LOG_DAYS",
169
+ "label": "How long are logs kept (days)?",
170
+ "defaultValue": "30",
171
+ "type": "number"
172
+ },
173
+ {
174
+ "key": "SAMPLE_PERCENT",
175
+ "label": "Share of ordinary traces kept (%)",
176
+ "defaultValue": "10",
177
+ "type": "number"
178
+ }
179
+ ]
180
+ },
181
+ "nodes": [
182
+ {
183
+ "id": "need",
184
+ "type": "need",
185
+ "label": "Health seen, failures explained",
186
+ "x": 0,
187
+ "y": 0,
188
+ "kind": "brief",
189
+ "source": "Hub concern pack: Observability",
190
+ "description": "The system runs in production for its users. Someone must know when it is unhealthy before users say so, be woken only for what matters, and find the cause of a failure across elements quickly; everyone must agree what healthy means. What is collected to do that must not leak secrets or personal data, and must not cost more than it explains."
191
+ },
192
+ {
193
+ "id": "req-slo",
194
+ "type": "requirement",
195
+ "label": "Service levels met",
196
+ "x": 260,
197
+ "y": 0,
198
+ "ears_type": "ubiquitous",
199
+ "action": "meet {{AVAILABILITY}} % availability and a 95th percentile response time of {{P95_MS}} ms in every 30-day window, measured by {{SLI}}",
200
+ "rationale": "A number everyone agrees on, measured as users see it, decides when to alert and when to slow down changes (Google SRE book, chapter 4; SRE workbook, Implementing SLOs)."
201
+ },
202
+ {
203
+ "id": "req-sli-request",
204
+ "type": "requirement",
205
+ "label": "Good requests counted",
206
+ "x": 260,
207
+ "y": 130,
208
+ "ears_type": "ubiquitous",
209
+ "action": "count a request as good when it is valid and answered without a 5xx within {{P95_MS}} ms, at the load balancer or the server's edge, and publish the good and total counts as metrics",
210
+ "rationale": "Measured at the edge, the indicator sees what users see, including failures the element never logs (Google SRE workbook, Implementing SLOs).",
211
+ "hubWhen": {
212
+ "SLI": [
213
+ "request"
214
+ ]
215
+ }
216
+ },
217
+ {
218
+ "id": "req-sli-probe",
219
+ "type": "requirement",
220
+ "label": "Probed from outside",
221
+ "x": 260,
222
+ "y": 260,
223
+ "ears_type": "ubiquitous",
224
+ "action": "be probed every minute from at least 2 locations outside its own network by a check that exercises a real read path, and count a minute as down when the probes from 2 locations fail",
225
+ "rationale": "With little traffic a ratio of requests is noise; probes measure availability whether or not users are there (Google SRE book, chapter 6, black-box monitoring).",
226
+ "hubWhen": {
227
+ "SLI": [
228
+ "probes"
229
+ ]
230
+ }
231
+ },
232
+ {
233
+ "id": "req-alert",
234
+ "type": "requirement",
235
+ "label": "Alert on budget burn",
236
+ "x": 260,
237
+ "y": 390,
238
+ "ears_type": "event-driven",
239
+ "trigger": "errors or slow responses burn the 30-day error budget 14.4 times faster than allowed over 1 hour, or 6 times faster over 6 hours",
240
+ "action": "alert {{ONCALL}} with the service level, the burn rate and a link to the runbook, and send nothing for causes users do not feel",
241
+ "rationale": "Multiwindow burn-rate alerts catch fast outages within minutes and slow leaks within hours, without paging on noise (Google SRE workbook, Alerting on SLOs)."
242
+ },
243
+ {
244
+ "id": "req-escalate",
245
+ "type": "requirement",
246
+ "label": "Pages escalate",
247
+ "x": 260,
248
+ "y": 520,
249
+ "ears_type": "event-driven",
250
+ "trigger": "a page is not acknowledged within 5 minutes",
251
+ "action": "escalate it to the secondary on-call, and after another 10 minutes to the team lead, at any hour",
252
+ "rationale": "An on-call rotation is only as fast as its slowest answer; escalation bounds it (Google SRE book, chapter 11).",
253
+ "hubWhen": {
254
+ "ONCALL": [
255
+ "oncall"
256
+ ]
257
+ }
258
+ },
259
+ {
260
+ "id": "req-hours",
261
+ "type": "requirement",
262
+ "label": "Out-of-hours alerts wait",
263
+ "x": 260,
264
+ "y": 650,
265
+ "ears_type": "state-driven",
266
+ "precondition": "outside working hours",
267
+ "action": "turn alerts into tickets for the next working day instead of calling anyone, and show the outage on the status page within 5 minutes",
268
+ "rationale": "Without on-call, users still need to know the service is down and that it is known; the ticket makes sure the morning starts with it.",
269
+ "hubWhen": {
270
+ "ONCALL": [
271
+ "hours"
272
+ ]
273
+ }
274
+ },
275
+ {
276
+ "id": "req-logs",
277
+ "type": "requirement",
278
+ "label": "Logs structured and clean",
279
+ "x": 260,
280
+ "y": 780,
281
+ "ears_type": "ubiquitous",
282
+ "action": "write structured (JSON) log lines to standard output, each with the trace or correlation id of its request, never with a secret, token or password, and delete them after {{LOG_DAYS}} days",
283
+ "rationale": "Logs are searched across elements and copied to places with weaker access; a bounded retention limits both cost and what a leak exposes (OWASP Logging Cheat Sheet; The Twelve-Factor App, XI)."
284
+ },
285
+ {
286
+ "id": "req-pii-redact",
287
+ "type": "requirement",
288
+ "label": "No personal data logged",
289
+ "x": 260,
290
+ "y": 910,
291
+ "ears_type": "ubiquitous",
292
+ "action": "keep names, e-mail and postal addresses, phone numbers and payment data out of logs, traces and metric labels, writing a pseudonymous user id instead",
293
+ "rationale": "Personal data in logs is processed under GDPR like anywhere else, and logs are the copy nobody remembers to delete (OWASP Logging Cheat Sheet, data to exclude).",
294
+ "hubWhen": {
295
+ "LOGS": [
296
+ "redact"
297
+ ]
298
+ }
299
+ },
300
+ {
301
+ "id": "req-pii-restricted",
302
+ "type": "requirement",
303
+ "label": "Personal data logs restricted",
304
+ "x": 260,
305
+ "y": 1040,
306
+ "ears_type": "ubiquitous",
307
+ "action": "write personal data only to a separate log store that only the support role can read, record every read with who and when, keep it out of the general logs, traces and metric labels, and delete it after {{LOG_DAYS}} days at most",
308
+ "rationale": "When support must find a customer by what they say, the data is kept where access is controlled and audited, not in every log (GDPR Article 32; OWASP Logging Cheat Sheet).",
309
+ "hubWhen": {
310
+ "LOGS": [
311
+ "restricted"
312
+ ]
313
+ }
314
+ },
315
+ {
316
+ "id": "req-trace",
317
+ "type": "requirement",
318
+ "label": "Requests traced",
319
+ "x": 260,
320
+ "y": 1170,
321
+ "ears_type": "ubiquitous",
322
+ "action": "propagate the W3C Trace Context (traceparent) through every call it makes, to other elements, outside systems and messages on queues",
323
+ "rationale": "A slow request is explained by where its time went; one broken link in the propagation splits the trace (W3C Trace Context).",
324
+ "hubWhen": {
325
+ "SIGNALS": [
326
+ "otel"
327
+ ]
328
+ }
329
+ },
330
+ {
331
+ "id": "req-sample-head",
332
+ "type": "requirement",
333
+ "label": "Traces sampled at the start",
334
+ "x": 260,
335
+ "y": 1300,
336
+ "ears_type": "ubiquitous",
337
+ "action": "keep {{SAMPLE_PERCENT}} % of traces, decided once at the first element and followed by every element after it (parent-based sampling)",
338
+ "rationale": "A decision made once keeps traces whole; each element choosing on its own leaves fragments (OpenTelemetry, Sampling).",
339
+ "hubWhen": {
340
+ "SIGNALS": [
341
+ "otel"
342
+ ],
343
+ "SAMPLING": [
344
+ "head"
345
+ ]
346
+ }
347
+ },
348
+ {
349
+ "id": "req-sample-tail",
350
+ "type": "requirement",
351
+ "label": "Failing traces kept",
352
+ "x": 260,
353
+ "y": 1430,
354
+ "ears_type": "event-driven",
355
+ "trigger": "a trace completes",
356
+ "action": "keep it when any span has an error or the trace took longer than {{P95_MS}} ms, and keep {{SAMPLE_PERCENT}} % of the rest",
357
+ "rationale": "The traces that explain failures are rare; deciding after the trace is complete keeps every one of them at a fraction of the cost (OpenTelemetry, Sampling).",
358
+ "hubWhen": {
359
+ "SIGNALS": [
360
+ "otel"
361
+ ],
362
+ "SAMPLING": [
363
+ "tail"
364
+ ]
365
+ }
366
+ },
367
+ {
368
+ "id": "req-sample-all",
369
+ "type": "requirement",
370
+ "label": "Every trace kept",
371
+ "x": 260,
372
+ "y": 1560,
373
+ "ears_type": "ubiquitous",
374
+ "action": "keep every trace for at least 7 days",
375
+ "rationale": "At low traffic the cost is small and any request, not only failing ones, may need explaining.",
376
+ "hubWhen": {
377
+ "SIGNALS": [
378
+ "otel"
379
+ ],
380
+ "SAMPLING": [
381
+ "all"
382
+ ]
383
+ }
384
+ },
385
+ {
386
+ "id": "req-health",
387
+ "type": "requirement",
388
+ "label": "Health reported",
389
+ "x": 260,
390
+ "y": 1690,
391
+ "ears_type": "ubiquitous",
392
+ "action": "answer a liveness check that fails only when it must be restarted, and a readiness check that fails while it cannot serve, which the platform uses to restart it and route traffic",
393
+ "rationale": "The platform restarts what hangs and routes around what is not ready; a liveness check that follows a dependency restarts everything when that dependency fails (Kubernetes documentation, probes)."
394
+ },
395
+ {
396
+ "id": "sc-slo",
397
+ "type": "scenario",
398
+ "label": "Levels measured",
399
+ "x": 520,
400
+ "y": 0,
401
+ "given": "30 days of production traffic",
402
+ "when": "availability and the 95th percentile are computed",
403
+ "then": "they are at least {{AVAILABILITY}} % and at most {{P95_MS}} ms"
404
+ },
405
+ {
406
+ "id": "sc-sli-request",
407
+ "type": "scenario",
408
+ "label": "Good and bad counted",
409
+ "x": 520,
410
+ "y": 130,
411
+ "given": "requests answered with 200 in 100 ms, 200 after {{P95_MS}} ms, 500 and 404",
412
+ "when": "the indicator is computed",
413
+ "then": "only the first is good, and the 404 is left out as invalid",
414
+ "hubWhen": {
415
+ "SLI": [
416
+ "request"
417
+ ]
418
+ }
419
+ },
420
+ {
421
+ "id": "sc-sli-probe",
422
+ "type": "scenario",
423
+ "label": "Outage seen by probes",
424
+ "x": 520,
425
+ "y": 260,
426
+ "given": "probes in two locations",
427
+ "when": "the element stops answering at night with no users",
428
+ "then": "the minutes are counted as down and the alert follows",
429
+ "hubWhen": {
430
+ "SLI": [
431
+ "probes"
432
+ ]
433
+ }
434
+ },
435
+ {
436
+ "id": "sc-alert",
437
+ "type": "scenario",
438
+ "label": "Budget burn alerts",
439
+ "x": 520,
440
+ "y": 390,
441
+ "given": "an error rate that would use the month's budget in about 2 days",
442
+ "when": "it lasts 5 minutes",
443
+ "then": "the people alerted get an alert with the runbook"
444
+ },
445
+ {
446
+ "id": "sc-escalate",
447
+ "type": "scenario",
448
+ "label": "Missed page escalates",
449
+ "x": 520,
450
+ "y": 520,
451
+ "given": "a page sent at night",
452
+ "when": "the primary does not acknowledge it within 5 minutes",
453
+ "then": "the secondary is paged, and the team lead 10 minutes later",
454
+ "hubWhen": {
455
+ "ONCALL": [
456
+ "oncall"
457
+ ]
458
+ }
459
+ },
460
+ {
461
+ "id": "sc-hours",
462
+ "type": "scenario",
463
+ "label": "Night outage",
464
+ "x": 520,
465
+ "y": 650,
466
+ "given": "an outage at 23:00",
467
+ "when": "the burn-rate alert fires",
468
+ "then": "nobody is called, a ticket waits for the morning, and the status page shows the outage within 5 minutes",
469
+ "hubWhen": {
470
+ "ONCALL": [
471
+ "hours"
472
+ ]
473
+ }
474
+ },
475
+ {
476
+ "id": "sc-logs",
477
+ "type": "scenario",
478
+ "label": "Request found in logs",
479
+ "x": 520,
480
+ "y": 780,
481
+ "given": "a request that fails",
482
+ "when": "its trace or correlation id is searched",
483
+ "then": "every log line of it is found, none with a secret, and none older than {{LOG_DAYS}} days is kept"
484
+ },
485
+ {
486
+ "id": "sc-pii-redact",
487
+ "type": "scenario",
488
+ "label": "Sign-up logged clean",
489
+ "x": 520,
490
+ "y": 910,
491
+ "given": "a customer signing up with name, e-mail and phone",
492
+ "when": "the request's log lines and spans are read",
493
+ "then": "none holds the name, e-mail or phone; the user id is there",
494
+ "hubWhen": {
495
+ "LOGS": [
496
+ "redact"
497
+ ]
498
+ }
499
+ },
500
+ {
501
+ "id": "sc-pii-restricted",
502
+ "type": "scenario",
503
+ "label": "Support search audited",
504
+ "x": 520,
505
+ "y": 1040,
506
+ "given": "a support engineer and a developer",
507
+ "when": "both search the restricted store by a customer's e-mail",
508
+ "then": "only the support engineer sees results, and the read is recorded",
509
+ "hubWhen": {
510
+ "LOGS": [
511
+ "restricted"
512
+ ]
513
+ }
514
+ },
515
+ {
516
+ "id": "sc-trace",
517
+ "type": "scenario",
518
+ "label": "Slow request explained",
519
+ "x": 520,
520
+ "y": 1170,
521
+ "given": "a request slowed by one downstream call",
522
+ "when": "its trace is opened",
523
+ "then": "the slow call is visible with its timing, in the same trace as the request",
524
+ "hubWhen": {
525
+ "SIGNALS": [
526
+ "otel"
527
+ ]
528
+ }
529
+ },
530
+ {
531
+ "id": "sc-sample-head",
532
+ "type": "scenario",
533
+ "label": "Traces whole",
534
+ "x": 520,
535
+ "y": 1300,
536
+ "given": "10 000 requests across three elements",
537
+ "when": "the kept traces are counted",
538
+ "then": "about {{SAMPLE_PERCENT}} % are kept and each kept trace has the spans of all three elements",
539
+ "hubWhen": {
540
+ "SIGNALS": [
541
+ "otel"
542
+ ],
543
+ "SAMPLING": [
544
+ "head"
545
+ ]
546
+ }
547
+ },
548
+ {
549
+ "id": "sc-sample-tail",
550
+ "type": "scenario",
551
+ "label": "Error trace kept",
552
+ "x": 520,
553
+ "y": 1430,
554
+ "given": "a thousand traces of which three have an error",
555
+ "when": "they pass the Collector",
556
+ "then": "all three are kept, and about {{SAMPLE_PERCENT}} % of the others",
557
+ "hubWhen": {
558
+ "SIGNALS": [
559
+ "otel"
560
+ ],
561
+ "SAMPLING": [
562
+ "tail"
563
+ ]
564
+ }
565
+ },
566
+ {
567
+ "id": "sc-sample-all",
568
+ "type": "scenario",
569
+ "label": "Any request traced",
570
+ "x": 520,
571
+ "y": 1560,
572
+ "given": "a request a customer complains about 5 days later",
573
+ "when": "its trace is looked up by its id",
574
+ "then": "it is there",
575
+ "hubWhen": {
576
+ "SIGNALS": [
577
+ "otel"
578
+ ],
579
+ "SAMPLING": [
580
+ "all"
581
+ ]
582
+ }
583
+ },
584
+ {
585
+ "id": "sc-health",
586
+ "type": "scenario",
587
+ "label": "Hung instance replaced",
588
+ "x": 520,
589
+ "y": 1690,
590
+ "given": "an instance that stops answering",
591
+ "when": "its liveness check fails",
592
+ "then": "the platform restarts it, and no traffic reached it once its readiness check failed"
593
+ },
594
+ {
595
+ "id": "adr-otel",
596
+ "type": "adr",
597
+ "label": "OpenTelemetry for all signals",
598
+ "x": 780,
599
+ "y": 0,
600
+ "concern": "observability",
601
+ "status": "accepted",
602
+ "date": "",
603
+ "context": "This element runs in production. The forces: users notice an outage before a team without signals does; healthy needs a number agreed in advance, measured as users see it; alerts on every cause wake people for nothing until they are ignored, while alerts on symptoms that burn the error budget are worth acting on; a request crosses several elements, and its trail is lost without a shared id; logs are searched widely and copied to places with weaker access, so secrets and personal data in them leak; and keeping every log line and every trace forever costs more than the failures they explain.",
604
+ "decision": "The element emits logs, metrics and traces with the OpenTelemetry SDK of its language (auto-instrumentation for the HTTP server, clients, database and queue libraries), propagating the W3C Trace Context on every call and message. Signals go to an OpenTelemetry Collector, which samples ({{SAMPLING}}), removes attributes that must not leave, and exports to the backend. Choose the backend by what the team already runs, cost per GB ingested and where the data may be kept: the Grafana stack (Tempo, Loki, Mimir or Prometheus) self-hosted or in Grafana Cloud, Elastic, Honeycomb, Datadog or New Relic; the Collector keeps that choice reversible. Service levels: {{AVAILABILITY}} % and {{P95_MS}} ms at the 95th percentile per 30 days, measured by {{SLI}}. Personal data in logs: {{LOGS}}; logs kept {{LOG_DAYS}} days.",
605
+ "consequences": "• One standard for all three signals, and any backend that speaks OTLP.\n• Every element and library on a request's path must pass the trace context on, queues included, or traces break.\n• Trace volume needs a sampling policy and a Collector to run it.\n• The Collector is one more component to run, scale and upgrade.",
606
+ "alternatives": "1. Structured logs and metrics only: less to run, but slower to explain failures across elements.\n2. A vendor's own agent (Datadog, Dynatrace): more automatic, but every signal is tied to that vendor and its pricing.",
607
+ "hubWhen": {
608
+ "SIGNALS": [
609
+ "otel"
610
+ ]
611
+ }
612
+ },
613
+ {
614
+ "id": "adr-logs",
615
+ "type": "adr",
616
+ "label": "Structured logs and metrics",
617
+ "x": 780,
618
+ "y": 130,
619
+ "concern": "observability",
620
+ "status": "accepted",
621
+ "date": "",
622
+ "context": "This element runs in production. The forces: users notice an outage before a team without signals does; healthy needs a number agreed in advance, measured as users see it; alerts on every cause wake people for nothing until they are ignored, while alerts on symptoms that burn the error budget are worth acting on; a request crosses several elements, and its trail is lost without a shared id; logs are searched widely and copied to places with weaker access, so secrets and personal data in them leak; and keeping every log line and every trace forever costs more than the failures they explain.",
623
+ "decision": "The element writes structured JSON log lines to standard output, each with a correlation id taken from the incoming X-Request-ID or traceparent header or created at the edge, and passes that id on in every call it makes. It exposes request rate, errors and duration as Prometheus metrics (or OpenTelemetry metrics) on its own endpoint. A shipper (Fluent Bit, Vector or Grafana Alloy) sends the logs to the log store: Loki, Elasticsearch or OpenSearch, or the cloud's own (CloudWatch Logs, Azure Monitor Logs). No tracing. Service levels: {{AVAILABILITY}} % and {{P95_MS}} ms at the 95th percentile per 30 days, measured by {{SLI}}. Personal data in logs: {{LOGS}}; logs kept {{LOG_DAYS}} days.",
624
+ "consequences": "• Less to run and to pay for than three signals.\n• A request across elements is followed by its correlation id, by hand, and where its time went is guessed from timestamps.\n• Adding tracing later is easier if the correlation id is already the traceparent.",
625
+ "alternatives": "1. OpenTelemetry with traces: more to run, but a slow request explains itself.\n2. Unstructured text logs: nothing to set up, but they cannot be searched or counted reliably.",
626
+ "hubWhen": {
627
+ "SIGNALS": [
628
+ "logs"
629
+ ]
630
+ }
631
+ },
632
+ {
633
+ "id": "adr-oncall",
634
+ "type": "adr",
635
+ "label": "Paging around the clock",
636
+ "x": 780,
637
+ "y": 260,
638
+ "concern": "observability",
639
+ "status": "accepted",
640
+ "date": "",
641
+ "context": "This element runs in production. The forces: users notice an outage before a team without signals does; healthy needs a number agreed in advance, measured as users see it; alerts on every cause wake people for nothing until they are ignored, while alerts on symptoms that burn the error budget are worth acting on; a request crosses several elements, and its trail is lost without a shared id; logs are searched widely and copied to places with weaker access, so secrets and personal data in them leak; and keeping every log line and every trace forever costs more than the failures they explain.",
642
+ "decision": "An on-call rotation is paged at any hour when the error budget burns fast, and acknowledges within 5 minutes; unacknowledged pages escalate to the secondary and then the team lead. The rotation runs in PagerDuty, Opsgenie, Grafana OnCall or incident.io, fed by Alertmanager (or the backend's alerting). Only symptoms page (multiwindow burn-rate alerts on the service levels); causes such as a full disk or a restarting pod become tickets. Every alert links its runbook. The rotation is large enough that each engineer is on call at most one week in four, and time on call is paid or given back.",
643
+ "consequences": "• Outages at night are handled at night; a target of 99.9 % or more becomes reachable.\n• On-call costs money and people's evenings; noisy alerts burn the rotation out, so every page that needed no action is fixed or removed.\n• Runbooks have to exist and be kept current.",
644
+ "alternatives": "1. Alerts in working hours only: cheaper, but a night outage lasts until the morning.\n2. A follow-the-sun rotation across time zones: nobody is woken, but it needs teams in several regions.",
645
+ "hubWhen": {
646
+ "ONCALL": [
647
+ "oncall"
648
+ ]
649
+ }
650
+ },
651
+ {
652
+ "id": "adr-hours",
653
+ "type": "adr",
654
+ "label": "Alerts in working hours",
655
+ "x": 780,
656
+ "y": 390,
657
+ "concern": "observability",
658
+ "status": "accepted",
659
+ "date": "",
660
+ "context": "This element runs in production. The forces: users notice an outage before a team without signals does; healthy needs a number agreed in advance, measured as users see it; alerts on every cause wake people for nothing until they are ignored, while alerts on symptoms that burn the error budget are worth acting on; a request crosses several elements, and its trail is lost without a shared id; logs are searched widely and copied to places with weaker access, so secrets and personal data in them leak; and keeping every log line and every trace forever costs more than the failures they explain.",
661
+ "decision": "Burn-rate alerts reach the team in working hours through the team channel (Slack or Microsoft Teams) and a mobile notification; outside working hours, Alertmanager's time intervals route them to tickets for the next working day instead. A status page (Atlassian Statuspage, Instatus or the cloud's own) shows an outage automatically from the same alerts, so users know it is known. Only symptoms alert; every alert links its runbook.",
662
+ "consequences": "• Nobody is woken; no on-call cost.\n• An outage at night lasts until the morning: one such night can use a month's budget at {{AVAILABILITY}} %, which the target must allow.\n• The status page carries the communication outside hours.",
663
+ "alternatives": "1. An on-call rotation around the clock: night outages are fixed at night, at the cost of a paid rotation.\n2. Best effort by whoever sees the alert: no cost, no promise, and burnout of the conscientious few.",
664
+ "hubWhen": {
665
+ "ONCALL": [
666
+ "hours"
667
+ ]
668
+ }
669
+ },
670
+ {
671
+ "id": "ff-slo",
672
+ "type": "fitness-fn",
673
+ "label": "Service levels watched",
674
+ "x": 1040,
675
+ "y": 0,
676
+ "category": "operational",
677
+ "threshold": "Availability at least {{AVAILABILITY}} % and 95 % of requests under {{P95_MS}} ms over every 30 days; burn-rate alerts at 14.4 times (1 h) and 6 times (6 h)",
678
+ "description": "An SLO spec generates the Prometheus recording rules for both service levels and the multiwindow burn-rate alerts from the request metrics; the alerts go to Alertmanager, which routes them as the alerting decision says.\n\nTool: Sloth (Prometheus SLO generator); Pyrra takes the same objectives\n\n```yaml\n# sloth generate -i slos.yaml -o slos.rules.yaml\nversion: \"prometheus/v1\"\nservice: \"order-api\"\nslos:\n - name: \"availability\"\n objective: {{AVAILABILITY}}\n sli:\n events:\n error_query: sum(rate(http_server_request_duration_seconds_count{job=\"order-api\",http_response_status_code=~\"5..\"}[{{.window}}]))\n total_query: sum(rate(http_server_request_duration_seconds_count{job=\"order-api\"}[{{.window}}]))\n alerting:\n name: OrderApiAvailability\n page_alert: { labels: { severity: page } }\n ticket_alert: { labels: { severity: ticket } }\n - name: \"latency\"\n objective: 95\n description: \"95 % of requests under {{P95_MS}} ms\"\n sli:\n events:\n # le: the histogram bucket at {{P95_MS}} ms, in seconds\n error_query: |\n sum(rate(http_server_request_duration_seconds_count{job=\"order-api\"}[{{.window}}]))\n - sum(rate(http_server_request_duration_seconds_bucket{job=\"order-api\",le=\"0.5\"}[{{.window}}]))\n total_query: sum(rate(http_server_request_duration_seconds_count{job=\"order-api\"}[{{.window}}]))\n alerting:\n name: OrderApiLatency\n page_alert: { labels: { severity: page } }\n ticket_alert: { labels: { severity: ticket } }\n```",
679
+ "hubWhen": {
680
+ "SLI": [
681
+ "request"
682
+ ]
683
+ }
684
+ },
685
+ {
686
+ "id": "ff-probe",
687
+ "type": "fitness-fn",
688
+ "label": "Probes measure availability",
689
+ "x": 1040,
690
+ "y": 130,
691
+ "category": "operational",
692
+ "threshold": "A probe every 60 s from at least 2 locations; probe success at least {{AVAILABILITY}} % over 30 days",
693
+ "description": "The Blackbox exporter, run in at least two locations outside the element's network, probes a real read path every minute; a recording rule turns the minutes failed in two locations into the availability, and an alert fires when it falls below the target.\n\nTool: Prometheus Blackbox exporter\n\n```yaml\n# blackbox.yml\nmodules:\n orders_read:\n prober: http\n timeout: 5s\n http:\n valid_status_codes: [200]\n fail_if_body_not_matches_regexp: ['\"orders\":']\n---\n# prometheus.yml (in each probe location, with external label location=<name>)\nscrape_configs:\n - job_name: blackbox-order-api\n scrape_interval: 60s\n metrics_path: /probe\n params: { module: [orders_read] }\n static_configs: [{ targets: [\"https://shop.example.com/api/orders?probe=1\"] }]\n relabel_configs:\n - { source_labels: [__address__], target_label: __param_target }\n - { source_labels: [__param_target], target_label: instance }\n - { target_label: __address__, replacement: \"blackbox-exporter:9115\" }\n---\n# rules: a minute is down when 2 or more locations fail it\ngroups:\n - name: probe-slo\n rules:\n - record: order_api:probe_up:minute\n expr: (count(probe_success{job=\"blackbox-order-api\"} == 0) or vector(0)) < bool 2\n - alert: OrderApiProbeAvailabilityLow\n expr: avg_over_time(order_api:probe_up:minute[30d]) < {{AVAILABILITY}} / 100\n labels: { severity: page }\n```",
694
+ "hubWhen": {
695
+ "SLI": [
696
+ "probes"
697
+ ]
698
+ }
699
+ },
700
+ {
701
+ "id": "ff-paging",
702
+ "type": "fitness-fn",
703
+ "label": "Pages reach on-call",
704
+ "x": 1040,
705
+ "y": 260,
706
+ "category": "process",
707
+ "threshold": "Every alert with severity page routes to the on-call receiver; 0 cause alerts (severity ticket) do",
708
+ "description": "A pipeline step tests the Alertmanager routing tree whenever its configuration changes: page alerts must reach the on-call receiver (PagerDuty), ticket alerts must not.\n\nTool: amtool (Prometheus Alertmanager)\n\n```yaml\n# alertmanager.yml (excerpt)\nroute:\n receiver: tickets\n routes:\n - matchers: [ 'severity=\"page\"' ]\n receiver: pagerduty-oncall\nreceivers:\n - name: pagerduty-oncall\n pagerduty_configs: [{ routing_key_file: /etc/alertmanager/pagerduty-key }]\n - name: tickets\n webhook_configs: [{ url: \"https://tickets.example.com/alertmanager\" }]\n---\n# CI step\n- run: |\n amtool check-config alertmanager.yml\n amtool config routes test --config.file=alertmanager.yml --verify.receivers=pagerduty-oncall severity=page service=order-api\n amtool config routes test --config.file=alertmanager.yml --verify.receivers=tickets severity=ticket service=order-api\n```",
709
+ "hubWhen": {
710
+ "ONCALL": [
711
+ "oncall"
712
+ ]
713
+ }
714
+ },
715
+ {
716
+ "id": "ff-hours-routing",
717
+ "type": "fitness-fn",
718
+ "label": "Night alerts become tickets",
719
+ "x": 1040,
720
+ "y": 390,
721
+ "category": "process",
722
+ "threshold": "Page alerts reach the team channel only within working hours; outside them 100 % become tickets",
723
+ "description": "The Alertmanager routing sends page alerts to the team channel only during the working-hours time interval and to tickets otherwise; a pipeline step validates the configuration and the receivers with amtool whenever it changes.\n\nTool: amtool (Prometheus Alertmanager time intervals)\n\n```yaml\n# alertmanager.yml (excerpt)\ntime_intervals:\n - name: working-hours\n time_intervals:\n - weekdays: ['monday:friday']\n times: [{ start_time: '08:00', end_time: '18:00' }]\n location: 'Europe/Warsaw'\nroute:\n receiver: tickets\n routes:\n - matchers: [ 'severity=\"page\"' ]\n receiver: team-channel\n active_time_intervals: [working-hours]\n continue: true\n - matchers: [ 'severity=\"page\"' ]\n receiver: tickets\n mute_time_intervals: [working-hours]\n---\n# CI step\n- run: |\n amtool check-config alertmanager.yml\n amtool config routes test --config.file=alertmanager.yml --verify.receivers=team-channel,tickets severity=page\n```",
724
+ "hubWhen": {
725
+ "ONCALL": [
726
+ "hours"
727
+ ]
728
+ }
729
+ },
730
+ {
731
+ "id": "ff-clean-logs",
732
+ "type": "fitness-fn",
733
+ "label": "Logs clean and correlated",
734
+ "x": 1040,
735
+ "y": 520,
736
+ "category": "structural",
737
+ "threshold": "0 log lines without a trace or correlation id, and 0 with a secret or an e-mail address, in a full test run",
738
+ "description": "The test suite's logs are collected; one step counts lines without the id, another scans them for secrets and personal data with gitleaks and an extra rule for e-mail addresses. With personal data in a restricted store, only the general logs are scanned.\n\nTool: gitleaks (with a custom rule) and jq, in the CI pipeline\n\n```yaml\n# .gitleaks-logs.toml\n[extend]\nuseDefault = true\n\n[[rules]]\nid = \"email-in-logs\"\ndescription = \"E-mail address in a log line\"\nregex = '''[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}'''\n---\n# CI step after the tests, which write JSON logs to test-logs/\n- run: |\n missing=$(cat test-logs/*.json | jq -c 'select((.trace_id // .correlation_id) == null)' | wc -l)\n test \"$missing\" -eq 0 || { echo \"::error::$missing log lines without a trace or correlation id\"; exit 1; }\n gitleaks dir test-logs/ --config .gitleaks-logs.toml --redact --exit-code 1\n```"
739
+ },
740
+ {
741
+ "id": "ff-retention",
742
+ "type": "fitness-fn",
743
+ "label": "Log retention enforced",
744
+ "x": 1040,
745
+ "y": 650,
746
+ "category": "structural",
747
+ "threshold": "Retention set to {{LOG_DAYS}} days in the log store; 0 log lines older than {{LOG_DAYS}} days",
748
+ "description": "The log store deletes lines older than the retention; the configuration is in the repository and reviewed, and a monthly query for the oldest line checks that deletion runs.\n\nTool: Grafana Loki (compactor retention); CloudWatch Logs or Elasticsearch ILM take the same number\n\n```yaml\n# loki config (excerpt)\ncompactor:\n working_directory: /loki/compactor\n retention_enabled: true\n delete_request_store: s3\nlimits_config:\n retention_period: {{LOG_DAYS}}d\n# Monthly check (logcli): nothing older than the retention is returned\n# logcli query '{service_name=\"order-api\"}' --from=\"$(date -u -d '-{{LOG_DAYS}} days -1 day' +%FT%TZ)\" \\\n# --to=\"$(date -u -d '-{{LOG_DAYS}} days' +%FT%TZ)\" --limit 1\n```"
749
+ },
750
+ {
751
+ "id": "ff-trace-propagation",
752
+ "type": "fitness-fn",
753
+ "label": "Traces stay whole",
754
+ "x": 1040,
755
+ "y": 780,
756
+ "category": "structural",
757
+ "threshold": "A request through the element and its outgoing calls yields exactly 1 trace id, with a client span for every outgoing call",
758
+ "description": "An integration test sends a request with a known traceparent, lets the element make its outgoing calls (to a stub), and checks that every finished span carries that trace id and that the stub received the traceparent header.\n\nTool: Vitest with the OpenTelemetry InMemorySpanExporter\n\n```ts\nimport { trace, SpanKind } from '@opentelemetry/api'\nimport { InMemorySpanExporter, SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base'\nimport { NodeTracerProvider } from '@opentelemetry/sdk-trace-node'\nimport request from 'supertest'\n\nconst exporter = new InMemorySpanExporter()\nconst provider = new NodeTracerProvider({ spanProcessors: [new SimpleSpanProcessor(exporter)] })\nprovider.register()\n\nit('keeps one trace across the element and its outgoing calls', async () => {\n const traceId = '4bf92f3577b34da6a3ce929d0e0e4736'\n await request(app).get('/orders/42').set('traceparent', `00-${traceId}-00f067aa0ba902b7-01`).expect(200)\n const spans = exporter.getFinishedSpans()\n expect(new Set(spans.map((s) => s.spanContext().traceId))).toEqual(new Set([traceId]))\n expect(spans.some((s) => s.kind === SpanKind.CLIENT)).toBe(true)\n expect(stub.lastRequest.headers.traceparent).toContain(traceId)\n})\n```",
759
+ "hubWhen": {
760
+ "SIGNALS": [
761
+ "otel"
762
+ ]
763
+ }
764
+ },
765
+ {
766
+ "id": "ff-tail-sampling",
767
+ "type": "fitness-fn",
768
+ "label": "Error traces always kept",
769
+ "x": 1040,
770
+ "y": 910,
771
+ "category": "operational",
772
+ "threshold": "100 % of traces with an error or slower than {{P95_MS}} ms kept; about {{SAMPLE_PERCENT}} % of the rest",
773
+ "description": "The Collector's tail sampling policy is kept in the repository; a test sends a known mix of traces through a Collector started in the pipeline and counts what reaches the exporter.\n\nTool: OpenTelemetry Collector (tail_sampling processor, contrib distribution)\n\n```yaml\nprocessors:\n tail_sampling:\n decision_wait: 10s\n num_traces: 100000\n policies:\n - name: errors\n type: status_code\n status_code: { status_codes: [ERROR] }\n - name: slow\n type: latency\n latency: { threshold_ms: {{P95_MS}} }\n - name: the-rest\n type: probabilistic\n probabilistic: { sampling_percentage: {{SAMPLE_PERCENT}} }\nservice:\n pipelines:\n traces:\n receivers: [otlp]\n processors: [tail_sampling, batch]\n exporters: [otlp]\n```",
774
+ "hubWhen": {
775
+ "SIGNALS": [
776
+ "otel"
777
+ ],
778
+ "SAMPLING": [
779
+ "tail"
780
+ ]
781
+ }
782
+ },
783
+ {
784
+ "id": "ff-health",
785
+ "type": "fitness-fn",
786
+ "label": "Probes declared",
787
+ "x": 1040,
788
+ "y": 1040,
789
+ "category": "structural",
790
+ "threshold": "0 deployed containers without a liveness and a readiness probe",
791
+ "description": "A policy over the Kubernetes manifests fails the pipeline when a container of the element has no liveness or no readiness probe.\n\nTool: Conftest (Open Policy Agent)\n\n```rego\npackage main\n\nimport rego.v1\n\ndeny contains msg if {\n input.kind == \"Deployment\"\n some c in input.spec.template.spec.containers\n not c.livenessProbe\n msg := sprintf(\"%s: container %s has no livenessProbe\", [input.metadata.name, c.name])\n}\n\ndeny contains msg if {\n input.kind == \"Deployment\"\n some c in input.spec.template.spec.containers\n not c.readinessProbe\n msg := sprintf(\"%s: container %s has no readinessProbe\", [input.metadata.name, c.name])\n}\n```"
792
+ }
793
+ ],
794
+ "relations": [
795
+ {
796
+ "id": "req-slo--derives--need",
797
+ "sourceId": "req-slo",
798
+ "targetId": "need",
799
+ "relationType": "derives"
800
+ },
801
+ {
802
+ "id": "req-sli-request--derives--need",
803
+ "sourceId": "req-sli-request",
804
+ "targetId": "need",
805
+ "relationType": "derives"
806
+ },
807
+ {
808
+ "id": "req-sli-probe--derives--need",
809
+ "sourceId": "req-sli-probe",
810
+ "targetId": "need",
811
+ "relationType": "derives"
812
+ },
813
+ {
814
+ "id": "req-alert--derives--need",
815
+ "sourceId": "req-alert",
816
+ "targetId": "need",
817
+ "relationType": "derives"
818
+ },
819
+ {
820
+ "id": "req-escalate--derives--need",
821
+ "sourceId": "req-escalate",
822
+ "targetId": "need",
823
+ "relationType": "derives"
824
+ },
825
+ {
826
+ "id": "req-hours--derives--need",
827
+ "sourceId": "req-hours",
828
+ "targetId": "need",
829
+ "relationType": "derives"
830
+ },
831
+ {
832
+ "id": "req-logs--derives--need",
833
+ "sourceId": "req-logs",
834
+ "targetId": "need",
835
+ "relationType": "derives"
836
+ },
837
+ {
838
+ "id": "req-pii-redact--derives--need",
839
+ "sourceId": "req-pii-redact",
840
+ "targetId": "need",
841
+ "relationType": "derives"
842
+ },
843
+ {
844
+ "id": "req-pii-restricted--derives--need",
845
+ "sourceId": "req-pii-restricted",
846
+ "targetId": "need",
847
+ "relationType": "derives"
848
+ },
849
+ {
850
+ "id": "req-trace--derives--need",
851
+ "sourceId": "req-trace",
852
+ "targetId": "need",
853
+ "relationType": "derives"
854
+ },
855
+ {
856
+ "id": "req-sample-head--derives--need",
857
+ "sourceId": "req-sample-head",
858
+ "targetId": "need",
859
+ "relationType": "derives"
860
+ },
861
+ {
862
+ "id": "req-sample-tail--derives--need",
863
+ "sourceId": "req-sample-tail",
864
+ "targetId": "need",
865
+ "relationType": "derives"
866
+ },
867
+ {
868
+ "id": "req-sample-all--derives--need",
869
+ "sourceId": "req-sample-all",
870
+ "targetId": "need",
871
+ "relationType": "derives"
872
+ },
873
+ {
874
+ "id": "req-health--derives--need",
875
+ "sourceId": "req-health",
876
+ "targetId": "need",
877
+ "relationType": "derives"
878
+ },
879
+ {
880
+ "id": "sc-slo--verifies--req-slo",
881
+ "sourceId": "sc-slo",
882
+ "targetId": "req-slo",
883
+ "relationType": "verifies"
884
+ },
885
+ {
886
+ "id": "sc-sli-request--verifies--req-sli-request",
887
+ "sourceId": "sc-sli-request",
888
+ "targetId": "req-sli-request",
889
+ "relationType": "verifies"
890
+ },
891
+ {
892
+ "id": "sc-sli-probe--verifies--req-sli-probe",
893
+ "sourceId": "sc-sli-probe",
894
+ "targetId": "req-sli-probe",
895
+ "relationType": "verifies"
896
+ },
897
+ {
898
+ "id": "sc-alert--verifies--req-alert",
899
+ "sourceId": "sc-alert",
900
+ "targetId": "req-alert",
901
+ "relationType": "verifies"
902
+ },
903
+ {
904
+ "id": "sc-escalate--verifies--req-escalate",
905
+ "sourceId": "sc-escalate",
906
+ "targetId": "req-escalate",
907
+ "relationType": "verifies"
908
+ },
909
+ {
910
+ "id": "sc-hours--verifies--req-hours",
911
+ "sourceId": "sc-hours",
912
+ "targetId": "req-hours",
913
+ "relationType": "verifies"
914
+ },
915
+ {
916
+ "id": "sc-logs--verifies--req-logs",
917
+ "sourceId": "sc-logs",
918
+ "targetId": "req-logs",
919
+ "relationType": "verifies"
920
+ },
921
+ {
922
+ "id": "sc-pii-redact--verifies--req-pii-redact",
923
+ "sourceId": "sc-pii-redact",
924
+ "targetId": "req-pii-redact",
925
+ "relationType": "verifies"
926
+ },
927
+ {
928
+ "id": "sc-pii-restricted--verifies--req-pii-restricted",
929
+ "sourceId": "sc-pii-restricted",
930
+ "targetId": "req-pii-restricted",
931
+ "relationType": "verifies"
932
+ },
933
+ {
934
+ "id": "sc-trace--verifies--req-trace",
935
+ "sourceId": "sc-trace",
936
+ "targetId": "req-trace",
937
+ "relationType": "verifies"
938
+ },
939
+ {
940
+ "id": "sc-sample-head--verifies--req-sample-head",
941
+ "sourceId": "sc-sample-head",
942
+ "targetId": "req-sample-head",
943
+ "relationType": "verifies"
944
+ },
945
+ {
946
+ "id": "sc-sample-tail--verifies--req-sample-tail",
947
+ "sourceId": "sc-sample-tail",
948
+ "targetId": "req-sample-tail",
949
+ "relationType": "verifies"
950
+ },
951
+ {
952
+ "id": "sc-sample-all--verifies--req-sample-all",
953
+ "sourceId": "sc-sample-all",
954
+ "targetId": "req-sample-all",
955
+ "relationType": "verifies"
956
+ },
957
+ {
958
+ "id": "sc-health--verifies--req-health",
959
+ "sourceId": "sc-health",
960
+ "targetId": "req-health",
961
+ "relationType": "verifies"
962
+ },
963
+ {
964
+ "id": "ff-slo--implements--adr-otel",
965
+ "sourceId": "ff-slo",
966
+ "targetId": "adr-otel",
967
+ "relationType": "implements"
968
+ },
969
+ {
970
+ "id": "ff-slo--implements--adr-logs",
971
+ "sourceId": "ff-slo",
972
+ "targetId": "adr-logs",
973
+ "relationType": "implements"
974
+ },
975
+ {
976
+ "id": "ff-probe--implements--adr-otel",
977
+ "sourceId": "ff-probe",
978
+ "targetId": "adr-otel",
979
+ "relationType": "implements"
980
+ },
981
+ {
982
+ "id": "ff-probe--implements--adr-logs",
983
+ "sourceId": "ff-probe",
984
+ "targetId": "adr-logs",
985
+ "relationType": "implements"
986
+ },
987
+ {
988
+ "id": "ff-paging--implements--adr-oncall",
989
+ "sourceId": "ff-paging",
990
+ "targetId": "adr-oncall",
991
+ "relationType": "implements"
992
+ },
993
+ {
994
+ "id": "ff-hours-routing--implements--adr-hours",
995
+ "sourceId": "ff-hours-routing",
996
+ "targetId": "adr-hours",
997
+ "relationType": "implements"
998
+ },
999
+ {
1000
+ "id": "ff-clean-logs--implements--adr-otel",
1001
+ "sourceId": "ff-clean-logs",
1002
+ "targetId": "adr-otel",
1003
+ "relationType": "implements"
1004
+ },
1005
+ {
1006
+ "id": "ff-clean-logs--implements--adr-logs",
1007
+ "sourceId": "ff-clean-logs",
1008
+ "targetId": "adr-logs",
1009
+ "relationType": "implements"
1010
+ },
1011
+ {
1012
+ "id": "ff-retention--implements--adr-otel",
1013
+ "sourceId": "ff-retention",
1014
+ "targetId": "adr-otel",
1015
+ "relationType": "implements"
1016
+ },
1017
+ {
1018
+ "id": "ff-retention--implements--adr-logs",
1019
+ "sourceId": "ff-retention",
1020
+ "targetId": "adr-logs",
1021
+ "relationType": "implements"
1022
+ },
1023
+ {
1024
+ "id": "ff-trace-propagation--implements--adr-otel",
1025
+ "sourceId": "ff-trace-propagation",
1026
+ "targetId": "adr-otel",
1027
+ "relationType": "implements"
1028
+ },
1029
+ {
1030
+ "id": "ff-tail-sampling--implements--adr-otel",
1031
+ "sourceId": "ff-tail-sampling",
1032
+ "targetId": "adr-otel",
1033
+ "relationType": "implements"
1034
+ },
1035
+ {
1036
+ "id": "ff-health--implements--adr-otel",
1037
+ "sourceId": "ff-health",
1038
+ "targetId": "adr-otel",
1039
+ "relationType": "implements"
1040
+ },
1041
+ {
1042
+ "id": "ff-health--implements--adr-logs",
1043
+ "sourceId": "ff-health",
1044
+ "targetId": "adr-logs",
1045
+ "relationType": "implements"
1046
+ }
1047
+ ]
1048
+ }