@radicaltools/mcp 0.2.0 → 0.3.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.
Files changed (187) hide show
  1. package/README.md +41 -23
  2. package/dist/{chunk-OGN3UW2D.js → chunk-2SZDTOYJ.js} +727 -89
  3. package/dist/{elkLayout-S62RLGTO.js → elkLayout-VYJDCCIT.js} +1 -1
  4. package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
  5. package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
  6. package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
  7. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
  8. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
  9. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
  10. package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
  11. package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
  12. package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
  13. package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
  14. package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
  15. package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
  16. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
  17. package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
  18. package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
  19. package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
  20. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
  21. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
  22. package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
  23. package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
  24. package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
  25. package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
  26. package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
  27. package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
  28. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
  29. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
  30. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
  31. package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
  32. package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
  33. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
  34. package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
  35. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
  36. package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
  37. package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
  38. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
  39. package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
  40. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
  41. package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
  42. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
  43. package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
  44. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
  45. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
  46. package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
  47. package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
  48. package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
  49. package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
  50. package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
  51. package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
  52. package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
  53. package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
  54. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
  55. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
  56. package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
  57. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
  58. package/dist/index.js +10321 -3964
  59. package/package.json +1 -1
  60. package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
  61. package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
  62. package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
  63. package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
  64. package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
  65. package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
  66. package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
  67. package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
  68. package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
  69. package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
  70. package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
  71. package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
  72. package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
  73. package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
  74. package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
  75. package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
  76. package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
  77. package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
  78. package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
  79. package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
  80. package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
  81. package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
  82. package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
  83. package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
  84. package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
  85. package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
  86. package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
  87. package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
  88. package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
  89. package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
  90. package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
  91. package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
  92. package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
  93. package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
  94. package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
  95. package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
  96. package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
  97. package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
  98. package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
  99. package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
  100. package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
  101. package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
  102. package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
  103. package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
  104. package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
  105. package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
  106. package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
  107. package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
  108. package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
  109. package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
  110. package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
  111. package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
  112. package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
  113. package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
  114. package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
  115. package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
  116. package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
  117. package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
  118. package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
  119. package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
  120. package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
  121. package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
  122. package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
  123. package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
  124. package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
  125. package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
  126. package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
  127. package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
  128. package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
  129. package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
  130. package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
  131. package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
  132. package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
  133. package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
  134. package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
  135. package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
  136. package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
  137. package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
  138. package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
  139. package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
  140. package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
  141. package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
  142. package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
  143. package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
  144. package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
  145. package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
  146. package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
  147. package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
  148. package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
  149. package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
  150. package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
  151. package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
  152. package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
  153. package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
  154. package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
  155. package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
  156. package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
  157. package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
  158. package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
  159. package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
  160. package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
  161. package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
  162. package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
  163. package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
  164. package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
  165. package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
  166. package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
  167. package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
  168. package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
  169. package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
  170. package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
  171. package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
  172. package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
  173. package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
  174. package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
  175. package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
  176. package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
  177. package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
  178. package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
  179. package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
  180. package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
  181. package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
  182. package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
  183. package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
  184. package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
  185. package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
  186. package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
  187. package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
@@ -0,0 +1,997 @@
1
+ {
2
+ "hub": {
3
+ "id": "concern-observability",
4
+ "category": "concern",
5
+ "name": "Observability",
6
+ "description": "Running in production: which signals are collected, how the service level indicator is measured, who is alerted and when, how long logs are kept, and how a failure is traced to its cause.",
7
+ "tags": [
8
+ "operations",
9
+ "observability",
10
+ "sli",
11
+ "logging",
12
+ "tracing",
13
+ "alerting",
14
+ "opentelemetry"
15
+ ],
16
+ "requiredMetamodel": "c4-ddd-governance-builtin",
17
+ "concern": {
18
+ "id": "observability",
19
+ "trigger": "LIST NODES WHERE (type = \"container\" OR type = \"webapp\") AND external != true",
20
+ "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.",
21
+ "group": "operability"
22
+ },
23
+ "sources": [
24
+ {
25
+ "title": "Google SRE book, chapter 6: Monitoring Distributed Systems",
26
+ "url": "https://sre.google/sre-book/monitoring-distributed-systems/"
27
+ },
28
+ {
29
+ "title": "Google SRE workbook: Implementing SLOs",
30
+ "url": "https://sre.google/workbook/implementing-slos/"
31
+ },
32
+ {
33
+ "title": "Google SRE workbook: Alerting on SLOs",
34
+ "url": "https://sre.google/workbook/alerting-on-slos/"
35
+ },
36
+ {
37
+ "title": "Google SRE book, chapter 11: Being On-Call",
38
+ "url": "https://sre.google/sre-book/being-on-call/"
39
+ },
40
+ {
41
+ "title": "OpenTelemetry documentation",
42
+ "url": "https://opentelemetry.io/docs/"
43
+ },
44
+ {
45
+ "title": "W3C Trace Context",
46
+ "url": "https://www.w3.org/TR/trace-context/"
47
+ },
48
+ {
49
+ "title": "Kubernetes documentation: Liveness, Readiness and Startup Probes",
50
+ "url": "https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/"
51
+ },
52
+ {
53
+ "title": "Prometheus Alertmanager documentation",
54
+ "url": "https://prometheus.io/docs/alerting/latest/alertmanager/"
55
+ },
56
+ {
57
+ "title": "OWASP Logging Cheat Sheet",
58
+ "url": "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html"
59
+ },
60
+ {
61
+ "title": "The Twelve-Factor App, XI. Logs",
62
+ "url": "https://12factor.net/logs"
63
+ }
64
+ ],
65
+ "templateParams": [
66
+ {
67
+ "key": "SIGNALS",
68
+ "title": "Signals",
69
+ "label": "What will you collect?",
70
+ "hint": "Traces show where a slow or failed request spent its time across elements; logs alone rarely do.",
71
+ "defaultValue": "otel",
72
+ "options": [
73
+ {
74
+ "value": "otel",
75
+ "label": "logs, metrics and traces (OpenTelemetry)",
76
+ "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."
77
+ },
78
+ {
79
+ "value": "logs",
80
+ "label": "structured logs and metrics",
81
+ "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."
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "key": "SLI",
87
+ "title": "Measured by",
88
+ "label": "How is the availability objective measured?",
89
+ "hint": "The objective and its burn-rate alerts are decided in the Availability pack; this decides the indicator they are computed from, measured where users meet the service.",
90
+ "defaultValue": "request",
91
+ "options": [
92
+ {
93
+ "value": "request",
94
+ "label": "the share of good requests at the edge",
95
+ "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."
96
+ },
97
+ {
98
+ "value": "probes",
99
+ "label": "synthetic probes from outside",
100
+ "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."
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "key": "ONCALL",
106
+ "title": "Alerting",
107
+ "label": "Who is alerted when it breaks?",
108
+ "hint": "Alerts go to people who can act, on symptoms users feel, not on every cause.",
109
+ "defaultValue": "oncall",
110
+ "options": [
111
+ {
112
+ "value": "oncall",
113
+ "label": "the on-call engineer, around the clock",
114
+ "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."
115
+ },
116
+ {
117
+ "value": "hours",
118
+ "label": "the team, in working hours",
119
+ "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."
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "key": "SAMPLING",
125
+ "title": "Trace sampling",
126
+ "label": "Which traces are kept?",
127
+ "hint": "Every trace kept costs storage; the ones that explain failures are a small share of them. Only when the signals are logs, metrics and traces (OpenTelemetry).",
128
+ "defaultValue": "tail",
129
+ "options": [
130
+ {
131
+ "value": "head",
132
+ "label": "head sampling",
133
+ "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."
134
+ },
135
+ {
136
+ "value": "tail",
137
+ "label": "tail sampling",
138
+ "description": "The Collector waits for a whole trace and keeps every one with an error or slower than the limit, plus a share of the rest. Pick it when errors are rare and each one must be explainable."
139
+ },
140
+ {
141
+ "value": "all",
142
+ "label": "every trace",
143
+ "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."
144
+ }
145
+ ]
146
+ },
147
+ {
148
+ "key": "LOG_DAYS",
149
+ "label": "How long are logs kept (days)?",
150
+ "defaultValue": "30",
151
+ "type": "number"
152
+ },
153
+ {
154
+ "key": "SAMPLE_PERCENT",
155
+ "label": "Share of ordinary traces kept (%). Only with OpenTelemetry and head or tail sampling",
156
+ "defaultValue": "10",
157
+ "type": "number"
158
+ },
159
+ {
160
+ "key": "SLOW_TRACE_MS",
161
+ "label": "A trace slower than this is always kept (ms); set it at the latency objective decided in the Capacity and scaling pack. Only with OpenTelemetry and tail sampling",
162
+ "defaultValue": "500",
163
+ "type": "number"
164
+ }
165
+ ]
166
+ },
167
+ "nodes": [
168
+ {
169
+ "id": "need",
170
+ "type": "need",
171
+ "label": "Health seen, failures explained",
172
+ "x": 0,
173
+ "y": 0,
174
+ "kind": "brief",
175
+ "source": "Hub concern pack: Observability",
176
+ "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. The indicator the objective is computed from must measure what users see, and what is collected must not cost more than it explains."
177
+ },
178
+ {
179
+ "id": "req-sli-request",
180
+ "type": "requirement",
181
+ "label": "Good requests counted",
182
+ "x": 260,
183
+ "y": 0,
184
+ "ears_type": "ubiquitous",
185
+ "action": "count a request as good when it is valid and answered without a 5xx, at the load balancer or the server's edge, leave 4xx answers out as invalid, and record the good and total rates as the indicator the Availability pack's objective is measured with",
186
+ "rationale": "Measured at the edge, the indicator sees what users see, including failures the element never logs (Google SRE workbook, Implementing SLOs).",
187
+ "hubWhen": {
188
+ "SLI": [
189
+ "request"
190
+ ]
191
+ }
192
+ },
193
+ {
194
+ "id": "req-sli-probe",
195
+ "type": "requirement",
196
+ "label": "Probed from outside",
197
+ "x": 260,
198
+ "y": 130,
199
+ "ears_type": "ubiquitous",
200
+ "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, in the indicator the Availability pack's objective is measured with, when the probes from 2 locations fail",
201
+ "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).",
202
+ "hubWhen": {
203
+ "SLI": [
204
+ "probes"
205
+ ]
206
+ }
207
+ },
208
+ {
209
+ "id": "req-alert",
210
+ "type": "requirement",
211
+ "label": "Burn-rate alerts reach people",
212
+ "x": 260,
213
+ "y": 260,
214
+ "ears_type": "event-driven",
215
+ "trigger": "a burn-rate alert generated for the objective decided in the Availability pack fires",
216
+ "action": "deliver it to {{ONCALL}} with the service level, the burn rate and a link to the runbook, and route an alert on a cause users do not feel to a ticket, never to a person",
217
+ "rationale": "Multiwindow burn-rate alerts catch fast outages within minutes and slow leaks within hours; routing decides whether anyone acts on them (Google SRE workbook, Alerting on SLOs)."
218
+ },
219
+ {
220
+ "id": "req-escalate",
221
+ "type": "requirement",
222
+ "label": "Pages escalate",
223
+ "x": 260,
224
+ "y": 390,
225
+ "ears_type": "event-driven",
226
+ "trigger": "a page is not acknowledged within 5 minutes",
227
+ "action": "escalate it to the secondary on-call, and after another 10 minutes to the team lead, at any hour",
228
+ "rationale": "An on-call rotation is only as fast as its slowest answer; escalation bounds it (Google SRE book, chapter 11).",
229
+ "hubWhen": {
230
+ "ONCALL": [
231
+ "oncall"
232
+ ]
233
+ }
234
+ },
235
+ {
236
+ "id": "req-hours",
237
+ "type": "requirement",
238
+ "label": "Out-of-hours alerts wait",
239
+ "x": 260,
240
+ "y": 520,
241
+ "ears_type": "state-driven",
242
+ "precondition": "outside working hours",
243
+ "action": "turn alerts into tickets for the next working day instead of calling anyone, and show the outage on the status page within 1 minute of the alert",
244
+ "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.",
245
+ "hubWhen": {
246
+ "ONCALL": [
247
+ "hours"
248
+ ]
249
+ }
250
+ },
251
+ {
252
+ "id": "req-retention",
253
+ "type": "requirement",
254
+ "label": "Logs deleted after retention",
255
+ "x": 260,
256
+ "y": 650,
257
+ "ears_type": "ubiquitous",
258
+ "action": "keep its log lines for {{LOG_DAYS}} days and no longer, deleted by the log store, not by hand",
259
+ "rationale": "A bounded retention limits both cost and what a leak exposes; logs are the copy nobody remembers to delete (OWASP Logging Cheat Sheet; The Twelve-Factor App, XI)."
260
+ },
261
+ {
262
+ "id": "req-trace",
263
+ "type": "requirement",
264
+ "label": "Requests traced",
265
+ "x": 260,
266
+ "y": 780,
267
+ "ears_type": "ubiquitous",
268
+ "action": "propagate the W3C Trace Context (traceparent) through every call it makes, to other elements, outside systems and messages on queues, with a client span for each",
269
+ "rationale": "A slow request is explained by where its time went; one broken link in the propagation splits the trace (W3C Trace Context).",
270
+ "hubWhen": {
271
+ "SIGNALS": [
272
+ "otel"
273
+ ]
274
+ }
275
+ },
276
+ {
277
+ "id": "req-sample-head",
278
+ "type": "requirement",
279
+ "label": "Traces sampled at the start",
280
+ "x": 260,
281
+ "y": 910,
282
+ "ears_type": "ubiquitous",
283
+ "action": "keep {{SAMPLE_PERCENT}} % of traces, decided once by the SDK at the first element (parent-based sampling with a trace-id ratio) and followed by every element after it",
284
+ "rationale": "A decision made once keeps traces whole; each element choosing on its own leaves fragments (OpenTelemetry, Sampling).",
285
+ "hubWhen": {
286
+ "SIGNALS": [
287
+ "otel"
288
+ ],
289
+ "SAMPLING": [
290
+ "head"
291
+ ]
292
+ }
293
+ },
294
+ {
295
+ "id": "req-sample-tail",
296
+ "type": "requirement",
297
+ "label": "Failing traces kept",
298
+ "x": 260,
299
+ "y": 1040,
300
+ "ears_type": "event-driven",
301
+ "trigger": "a trace completes",
302
+ "action": "keep it when any span has an error or the trace took longer than {{SLOW_TRACE_MS}} ms, and keep {{SAMPLE_PERCENT}} % of the rest",
303
+ "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).",
304
+ "hubWhen": {
305
+ "SIGNALS": [
306
+ "otel"
307
+ ],
308
+ "SAMPLING": [
309
+ "tail"
310
+ ]
311
+ }
312
+ },
313
+ {
314
+ "id": "req-sample-all",
315
+ "type": "requirement",
316
+ "label": "Every trace kept",
317
+ "x": 260,
318
+ "y": 1170,
319
+ "ears_type": "ubiquitous",
320
+ "action": "keep every trace for at least 7 days, with no sampling in the SDK or the Collector",
321
+ "rationale": "At low traffic the cost is small and any request, not only failing ones, may need explaining.",
322
+ "hubWhen": {
323
+ "SIGNALS": [
324
+ "otel"
325
+ ],
326
+ "SAMPLING": [
327
+ "all"
328
+ ]
329
+ }
330
+ },
331
+ {
332
+ "id": "req-health",
333
+ "type": "requirement",
334
+ "label": "Health reported",
335
+ "x": 260,
336
+ "y": 1300,
337
+ "ears_type": "ubiquitous",
338
+ "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",
339
+ "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, Liveness, Readiness and Startup Probes)."
340
+ },
341
+ {
342
+ "id": "sc-sli-request",
343
+ "type": "scenario",
344
+ "label": "Good and bad counted",
345
+ "x": 520,
346
+ "y": 0,
347
+ "given": "requests answered with 200, 500 and 404",
348
+ "when": "the indicator is computed",
349
+ "then": "the 200 is good, the 500 is bad, and the 404 is left out as invalid",
350
+ "hubWhen": {
351
+ "SLI": [
352
+ "request"
353
+ ]
354
+ }
355
+ },
356
+ {
357
+ "id": "sc-sli-probe",
358
+ "type": "scenario",
359
+ "label": "Outage seen by probes",
360
+ "x": 520,
361
+ "y": 130,
362
+ "given": "probes in two locations",
363
+ "when": "the element stops answering at night with no users",
364
+ "then": "the minutes are counted as down in the indicator",
365
+ "hubWhen": {
366
+ "SLI": [
367
+ "probes"
368
+ ]
369
+ }
370
+ },
371
+ {
372
+ "id": "sc-alert",
373
+ "type": "scenario",
374
+ "label": "Outage alerts",
375
+ "x": 520,
376
+ "y": 260,
377
+ "given": "every request failing",
378
+ "when": "the fast burn-rate alert fires",
379
+ "then": "the people alerted get it with the runbook link, and a cause alert from the same minute became a ticket"
380
+ },
381
+ {
382
+ "id": "sc-escalate",
383
+ "type": "scenario",
384
+ "label": "Missed page escalates",
385
+ "x": 520,
386
+ "y": 390,
387
+ "given": "a page sent at night",
388
+ "when": "the primary does not acknowledge it within 5 minutes",
389
+ "then": "the secondary is paged, and the team lead 10 minutes later",
390
+ "hubWhen": {
391
+ "ONCALL": [
392
+ "oncall"
393
+ ]
394
+ }
395
+ },
396
+ {
397
+ "id": "sc-hours",
398
+ "type": "scenario",
399
+ "label": "Night outage",
400
+ "x": 520,
401
+ "y": 520,
402
+ "given": "an outage at 23:00",
403
+ "when": "the burn-rate alert fires",
404
+ "then": "nobody is called, a ticket waits for the morning, and the status page shows the outage within 1 minute of the alert",
405
+ "hubWhen": {
406
+ "ONCALL": [
407
+ "hours"
408
+ ]
409
+ }
410
+ },
411
+ {
412
+ "id": "sc-retention",
413
+ "type": "scenario",
414
+ "label": "Old lines gone",
415
+ "x": 520,
416
+ "y": 650,
417
+ "given": "the log store",
418
+ "when": "lines older than {{LOG_DAYS}} days are queried",
419
+ "then": "none is returned"
420
+ },
421
+ {
422
+ "id": "sc-trace",
423
+ "type": "scenario",
424
+ "label": "Slow request explained",
425
+ "x": 520,
426
+ "y": 780,
427
+ "given": "a request slowed by one downstream call",
428
+ "when": "its trace is opened",
429
+ "then": "the slow call is visible with its timing, in the same trace as the request",
430
+ "hubWhen": {
431
+ "SIGNALS": [
432
+ "otel"
433
+ ]
434
+ }
435
+ },
436
+ {
437
+ "id": "sc-sample-head",
438
+ "type": "scenario",
439
+ "label": "Traces whole",
440
+ "x": 520,
441
+ "y": 910,
442
+ "given": "10 000 requests across three elements",
443
+ "when": "the kept traces are counted",
444
+ "then": "about {{SAMPLE_PERCENT}} % are kept and each kept trace has the spans of all three elements",
445
+ "hubWhen": {
446
+ "SIGNALS": [
447
+ "otel"
448
+ ],
449
+ "SAMPLING": [
450
+ "head"
451
+ ]
452
+ }
453
+ },
454
+ {
455
+ "id": "sc-sample-tail",
456
+ "type": "scenario",
457
+ "label": "Error trace kept",
458
+ "x": 520,
459
+ "y": 1040,
460
+ "given": "a thousand traces of which three have an error",
461
+ "when": "they pass the Collector",
462
+ "then": "all three are kept, and about {{SAMPLE_PERCENT}} % of the others",
463
+ "hubWhen": {
464
+ "SIGNALS": [
465
+ "otel"
466
+ ],
467
+ "SAMPLING": [
468
+ "tail"
469
+ ]
470
+ }
471
+ },
472
+ {
473
+ "id": "sc-sample-all",
474
+ "type": "scenario",
475
+ "label": "Any request traced",
476
+ "x": 520,
477
+ "y": 1170,
478
+ "given": "a request a customer complains about 5 days later",
479
+ "when": "its trace is looked up by its id",
480
+ "then": "it is there",
481
+ "hubWhen": {
482
+ "SIGNALS": [
483
+ "otel"
484
+ ],
485
+ "SAMPLING": [
486
+ "all"
487
+ ]
488
+ }
489
+ },
490
+ {
491
+ "id": "sc-health",
492
+ "type": "scenario",
493
+ "label": "Hung instance replaced",
494
+ "x": 520,
495
+ "y": 1300,
496
+ "given": "an instance that stops answering",
497
+ "when": "its liveness check fails",
498
+ "then": "the platform restarts it, and no traffic reached it once its readiness check failed"
499
+ },
500
+ {
501
+ "id": "adr-otel",
502
+ "type": "adr",
503
+ "label": "OpenTelemetry for all signals",
504
+ "x": 780,
505
+ "y": 0,
506
+ "concern": "observability",
507
+ "status": "accepted",
508
+ "date": "",
509
+ "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; and keeping every log line and every trace forever costs more than the failures they explain. The availability objective itself, and the burn-rate alerts generated for it, are decided in the Availability pack; what a log line holds and never holds in the Error handling and logging conventions pack. The snippets of this pack assume the element is order-api, scraped by Prometheus as job order-api and deployed to the shop namespace; rename them for yours.",
510
+ "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 removes attributes that must not leave and exports to the backend. Trace sampling: {{SAMPLING}}; a head decision is made by the SDK at the first element and followed by the rest, while tail sampling and keeping every trace are the Collector's to do. 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. The availability objective and its burn-rate alerts are decided in the Availability pack and measured with {{SLI}}; alerts reach {{ONCALL}}. Log lines: shaped and redacted as decided in the Error handling and logging conventions pack; logs kept {{LOG_DAYS}} days.",
511
+ "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; tail sampling needs a Collector that buffers whole traces.\n• The Collector is one more component to run, scale and upgrade.",
512
+ "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.",
513
+ "hubWhen": {
514
+ "SIGNALS": [
515
+ "otel"
516
+ ]
517
+ }
518
+ },
519
+ {
520
+ "id": "adr-logs",
521
+ "type": "adr",
522
+ "label": "Structured logs and metrics",
523
+ "x": 780,
524
+ "y": 130,
525
+ "concern": "observability",
526
+ "status": "accepted",
527
+ "date": "",
528
+ "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; and keeping every log line and every trace forever costs more than the failures they explain. The availability objective itself, and the burn-rate alerts generated for it, are decided in the Availability pack; what a log line holds and never holds in the Error handling and logging conventions pack. The snippets of this pack assume the element is order-api, scraped by Prometheus as job order-api and deployed to the shop namespace; rename them for yours.",
529
+ "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 the OpenTelemetry HTTP server metric (http.server.request.duration, which Prometheus scrapes as http_server_request_duration_seconds with the label http_response_status_code) on its own endpoint, through the OpenTelemetry metrics SDK with its Prometheus exporter; the indicator queries read that name. A framework's own metrics (Micrometer's http_server_requests_seconds with the label status) are fine too, with the indicator queries rewritten for them. 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. The availability objective and its burn-rate alerts are decided in the Availability pack and measured with {{SLI}}; alerts reach {{ONCALL}}. Log lines: shaped and redacted as decided in the Error handling and logging conventions pack; logs kept {{LOG_DAYS}} days.",
530
+ "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.",
531
+ "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.",
532
+ "hubWhen": {
533
+ "SIGNALS": [
534
+ "logs"
535
+ ]
536
+ }
537
+ },
538
+ {
539
+ "id": "adr-oncall",
540
+ "type": "adr",
541
+ "label": "Paging around the clock",
542
+ "x": 780,
543
+ "y": 260,
544
+ "concern": "observability",
545
+ "status": "accepted",
546
+ "date": "",
547
+ "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; and keeping every log line and every trace forever costs more than the failures they explain. The availability objective itself, and the burn-rate alerts generated for it, are decided in the Availability pack; what a log line holds and never holds in the Error handling and logging conventions pack. The snippets of this pack assume the element is order-api, scraped by Prometheus as job order-api and deployed to the shop namespace; rename them for yours.",
548
+ "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 after 5 minutes and to the team lead 10 minutes later. The rotation runs in PagerDuty, incident.io On-call, Grafana IRM or Jira Service Management (not Opsgenie, whose support Atlassian ends on 5 April 2027), fed by Alertmanager (or the backend's alerting); the escalation policy is kept in Terraform. Only symptoms page (the multiwindow burn-rate alerts generated for the objective decided in the Availability pack); causes such as a full disk or a restarting pod become tickets. Every alert links its runbook, which is checked as the Operational readiness pack decides. 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.",
549
+ "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.",
550
+ "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.",
551
+ "hubWhen": {
552
+ "ONCALL": [
553
+ "oncall"
554
+ ]
555
+ }
556
+ },
557
+ {
558
+ "id": "adr-hours",
559
+ "type": "adr",
560
+ "label": "Alerts in working hours",
561
+ "x": 780,
562
+ "y": 390,
563
+ "concern": "observability",
564
+ "status": "accepted",
565
+ "date": "",
566
+ "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; and keeping every log line and every trace forever costs more than the failures they explain. The availability objective itself, and the burn-rate alerts generated for it, are decided in the Availability pack; what a log line holds and never holds in the Error handling and logging conventions pack. The snippets of this pack assume the element is order-api, scraped by Prometheus as job order-api and deployed to the shop namespace; rename them for yours.",
567
+ "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. The same alerts reach the status page's incoming webhook (Instatus, or a small bridge to Atlassian Statuspage's incidents API) within 1 minute of firing, so users know the outage is known. Only symptoms alert; every alert links its runbook, which is checked as the Operational readiness pack decides.",
568
+ "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 99.9 %, which the objective decided in the Availability pack must allow.\n• The status page carries the communication outside hours.",
569
+ "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.",
570
+ "hubWhen": {
571
+ "ONCALL": [
572
+ "hours"
573
+ ]
574
+ }
575
+ },
576
+ {
577
+ "id": "ff-sli-request",
578
+ "type": "fitness-fn",
579
+ "label": "Request indicator recorded",
580
+ "x": 1040,
581
+ "y": 0,
582
+ "characteristic": "reliability",
583
+ "scope": "atomic",
584
+ "cadence": "triggered",
585
+ "trigger": "pull-request",
586
+ "invocation": "automated",
587
+ "description": "Recording rules in the repository compute the good and total request rates from the server's request histogram, leaving 4xx answers out; promtool runs a unit test over them in the pipeline with synthetic series, so a change that counts a 500 as good or a 404 as a request fails the build. The Availability pack's SLO spec uses the same queries. The metric is the OpenTelemetry HTTP server metric as Prometheus names it; for Micrometer, read http_server_requests_seconds_count with the label status instead, in the rules and the test alike.\n\nThreshold: The good and total request rates are recorded from the edge metrics; a unit test over the rules counts a 200 as good, a 500 as bad and a 404 as invalid\n\nTool: promtool test rules (Prometheus)\n\n```yaml\n# sli.rules.yaml\ngroups:\n - name: order-api-sli\n rules:\n - record: order_api:requests_total:rate5m\n labels: { service: order-api }\n expr: sum(rate(http_server_request_duration_seconds_count{job=\"order-api\",http_response_status_code!~\"4..\"}[5m]))\n - record: order_api:requests_good:rate5m\n labels: { service: order-api }\n expr: sum(rate(http_server_request_duration_seconds_count{job=\"order-api\",http_response_status_code!~\"4..|5..\"}[5m]))\n---\n# sli.test.yaml (CI: promtool test rules sli.test.yaml)\nrule_files: [sli.rules.yaml]\nevaluation_interval: 1m\ntests:\n - interval: 1m\n input_series:\n - series: 'http_server_request_duration_seconds_count{job=\"order-api\",http_response_status_code=\"200\"}'\n values: '0+90x10' # 1.5 good requests per second\n - series: 'http_server_request_duration_seconds_count{job=\"order-api\",http_response_status_code=\"500\"}'\n values: '0+30x10' # 0.5 failed requests per second\n - series: 'http_server_request_duration_seconds_count{job=\"order-api\",http_response_status_code=\"404\"}'\n values: '0+60x10' # invalid: left out of both rates\n promql_expr_test:\n - expr: order_api:requests_good:rate5m / order_api:requests_total:rate5m\n eval_time: 10m\n exp_samples:\n - labels: '{service=\"order-api\"}'\n value: 0.75\n```",
588
+ "hubWhen": {
589
+ "SLI": [
590
+ "request"
591
+ ]
592
+ }
593
+ },
594
+ {
595
+ "id": "ff-probe",
596
+ "type": "fitness-fn",
597
+ "label": "Probes measure availability",
598
+ "x": 1040,
599
+ "y": 130,
600
+ "characteristic": "reliability",
601
+ "scope": "holistic",
602
+ "cadence": "continual",
603
+ "invocation": "automated",
604
+ "description": "A Blackbox exporter runs in each of at least two locations outside the element's network and probes a real read path every minute; one central Prometheus scrapes both exporters with a location label per target, so the recording rule sees every location in one evaluation and marks a minute down when two or more fail. The recorded series is the raw indicator the Availability pack's SLO spec reads.\n\nThreshold: A probe every 60 s from at least 2 locations outside the network, scraped by one Prometheus; a minute is recorded as down when 2 or more locations fail it\n\nTool: Prometheus Blackbox exporter, scraped by one central Prometheus\n\n```yaml\n# blackbox.yml (in each probe location)\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 of the central Prometheus: one job per exporter location, same target\nscrape_configs:\n - job_name: blackbox-order-api-eu-west\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\"], labels: { location: eu-west } }]\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-eu-west.probes.example.net:9115\" }\n - job_name: blackbox-order-api-us-east\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\"], labels: { location: us-east } }]\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-us-east.probes.example.net:9115\" }\n---\n# rules: a minute is down when 2 or more locations fail it\ngroups:\n - name: probe-sli\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# The Availability pack's SLO spec reads it as a raw indicator:\n# sli: { raw: { error_ratio_query: 1 - avg_over_time(order_api:probe_up:minute[{{.window}}]) } }\n```",
605
+ "hubWhen": {
606
+ "SLI": [
607
+ "probes"
608
+ ]
609
+ }
610
+ },
611
+ {
612
+ "id": "ff-paging",
613
+ "type": "fitness-fn",
614
+ "label": "Pages reach on-call",
615
+ "x": 1040,
616
+ "y": 260,
617
+ "characteristic": "reliability",
618
+ "scope": "atomic",
619
+ "cadence": "triggered",
620
+ "trigger": "pull-request",
621
+ "invocation": "automated",
622
+ "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\nThreshold: Every alert with severity page routes to the on-call receiver; 0 cause alerts (severity ticket) do; the configuration is valid\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 # --verify.receivers compares the matched receivers comma-joined in route order\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```",
623
+ "hubWhen": {
624
+ "ONCALL": [
625
+ "oncall"
626
+ ]
627
+ }
628
+ },
629
+ {
630
+ "id": "ff-escalation",
631
+ "type": "fitness-fn",
632
+ "label": "Escalation policy as code",
633
+ "x": 1040,
634
+ "y": 390,
635
+ "characteristic": "reliability",
636
+ "scope": "atomic",
637
+ "cadence": "triggered",
638
+ "trigger": "pull-request",
639
+ "invocation": "automated",
640
+ "description": "The PagerDuty escalation policy is kept in Terraform with the delays the decision names; the pipeline validates it on every change and a nightly plan fails on drift, so a delay changed by hand in the console is caught. incident.io On-call (the incident-io/incident provider), Grafana IRM (the grafana/grafana provider's grafana_oncall_* resources) and Jira Service Management (the atlassian/atlassian-operations provider) have Terraform providers with the same shape; Opsgenie is left out because Atlassian ends its support on 5 April 2027.\n\nThreshold: The escalation policy in Terraform escalates after 5 minutes to the secondary and after 10 more to the team lead; terraform plan reports no drift from it\n\nTool: Terraform with the PagerDuty provider (terraform plan -detailed-exitcode)\n\n```hcl\nresource \"pagerduty_escalation_policy\" \"order_api\" {\n name = \"Order API\"\n num_loops = 2\n\n rule { # primary on-call; after 5 minutes unacknowledged, the next rule\n escalation_delay_in_minutes = 5\n target {\n type = \"schedule_reference\"\n id = pagerduty_schedule.primary.id\n }\n }\n rule { # secondary; after 10 more minutes, the team lead\n escalation_delay_in_minutes = 10\n target {\n type = \"schedule_reference\"\n id = pagerduty_schedule.secondary.id\n }\n }\n rule {\n escalation_delay_in_minutes = 10\n target {\n type = \"user_reference\"\n id = pagerduty_user.team_lead.id\n }\n }\n}\n# CI: terraform validate; nightly: terraform plan -detailed-exitcode (2 = drift, fails the job)\n```",
641
+ "hubWhen": {
642
+ "ONCALL": [
643
+ "oncall"
644
+ ]
645
+ }
646
+ },
647
+ {
648
+ "id": "ff-hours-routing",
649
+ "type": "fitness-fn",
650
+ "label": "Night alerts become tickets, the status page knows",
651
+ "x": 1040,
652
+ "y": 520,
653
+ "characteristic": "reliability",
654
+ "scope": "atomic",
655
+ "cadence": "triggered",
656
+ "trigger": "pull-request",
657
+ "invocation": "automated",
658
+ "description": "The Alertmanager routing sends page alerts to the status page's webhook within a minute, to the team channel during the working-hours time interval and to tickets outside it; a pipeline step validates the configuration and the receivers with amtool whenever it changes, and reads the status-page route's group_wait with yq. --verify.receivers compares the receivers comma-joined in route order, so the list follows the order of the routes. amtool does not evaluate time intervals, so the channel-or-ticket split is confirmed once after a change by adding a test alert (amtool alert add severity=page) outside hours and seeing the ticket.\n\nThreshold: Page alerts match the status-page, team-channel and tickets receivers in the routing tree, in that order; the status-page route sets group_wait to at most 1 minute; the configuration is valid\n\nTool: amtool (Prometheus Alertmanager time intervals) and yq\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: status-page\n group_wait: 1m\n continue: true\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]\nreceivers:\n - name: status-page\n webhook_configs: [{ url: \"https://status.example.com/incoming/alertmanager\" }]\n - name: team-channel\n slack_configs: [{ channel: \"#shop-alerts\", api_url_file: /etc/alertmanager/slack-url }]\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 # the receivers in route order, comma-joined: the check is order-sensitive\n amtool config routes test --config.file=alertmanager.yml --verify.receivers=status-page,team-channel,tickets severity=page\n wait=$(yq '.route.routes[] | select(.receiver == \"status-page\") | .group_wait' alertmanager.yml)\n [[ \"$wait\" =~ ^([0-9]|[1-5][0-9]|60)s$|^1m$ ]] || { echo \"status-page route waits $wait, more than 1 minute\"; exit 1; }\n```",
659
+ "hubWhen": {
660
+ "ONCALL": [
661
+ "hours"
662
+ ]
663
+ }
664
+ },
665
+ {
666
+ "id": "ff-retention",
667
+ "type": "fitness-fn",
668
+ "label": "Log retention enforced",
669
+ "x": 1040,
670
+ "y": 650,
671
+ "characteristic": "maintainability",
672
+ "scope": "atomic",
673
+ "cadence": "temporal",
674
+ "every": "30d",
675
+ "invocation": "automated",
676
+ "description": "The log store's retention is in the repository and reviewed; a monthly job queries the day before the retention boundary (one day of slack for the compactor's delete delay) and fails when any line comes back. CloudWatch Logs and Elasticsearch ILM take the same number; the query step uses their CLI instead of logcli.\n\nThreshold: Retention set to {{LOG_DAYS}} days in the log store; a monthly query for lines older than {{LOG_DAYS}} days plus 1 returns 0 lines\n\nTool: Grafana Loki (compactor retention) and logcli in a scheduled job\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---\n# .github/workflows/log-retention.yml\nname: log-retention\non:\n schedule: [{ cron: '0 6 1 * *' }]\njobs:\n oldest-line:\n runs-on: ubuntu-latest\n steps:\n - env: { LOKI_ADDR: https://loki.example.internal }\n run: |\n from=$(date -u -d \"-$(( {{LOG_DAYS}} + 2 )) days\" +%FT%TZ)\n to=$(date -u -d \"-$(( {{LOG_DAYS}} + 1 )) days\" +%FT%TZ)\n lines=$(logcli query '{service_name=\"order-api\"}' --quiet --output=raw --limit=1 --from=\"$from\" --to=\"$to\" | wc -l)\n test \"$lines\" -eq 0 || { echo \"::error::log lines older than {{LOG_DAYS}} days are still kept\"; exit 1; }\n```"
677
+ },
678
+ {
679
+ "id": "ff-trace-propagation",
680
+ "type": "fitness-fn",
681
+ "label": "Traces stay whole",
682
+ "x": 1040,
683
+ "y": 780,
684
+ "characteristic": "maintainability",
685
+ "scope": "atomic",
686
+ "cadence": "triggered",
687
+ "trigger": "pull-request",
688
+ "invocation": "automated",
689
+ "description": "An integration test registers the HTTP instrumentation before the app is loaded, serves the app on a port of its own, sends it 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, that there is a client span per call, and that the stub received the traceparent header on each. The instrumentation patches http in the test process too, so the test's own request to the app is excluded by its port (ignoreOutgoingRequestHook): otherwise it would get a client span in a fresh trace and its traceparent would be overwritten. Under Vitest the modules are ES modules, which the instrumentation does not see being loaded; requiring node:http once after registering applies the patch to the module object the app shares (an app that imports named functions from node:http needs the instrumentation's ESM hook, node --import with @opentelemetry/instrumentation/hook.mjs, instead).\n\nThreshold: A request through the element and its outgoing calls yields exactly 1 trace id, with as many client spans as outgoing calls, each carrying the traceparent\n\nTool: Vitest with supertest, the OpenTelemetry InMemorySpanExporter and HttpInstrumentation (OpenTelemetry JS SDK 2.x); for the JVM: the OpenTelemetry Java agent's testing exporter with JUnit 5\n\n```ts\nimport http from 'node:http'\nimport { createRequire } from 'node:module'\nimport type { AddressInfo } from 'node:net'\nimport { SpanKind } from '@opentelemetry/api'\nimport { registerInstrumentations } from '@opentelemetry/instrumentation'\nimport { HttpInstrumentation } from '@opentelemetry/instrumentation-http'\nimport { InMemorySpanExporter, SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base'\nimport { NodeTracerProvider } from '@opentelemetry/sdk-trace-node'\nimport request from 'supertest'\nimport { afterAll, expect, it, vi } from 'vitest'\n\nconst exporter = new InMemorySpanExporter()\nconst provider = new NodeTracerProvider({ spanProcessors: [new SimpleSpanProcessor(exporter)] })\nprovider.register()\nlet appPort = -1\nregisterInstrumentations({ instrumentations: [new HttpInstrumentation({\n ignoreOutgoingRequestHook: (req) => Number(req.port) === appPort, // the test's own request is not one of the element's calls\n})] })\ncreateRequire(import.meta.url)('node:http') // the instrumentation patches on require: the app and the test share this module\nconst { app } = await import('../src/app') // loaded after the instrumentation, so http is patched\nconst { stub } = await import('./stubs/partner') // records every request the element sends it\nconst server = http.createServer(app).listen(0)\nappPort = (server.address() as AddressInfo).port\nafterAll(() => { server.close() })\n\nit('keeps one trace across the element and its outgoing calls', async () => {\n const traceId = '4bf92f3577b34da6a3ce929d0e0e4736'\n exporter.reset()\n await request(server).get('/orders/42').set('traceparent', `00-${traceId}-00f067aa0ba902b7-01`).expect(200)\n await vi.waitFor(() => expect(exporter.getFinishedSpans().some((s) => s.kind === SpanKind.SERVER)).toBe(true))\n const spans = exporter.getFinishedSpans()\n expect(new Set(spans.map((s) => s.spanContext().traceId))).toEqual(new Set([traceId]))\n expect(spans.filter((s) => s.kind === SpanKind.CLIENT)).toHaveLength(stub.requests.length)\n expect(stub.requests.length).toBeGreaterThan(0)\n for (const r of stub.requests) expect(r.headers.traceparent).toContain(traceId)\n})\n```",
690
+ "hubWhen": {
691
+ "SIGNALS": [
692
+ "otel"
693
+ ]
694
+ }
695
+ },
696
+ {
697
+ "id": "ff-head-sampling",
698
+ "type": "fitness-fn",
699
+ "label": "SDK samples at the root",
700
+ "x": 1040,
701
+ "y": 910,
702
+ "characteristic": "maintainability",
703
+ "scope": "atomic",
704
+ "cadence": "triggered",
705
+ "trigger": "pull-request",
706
+ "invocation": "automated",
707
+ "description": "A policy over all the rendered manifests at once fails the pipeline when a container does not configure the SDK's parent-based trace-id-ratio sampler with the agreed share; parent-based means only the first element decides and the others follow. A value is read from env (value, or valueFrom.configMapKeyRef) or from a ConfigMap the container takes whole with envFrom, so the ConfigMaps must be among the manifests checked; an unset ratio counts as the SDK's default of 1. On other platforms the same two variables go in the service's environment and the same check reads it.\n\nThreshold: Every container of the element's Deployments, StatefulSets and DaemonSets sets OTEL_TRACES_SAMPLER=parentbased_traceidratio and OTEL_TRACES_SAMPLER_ARG to {{SAMPLE_PERCENT}} / 100, directly or from a ConfigMap in the same manifests\n\nTool: Conftest (Open Policy Agent, rego.v1): conftest test --combine manifests/\n\n```rego\n# conftest test --combine manifests/\npackage main\n\nimport rego.v1\n\ndocs contains d if { some f in input; is_array(f.contents); some d in f.contents }\ndocs contains d if { some f in input; is_object(f.contents); d := f.contents }\n\nworkloads contains w if { some w in docs; w.kind in {\"Deployment\", \"StatefulSet\", \"DaemonSet\"} }\n\nconfig_map(name) := object.get(cm, \"data\", {}) if { some cm in docs; cm.kind == \"ConfigMap\"; cm.metadata.name == name }\n\nhas_env(c, name) if { some e in c.env; e.name == name }\n\nenv_value(c, name) := v if { some e in c.env; e.name == name; v := e.value }\nenv_value(c, name) := v if {\n some e in c.env\n e.name == name\n ref := e.valueFrom.configMapKeyRef\n entries := config_map(ref.name)\n v := entries[ref.key]\n}\nenv_value(c, name) := v if {\n not has_env(c, name)\n some f in c.envFrom\n entries := config_map(f.configMapRef.name)\n v := entries[name]\n}\n\nsampler_arg(c) := to_number(env_value(c, \"OTEL_TRACES_SAMPLER_ARG\"))\nsampler_arg(c) := 1 if not env_value(c, \"OTEL_TRACES_SAMPLER_ARG\") # the SDK's default\n\ndeny contains msg if {\n some w in workloads\n some c in w.spec.template.spec.containers\n not env_value(c, \"OTEL_TRACES_SAMPLER\") == \"parentbased_traceidratio\"\n msg := sprintf(\"%s/%s: container %s must set OTEL_TRACES_SAMPLER=parentbased_traceidratio\", [w.kind, w.metadata.name, c.name])\n}\n\ndeny contains msg if {\n some w in workloads\n some c in w.spec.template.spec.containers\n sampler_arg(c) != {{SAMPLE_PERCENT}} / 100\n msg := sprintf(\"%s/%s: container %s must set OTEL_TRACES_SAMPLER_ARG to {{SAMPLE_PERCENT}} / 100\", [w.kind, w.metadata.name, c.name])\n}\n```",
708
+ "hubWhen": {
709
+ "SIGNALS": [
710
+ "otel"
711
+ ],
712
+ "SAMPLING": [
713
+ "head"
714
+ ]
715
+ }
716
+ },
717
+ {
718
+ "id": "ff-tail-sampling",
719
+ "type": "fitness-fn",
720
+ "label": "Error traces always kept",
721
+ "x": 1040,
722
+ "y": 1040,
723
+ "characteristic": "maintainability",
724
+ "scope": "atomic",
725
+ "cadence": "triggered",
726
+ "trigger": "pull-request",
727
+ "invocation": "automated",
728
+ "description": "The Collector's configuration, with its tail sampling policy, is kept in the repository whole (receivers, processors, exporters and the traces pipeline) and validated with the Collector's own validate command in the pipeline, so a mistyped field or a component the pipeline names but nobody defines fails the build before it runs; reviewing the policy against the threshold is part of the change.\n\nThreshold: The Collector's tail sampling policy keeps traces with an error status or slower than {{SLOW_TRACE_MS}} ms and {{SAMPLE_PERCENT}} % of the rest; the configuration validates\n\nTool: OpenTelemetry Collector contrib (tail_sampling processor; otelcol-contrib validate)\n\n```yaml\n# collector.yaml (CI: otelcol-contrib validate --config=collector.yaml)\nreceivers:\n otlp:\n protocols:\n grpc: { endpoint: 0.0.0.0:4317 }\n http: { endpoint: 0.0.0.0:4318 }\nprocessors:\n batch: {}\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: {{SLOW_TRACE_MS}} }\n - name: the-rest\n type: probabilistic\n probabilistic: { sampling_percentage: {{SAMPLE_PERCENT}} }\nexporters:\n otlp:\n endpoint: tempo-distributor.observability.svc:4317 # your trace backend\n tls: { insecure: true } # inside the cluster; TLS as the Encryption pack decides\nservice:\n pipelines:\n traces:\n receivers: [otlp]\n processors: [tail_sampling, batch]\n exporters: [otlp]\n```",
729
+ "hubWhen": {
730
+ "SIGNALS": [
731
+ "otel"
732
+ ],
733
+ "SAMPLING": [
734
+ "tail"
735
+ ]
736
+ }
737
+ },
738
+ {
739
+ "id": "ff-keep-all",
740
+ "type": "fitness-fn",
741
+ "label": "Nothing sampled, kept 7 days",
742
+ "x": 1040,
743
+ "y": 1170,
744
+ "characteristic": "maintainability",
745
+ "scope": "atomic",
746
+ "cadence": "triggered",
747
+ "trigger": "pull-request",
748
+ "invocation": "automated",
749
+ "description": "A pipeline step reads the element's manifest, the Collector configuration and the trace store's configuration from the repository and fails when any of the three would drop or expire traces early. For a hosted backend, the retention check reads the backend's settings API instead.\n\nThreshold: Every container of the element (at least one) sets the SDK sampler to always_on, the Collector's traces pipeline has no sampling processor, and the trace store keeps blocks for at least 168 h\n\nTool: yq in the CI pipeline (Grafana Tempo for the trace store)\n\n```bash\n# every container of the element samples nothing away\n# (at least one container, and each sets OTEL_TRACES_SAMPLER=always_on itself)\nyq -e '(.spec.template.spec.containers | length > 0) and (.spec.template.spec.containers | all_c((.env // []) | any_c(.name == \"OTEL_TRACES_SAMPLER\" and .value == \"always_on\")))' k8s/order-api.yaml\n# the Collector's traces pipeline has no sampling processor\nyq -e '[.service.pipelines.traces.processors[] | select(test(\"sampl\"))] | length == 0' collector.yaml\n# Tempo keeps blocks for at least 7 days (168h)\nyq -e '.compactor.compaction.block_retention | sub(\"h\", \"\") | tonumber >= 168' tempo.yaml\n```",
750
+ "hubWhen": {
751
+ "SIGNALS": [
752
+ "otel"
753
+ ],
754
+ "SAMPLING": [
755
+ "all"
756
+ ]
757
+ }
758
+ },
759
+ {
760
+ "id": "ff-health",
761
+ "type": "fitness-fn",
762
+ "label": "Probes declared",
763
+ "x": 1040,
764
+ "y": 1300,
765
+ "characteristic": "reliability",
766
+ "scope": "atomic",
767
+ "cadence": "triggered",
768
+ "trigger": "pull-request",
769
+ "invocation": "automated",
770
+ "description": "A policy over the Kubernetes manifests fails the pipeline when a container of the element has no liveness or no readiness probe. On a managed runtime, the health check path of the service is set in its configuration and the same policy reads that.\n\nThreshold: 0 deployed containers without a liveness and a 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```"
771
+ }
772
+ ],
773
+ "relations": [
774
+ {
775
+ "id": "req-sli-request--derives--need",
776
+ "sourceId": "req-sli-request",
777
+ "targetId": "need",
778
+ "relationType": "derives"
779
+ },
780
+ {
781
+ "id": "req-sli-probe--derives--need",
782
+ "sourceId": "req-sli-probe",
783
+ "targetId": "need",
784
+ "relationType": "derives"
785
+ },
786
+ {
787
+ "id": "req-alert--derives--need",
788
+ "sourceId": "req-alert",
789
+ "targetId": "need",
790
+ "relationType": "derives"
791
+ },
792
+ {
793
+ "id": "req-escalate--derives--need",
794
+ "sourceId": "req-escalate",
795
+ "targetId": "need",
796
+ "relationType": "derives"
797
+ },
798
+ {
799
+ "id": "req-hours--derives--need",
800
+ "sourceId": "req-hours",
801
+ "targetId": "need",
802
+ "relationType": "derives"
803
+ },
804
+ {
805
+ "id": "req-retention--derives--need",
806
+ "sourceId": "req-retention",
807
+ "targetId": "need",
808
+ "relationType": "derives"
809
+ },
810
+ {
811
+ "id": "req-trace--derives--need",
812
+ "sourceId": "req-trace",
813
+ "targetId": "need",
814
+ "relationType": "derives"
815
+ },
816
+ {
817
+ "id": "req-sample-head--derives--need",
818
+ "sourceId": "req-sample-head",
819
+ "targetId": "need",
820
+ "relationType": "derives"
821
+ },
822
+ {
823
+ "id": "req-sample-tail--derives--need",
824
+ "sourceId": "req-sample-tail",
825
+ "targetId": "need",
826
+ "relationType": "derives"
827
+ },
828
+ {
829
+ "id": "req-sample-all--derives--need",
830
+ "sourceId": "req-sample-all",
831
+ "targetId": "need",
832
+ "relationType": "derives"
833
+ },
834
+ {
835
+ "id": "req-health--derives--need",
836
+ "sourceId": "req-health",
837
+ "targetId": "need",
838
+ "relationType": "derives"
839
+ },
840
+ {
841
+ "id": "sc-sli-request--verifies--req-sli-request",
842
+ "sourceId": "sc-sli-request",
843
+ "targetId": "req-sli-request",
844
+ "relationType": "verifies"
845
+ },
846
+ {
847
+ "id": "sc-sli-probe--verifies--req-sli-probe",
848
+ "sourceId": "sc-sli-probe",
849
+ "targetId": "req-sli-probe",
850
+ "relationType": "verifies"
851
+ },
852
+ {
853
+ "id": "sc-alert--verifies--req-alert",
854
+ "sourceId": "sc-alert",
855
+ "targetId": "req-alert",
856
+ "relationType": "verifies"
857
+ },
858
+ {
859
+ "id": "sc-escalate--verifies--req-escalate",
860
+ "sourceId": "sc-escalate",
861
+ "targetId": "req-escalate",
862
+ "relationType": "verifies"
863
+ },
864
+ {
865
+ "id": "sc-hours--verifies--req-hours",
866
+ "sourceId": "sc-hours",
867
+ "targetId": "req-hours",
868
+ "relationType": "verifies"
869
+ },
870
+ {
871
+ "id": "sc-retention--verifies--req-retention",
872
+ "sourceId": "sc-retention",
873
+ "targetId": "req-retention",
874
+ "relationType": "verifies"
875
+ },
876
+ {
877
+ "id": "sc-trace--verifies--req-trace",
878
+ "sourceId": "sc-trace",
879
+ "targetId": "req-trace",
880
+ "relationType": "verifies"
881
+ },
882
+ {
883
+ "id": "sc-sample-head--verifies--req-sample-head",
884
+ "sourceId": "sc-sample-head",
885
+ "targetId": "req-sample-head",
886
+ "relationType": "verifies"
887
+ },
888
+ {
889
+ "id": "sc-sample-tail--verifies--req-sample-tail",
890
+ "sourceId": "sc-sample-tail",
891
+ "targetId": "req-sample-tail",
892
+ "relationType": "verifies"
893
+ },
894
+ {
895
+ "id": "sc-sample-all--verifies--req-sample-all",
896
+ "sourceId": "sc-sample-all",
897
+ "targetId": "req-sample-all",
898
+ "relationType": "verifies"
899
+ },
900
+ {
901
+ "id": "sc-health--verifies--req-health",
902
+ "sourceId": "sc-health",
903
+ "targetId": "req-health",
904
+ "relationType": "verifies"
905
+ },
906
+ {
907
+ "id": "ff-sli-request--implements--adr-otel",
908
+ "sourceId": "ff-sli-request",
909
+ "targetId": "adr-otel",
910
+ "relationType": "implements"
911
+ },
912
+ {
913
+ "id": "ff-sli-request--implements--adr-logs",
914
+ "sourceId": "ff-sli-request",
915
+ "targetId": "adr-logs",
916
+ "relationType": "implements"
917
+ },
918
+ {
919
+ "id": "ff-probe--implements--adr-otel",
920
+ "sourceId": "ff-probe",
921
+ "targetId": "adr-otel",
922
+ "relationType": "implements"
923
+ },
924
+ {
925
+ "id": "ff-probe--implements--adr-logs",
926
+ "sourceId": "ff-probe",
927
+ "targetId": "adr-logs",
928
+ "relationType": "implements"
929
+ },
930
+ {
931
+ "id": "ff-paging--implements--adr-oncall",
932
+ "sourceId": "ff-paging",
933
+ "targetId": "adr-oncall",
934
+ "relationType": "implements"
935
+ },
936
+ {
937
+ "id": "ff-escalation--implements--adr-oncall",
938
+ "sourceId": "ff-escalation",
939
+ "targetId": "adr-oncall",
940
+ "relationType": "implements"
941
+ },
942
+ {
943
+ "id": "ff-hours-routing--implements--adr-hours",
944
+ "sourceId": "ff-hours-routing",
945
+ "targetId": "adr-hours",
946
+ "relationType": "implements"
947
+ },
948
+ {
949
+ "id": "ff-retention--implements--adr-otel",
950
+ "sourceId": "ff-retention",
951
+ "targetId": "adr-otel",
952
+ "relationType": "implements"
953
+ },
954
+ {
955
+ "id": "ff-retention--implements--adr-logs",
956
+ "sourceId": "ff-retention",
957
+ "targetId": "adr-logs",
958
+ "relationType": "implements"
959
+ },
960
+ {
961
+ "id": "ff-trace-propagation--implements--adr-otel",
962
+ "sourceId": "ff-trace-propagation",
963
+ "targetId": "adr-otel",
964
+ "relationType": "implements"
965
+ },
966
+ {
967
+ "id": "ff-head-sampling--implements--adr-otel",
968
+ "sourceId": "ff-head-sampling",
969
+ "targetId": "adr-otel",
970
+ "relationType": "implements"
971
+ },
972
+ {
973
+ "id": "ff-tail-sampling--implements--adr-otel",
974
+ "sourceId": "ff-tail-sampling",
975
+ "targetId": "adr-otel",
976
+ "relationType": "implements"
977
+ },
978
+ {
979
+ "id": "ff-keep-all--implements--adr-otel",
980
+ "sourceId": "ff-keep-all",
981
+ "targetId": "adr-otel",
982
+ "relationType": "implements"
983
+ },
984
+ {
985
+ "id": "ff-health--implements--adr-otel",
986
+ "sourceId": "ff-health",
987
+ "targetId": "adr-otel",
988
+ "relationType": "implements"
989
+ },
990
+ {
991
+ "id": "ff-health--implements--adr-logs",
992
+ "sourceId": "ff-health",
993
+ "targetId": "adr-logs",
994
+ "relationType": "implements"
995
+ }
996
+ ]
997
+ }