@spunto/brand-kit 0.12.0 → 0.13.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spunto/brand-kit",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Spunto's brand kit — the centre of the brand: the product family and its paints (the colours the design system renders), the voice, the sourced figures, the home editions, the illustrations and the templates (social cards, video scenes, stories) everything we say about Spunto is made from.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -2,7 +2,7 @@
2
2
  {
3
3
  "id": "agents-2026-11-fil",
4
4
  "name": "Fil",
5
- "note": "The site's own page (web/src/marketing/Landing.tsx @ 76d4667), in kit sections and in its own paint (Ardoise · abricot): the claim over orbits (the agent at the centre, the harnesses around it), the product shown at work — a decision asked in the thread and answered —, the four things you can see, how a run is a task of yours, the bounds in figures, the FAQ. The hero's claim now says « approve » in English as « valide » in French (the site said « trust »).",
5
+ "note": "The site's own page (web/src/marketing/Landing.tsx @ 76d4667), in kit sections and in its own paint (Ardoise · corail): the claim over orbits (the agent at the centre, the harnesses around it), the product shown at work — a decision asked in the thread and answered —, the four things you can see, how a run is a task of yours, the bounds in figures, the FAQ. The hero's claim now says « approve » in English as « valide » in French (the site said « trust »).",
6
6
  "product": "agents",
7
7
  "date": "2026-11-28",
8
8
  "sections": [
@@ -268,6 +268,7 @@
268
268
  "desktop",
269
269
  "ci",
270
270
  "sandbox",
271
+ "traces",
271
272
  "lite",
272
273
  "cms",
273
274
  "search",
@@ -330,6 +330,7 @@
330
330
  "cloud",
331
331
  "sandbox",
332
332
  "agents",
333
+ "traces",
333
334
  "desktop",
334
335
  "lite",
335
336
  "cms",
@@ -567,6 +567,7 @@
567
567
  "products": [
568
568
  "sandbox",
569
569
  "agents",
570
+ "traces",
570
571
  "lite",
571
572
  "cms",
572
573
  "desktop",
@@ -739,6 +740,7 @@
739
740
  "products": [
740
741
  "sandbox",
741
742
  "agents",
743
+ "traces",
742
744
  "lite",
743
745
  "cms",
744
746
  "desktop",
@@ -897,6 +899,7 @@
897
899
  "products": [
898
900
  "sandbox",
899
901
  "agents",
902
+ "traces",
900
903
  "lite",
901
904
  "cms",
902
905
  "desktop",
@@ -1072,6 +1075,7 @@
1072
1075
  "products": [
1073
1076
  "sandbox",
1074
1077
  "agents",
1078
+ "traces",
1075
1079
  "lite",
1076
1080
  "cms",
1077
1081
  "desktop",
@@ -1241,6 +1245,7 @@
1241
1245
  "products": [
1242
1246
  "sandbox",
1243
1247
  "agents",
1248
+ "traces",
1244
1249
  "lite",
1245
1250
  "cms",
1246
1251
  "desktop",
@@ -330,6 +330,7 @@
330
330
  "cloud",
331
331
  "sandbox",
332
332
  "agents",
333
+ "traces",
333
334
  "lite",
334
335
  "desktop",
335
336
  "ci",
@@ -726,6 +727,7 @@
726
727
  "cloud",
727
728
  "sandbox",
728
729
  "agents",
730
+ "traces",
729
731
  "lite",
730
732
  "desktop",
731
733
  "ci",
@@ -325,6 +325,7 @@
325
325
  "cloud",
326
326
  "sandbox",
327
327
  "agents",
328
+ "traces",
328
329
  "lite",
329
330
  "cms",
330
331
  "ci",
@@ -713,6 +714,7 @@
713
714
  "cloud",
714
715
  "sandbox",
715
716
  "agents",
717
+ "traces",
716
718
  "lite",
717
719
  "cms",
718
720
  "ci",
@@ -299,6 +299,7 @@
299
299
  "cloud",
300
300
  "sandbox",
301
301
  "agents",
302
+ "traces",
302
303
  "lite",
303
304
  "cms",
304
305
  "desktop",
@@ -281,6 +281,7 @@
281
281
  "cloud",
282
282
  "sandbox",
283
283
  "agents",
284
+ "traces",
284
285
  "lite",
285
286
  "cms",
286
287
  "desktop",
@@ -613,6 +614,7 @@
613
614
  "cloud",
614
615
  "sandbox",
615
616
  "agents",
617
+ "traces",
616
618
  "lite",
617
619
  "cms",
618
620
  "desktop",
@@ -502,6 +502,7 @@
502
502
  "cloud",
503
503
  "sandbox",
504
504
  "agents",
505
+ "traces",
505
506
  "cms",
506
507
  "desktop",
507
508
  "ci",
@@ -779,6 +780,7 @@
779
780
  "cloud",
780
781
  "sandbox",
781
782
  "agents",
783
+ "traces",
782
784
  "cms",
783
785
  "desktop",
784
786
  "ci",
@@ -467,7 +467,8 @@
467
467
  "search",
468
468
  "ds",
469
469
  "foyer",
470
- "agents"
470
+ "agents",
471
+ "traces"
471
472
  ]
472
473
  },
473
474
  {
@@ -281,6 +281,7 @@
281
281
  "cloud",
282
282
  "sandbox",
283
283
  "agents",
284
+ "traces",
284
285
  "lite",
285
286
  "cms",
286
287
  "desktop",
@@ -0,0 +1,292 @@
1
+ [
2
+ {
3
+ "id": "traces-2026-12-cascade",
4
+ "name": "Cascade",
5
+ "note": "Spunto Traces' first page, in its own paint (Indigo · menthe): the claim on a field of points, the product at work — a trace's waterfall, its logs, and what the view cost —, the four things it shows and the fifth it alone says, the bounds in figures (spuntodotnet/traces docs/choix.md and the code's defaults), the four lines that plug a service in, the FAQ. Words from its README.md and the interim page of its site (web/src/marketing/Landing.tsx, branch doc-produit-cms @ 633fe51); the app is French only, its screen keeps its labels on the English page.",
6
+ "product": "traces",
7
+ "date": "2026-12-02",
8
+ "sections": [
9
+ {
10
+ "id": "hero",
11
+ "kind": "hero",
12
+ "layout": "band",
13
+ "theme": "night",
14
+ "kicker": {
15
+ "en": "Spunto Traces · observability on OpenTelemetry",
16
+ "fr": "Spunto Traces · l'observabilité sur OpenTelemetry"
17
+ },
18
+ "title": {
19
+ "en": "Your traces, logs and metrics, *and what each view cost*.",
20
+ "fr": "Vos traces, logs et métriques, *et ce que chaque vue a coûté*."
21
+ },
22
+ "lede": {
23
+ "en": "Plug in any OpenTelemetry SDK or Collector. Follow a request from service to service, read its logs, watch your machines and containers, replay what your visitors saw. Everything is stored in Parquet and read by DuckDB — and every view says how many files it read.",
24
+ "fr": "Branchez n'importe quel SDK ou Collector OpenTelemetry. Suivez une requête d'un service à l'autre, lisez ses logs, regardez vos machines et vos conteneurs, rejouez ce qu'ont vu vos visiteurs. Tout est stocké en Parquet et lu par DuckDB — et chaque vue dit combien de fichiers elle a lus."
25
+ },
26
+ "actions": [
27
+ {
28
+ "label": {
29
+ "en": "Get started",
30
+ "fr": "Commencer"
31
+ },
32
+ "href": "/login"
33
+ },
34
+ {
35
+ "label": {
36
+ "en": "Read the docs",
37
+ "fr": "Lire la documentation"
38
+ },
39
+ "href": "/docs",
40
+ "variant": "ghost"
41
+ }
42
+ ],
43
+ "scene": {
44
+ "module": "terrain"
45
+ }
46
+ },
47
+ {
48
+ "id": "trace",
49
+ "kind": "showcase",
50
+ "theme": "paper",
51
+ "title": {
52
+ "en": "From the request *to the line that failed*.",
53
+ "fr": "De la requête *à la ligne qui a échoué*."
54
+ },
55
+ "lede": {
56
+ "en": "A trace is a waterfall of its spans, the self time of each service above it — where the time really went — and the logs written with its trace id below. A click on a span opens its attributes.",
57
+ "fr": "Une trace, c'est la cascade de ses spans, le temps propre de chaque service au-dessus — où le temps est vraiment passé — et, dessous, les logs écrits avec son identifiant. Un clic sur un span ouvre ses attributs."
58
+ },
59
+ "stops": [
60
+ {
61
+ "kicker": {
62
+ "en": "A sandbox that would not start",
63
+ "fr": "Une sandbox qui ne démarre pas"
64
+ },
65
+ "title": {
66
+ "en": "Waterfall · span · logs · cost",
67
+ "fr": "Cascade · span · logs · coût"
68
+ },
69
+ "text": {
70
+ "en": "traefik, then the API, then the runtime that answered 503 after 2.4 s: 98.8 % of the time spent there. Its error and Traefik's access log sit under the waterfall; the bottom line says the page read 41 Parquet files in 96 ms.",
71
+ "fr": "traefik, puis l'API, puis le runtime qui a répondu 503 au bout de 2,4 s : 98,8 % du temps passé là. Son erreur et l'access log de Traefik sont sous la cascade ; la ligne du bas dit que la page a lu 41 fichiers Parquet en 96 ms."
72
+ },
73
+ "screen": "traces-trace",
74
+ "layout": "wide"
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "id": "what",
80
+ "kind": "pillars",
81
+ "theme": "paper",
82
+ "title": {
83
+ "en": "Four views of your services. *And one of itself.*",
84
+ "fr": "Quatre vues sur vos services. *Et une sur lui-même.*"
85
+ },
86
+ "items": [
87
+ {
88
+ "title": {
89
+ "en": "APM and traces",
90
+ "fr": "APM et traces"
91
+ },
92
+ "text": {
93
+ "en": "Requests, errors and p50 / p95 / p99 latency per service and operation. A search in Datadog's syntax — duration:>300ms, http.status_code:5xx, @any.attribute — over every span, with its facets.",
94
+ "fr": "Requêtes, erreurs et latences p50 / p95 / p99 par service et par opération. Une recherche dans la syntaxe de Datadog — duration:>300ms, http.status_code:5xx, @n'importe.quel.attribut — sur tous les spans, avec ses facettes."
95
+ }
96
+ },
97
+ {
98
+ "title": {
99
+ "en": "Logs and patterns",
100
+ "fr": "Logs et motifs"
101
+ },
102
+ "text": {
103
+ "en": "OTLP, container files, Traefik's access log, browser consoles. JSON, logfmt or plain text: the level, the trace and the service are read from the line. Patterns fold messages to their shape, level by level.",
104
+ "fr": "OTLP, fichiers des conteneurs, access log de Traefik, consoles des navigateurs. JSON, logfmt ou texte brut : le niveau, la trace et le service sont lus dans la ligne. Les motifs ramènent les messages à leur forme, niveau par niveau."
105
+ }
106
+ },
107
+ {
108
+ "title": {
109
+ "en": "RUM and replay",
110
+ "fr": "RUM et replay"
111
+ },
112
+ "text": {
113
+ "en": "Views, actions, errors and Web Vitals at the 75th percentile, from the browser SDK. Each session replayed in an isolated frame where no script of the page runs; a fetch opens its trace on the server.",
114
+ "fr": "Vues, actions, erreurs et Web Vitals au 75ᵉ percentile, depuis le SDK navigateur. Chaque session rejouée dans un cadre isolé où aucun script de la page ne s'exécute ; un fetch ouvre sa trace côté serveur."
115
+ }
116
+ },
117
+ {
118
+ "title": {
119
+ "en": "Infrastructure",
120
+ "fr": "Infrastructure"
121
+ },
122
+ "text": {
123
+ "en": "Machines and containers from a Collector's hostmetrics and docker_stats, tied to the services that run on them, and a metrics explorer: rates, sums and averages, grouped by any attribute.",
124
+ "fr": "Machines et conteneurs depuis hostmetrics et docker_stats d'un Collector, reliés aux services qui y tournent, et un explorateur de métriques : taux, sommes et moyennes, regroupés par n'importe quel attribut."
125
+ }
126
+ },
127
+ {
128
+ "title": {
129
+ "en": "Every view shows what it cost",
130
+ "fr": "Chaque vue montre ce qu'elle a coûté"
131
+ },
132
+ "text": {
133
+ "en": "Under each page: the Parquet files it read, their size, the milliseconds DuckDB took. Spunto Traces traces itself too — each read, each DuckDB query, each write.",
134
+ "fr": "Sous chaque page : les fichiers Parquet lus, leur taille, les millisecondes de DuckDB. Spunto Traces se trace lui-même aussi — chaque lecture, chaque requête DuckDB, chaque écriture."
135
+ }
136
+ }
137
+ ]
138
+ },
139
+ {
140
+ "id": "bounds",
141
+ "kind": "facts",
142
+ "theme": "night",
143
+ "title": {
144
+ "en": "Plain files. *Read fast.*",
145
+ "fr": "Des fichiers simples. *Lus vite.*"
146
+ },
147
+ "facts": [
148
+ "traces-cold",
149
+ "traces-week",
150
+ "traces-size",
151
+ "traces-flush",
152
+ "traces-retention"
153
+ ]
154
+ },
155
+ {
156
+ "id": "plug",
157
+ "kind": "command",
158
+ "theme": "night",
159
+ "title": {
160
+ "en": "Plug a service in: *four variables*.",
161
+ "fr": "Brancher un service : *quatre variables*."
162
+ },
163
+ "lede": {
164
+ "en": "Any OpenTelemetry SDK reads them and sends its traces, logs and metrics over OTLP/HTTP, in protobuf or JSON. Your key comes from Settings and ingestion, which also gives a Collector's configuration for machines, containers and their log files.",
165
+ "fr": "N'importe quel SDK OpenTelemetry les lit et envoie ses traces, logs et métriques en OTLP/HTTP, en protobuf ou en JSON. Votre clé vient de Réglages et ingestion, qui donne aussi la configuration d'un Collector pour les machines, les conteneurs et leurs fichiers de logs."
166
+ },
167
+ "command": "OTEL_EXPORTER_OTLP_ENDPOINT=https://traces.spunto.net\nOTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer%20stk_…\nOTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf\nOTEL_SERVICE_NAME=my-service\n# the SDK adds /v1/traces, /v1/logs and /v1/metrics",
168
+ "prompt": false,
169
+ "caption": {
170
+ "en": ".env",
171
+ "fr": ".env"
172
+ }
173
+ },
174
+ {
175
+ "id": "faq",
176
+ "kind": "faq",
177
+ "theme": "paper",
178
+ "title": {
179
+ "en": "Questions",
180
+ "fr": "Questions"
181
+ },
182
+ "items": [
183
+ {
184
+ "q": {
185
+ "en": "What can I send it?",
186
+ "fr": "Que peut-on lui envoyer ?"
187
+ },
188
+ "a": {
189
+ "en": "OTLP/HTTP traces, logs and metrics, in protobuf or JSON, gzip accepted, with a stk_ key as a bearer token, an X-API-Key header or a Basic password. Browsers send RUM, replays and console logs with OpenObserve's browser SDK.",
190
+ "fr": "Des traces, logs et métriques en OTLP/HTTP, en protobuf ou en JSON, gzip accepté, avec une clé stk_ en jeton Bearer, en en-tête X-API-Key ou en mot de passe Basic. Les navigateurs envoient RUM, replays et logs de console avec le SDK navigateur d'OpenObserve."
191
+ }
192
+ },
193
+ {
194
+ "q": {
195
+ "en": "Why Parquet and DuckDB?",
196
+ "fr": "Pourquoi Parquet et DuckDB ?"
197
+ },
198
+ "a": {
199
+ "en": "Measured before choosing: on a week of real spans, every query under 0.6 s, where an indexed Postgres took 10 to 28 s on aggregates and six times the disk. On 100 M spans, ClickHouse was of the same order. One file per organisation, day and service, sorted by time, and a catalogue that skips the files outside the window.",
200
+ "fr": "Mesuré avant de choisir : sur une semaine de vrais spans, chaque requête sous 0,6 s, quand un Postgres indexé mettait 10 à 28 s sur les agrégats et six fois plus de disque. Sur 100 M de spans, ClickHouse était du même ordre. Un fichier par organisation, jour et service, trié par temps, et un catalogue qui écarte les fichiers hors de la fenêtre."
201
+ }
202
+ },
203
+ {
204
+ "q": {
205
+ "en": "How long is data kept?",
206
+ "fr": "Combien de temps les données sont-elles gardées ?"
207
+ },
208
+ "a": {
209
+ "en": "30 days by default; then each day's files are deleted, partition by partition. The Data page shows what each day and service weighs.",
210
+ "fr": "30 jours par défaut ; ensuite les fichiers de chaque jour sont effacés, partition par partition. La page Données montre ce que pèse chaque jour et chaque service."
211
+ }
212
+ },
213
+ {
214
+ "q": {
215
+ "en": "Who can open an account?",
216
+ "fr": "Qui peut ouvrir un compte ?"
217
+ },
218
+ "a": {
219
+ "en": "Accounts are the app's own, by email or with Google. Sign-ups are on a list for now; anyone invited into an organisation can join it.",
220
+ "fr": "Les comptes sont propres à l'app, par email ou avec Google. Les inscriptions se font sur liste pour l'instant ; toute personne invitée dans une organisation peut la rejoindre."
221
+ }
222
+ },
223
+ {
224
+ "q": {
225
+ "en": "Is the documentation in English?",
226
+ "fr": "La documentation est-elle en anglais ?"
227
+ },
228
+ "a": {
229
+ "en": "Not yet: the documentation, like the app, is in French.",
230
+ "fr": "Pas encore : la documentation, comme l'app, est en français."
231
+ }
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "id": "family",
237
+ "kind": "family",
238
+ "theme": "night",
239
+ "title": {
240
+ "en": "Same universe, *different tools*.",
241
+ "fr": "Même univers, *outils différents*."
242
+ },
243
+ "lede": {
244
+ "en": "Spunto Traces reads what the family's services send. The rest of the family, each in its own colours.",
245
+ "fr": "Spunto Traces lit ce qu'envoient les services de la famille. Le reste de la famille, chacun dans ses couleurs."
246
+ },
247
+ "products": [
248
+ "cloud",
249
+ "sandbox",
250
+ "agents",
251
+ "desktop",
252
+ "ci",
253
+ "lite",
254
+ "cms",
255
+ "search",
256
+ "ds",
257
+ "foyer"
258
+ ]
259
+ },
260
+ {
261
+ "id": "start",
262
+ "kind": "cta",
263
+ "theme": "signal",
264
+ "title": {
265
+ "en": "Send a first span, *read it in five seconds*.",
266
+ "fr": "Envoyez un premier span, *lisez-le dans cinq secondes*."
267
+ },
268
+ "lede": {
269
+ "en": "Create an organisation, copy its key, set the four variables. What arrives is written to Parquet every five seconds.",
270
+ "fr": "Créez une organisation, copiez sa clé, posez les quatre variables. Ce qui arrive est écrit en Parquet toutes les cinq secondes."
271
+ },
272
+ "actions": [
273
+ {
274
+ "label": {
275
+ "en": "Get started",
276
+ "fr": "Commencer"
277
+ },
278
+ "href": "/login"
279
+ },
280
+ {
281
+ "label": {
282
+ "en": "Read the docs",
283
+ "fr": "Lire la documentation"
284
+ },
285
+ "href": "/docs",
286
+ "variant": "ghost"
287
+ }
288
+ ]
289
+ }
290
+ ]
291
+ }
292
+ ]
@@ -16,6 +16,7 @@ import desktop from "./editions/desktop.json"
16
16
  import ci from "./editions/ci.json"
17
17
  import sandbox from "./editions/sandbox.json"
18
18
  import agents from "./editions/agents.json"
19
+ import traces from "./editions/traces.json"
19
20
  import search from "./editions/search.json"
20
21
  import ds from "./editions/ds.json"
21
22
  import foyer from "./editions/foyer.json"
@@ -24,7 +25,7 @@ import foyer from "./editions/foyer.json"
24
25
  export type HomeEditionFile = Omit<HomeEdition, "sections"> & { sections?: HomeSection[] }
25
26
 
26
27
  /** Each product's file, as imported — what the studio's server rewrites (`editions/<product>.json`). */
27
- export const EDITION_FILES = { cloud, lite, cms, desktop, ci, sandbox, agents, search, ds, foyer } as unknown as Record<BrandProductId, HomeEditionFile[]>
28
+ export const EDITION_FILES = { cloud, lite, cms, desktop, ci, sandbox, agents, traces, search, ds, foyer } as unknown as Record<BrandProductId, HomeEditionFile[]>
28
29
 
29
30
  const STORED = Object.values(EDITION_FILES).flat()
30
31
 
@@ -45,6 +46,7 @@ export const PUBLISHED: Record<BrandProductId, string | null> = {
45
46
  ci: "ci-2026-11-relais",
46
47
  sandbox: "sandbox-2026-11-moteur",
47
48
  agents: "agents-2026-11-fil",
49
+ traces: "traces-2026-12-cascade",
48
50
  search: null,
49
51
  ds: null,
50
52
  foyer: "foyer-2026-11-tablee",
@@ -5,10 +5,11 @@ import * as desktop from "./desktop"
5
5
  import * as ci from "./ci"
6
6
  import * as sandbox from "./sandbox"
7
7
  import * as agents from "./agents"
8
+ import * as traces from "./traces"
8
9
  import * as search from "./search"
9
10
  import * as ds from "./ds"
10
11
  import * as foyer from "./foyer"
11
12
 
12
- const ALL = [lite, cms, desktop, ci, sandbox, agents, search, ds, foyer]
13
+ const ALL = [lite, cms, desktop, ci, sandbox, agents, traces, search, ds, foyer]
13
14
 
14
15
  export const PRODUCT_FACTS = ALL.flatMap((p) => p.facts)
@@ -0,0 +1,67 @@
1
+ // Spunto Traces' facts — the figures its home editions quote. The editions themselves are data:
2
+ // ../editions/traces.json.
3
+ //
4
+ // Every figure is one spuntodotnet/traces measured or set, with where: the reads were measured on 2026-12-01/02
5
+ // (docs/choix.md — a week of real spans on a worker, 100 M generated spans on a GCP VM with 8 vCPUs), the rest are
6
+ // the defaults of its code. The product's site imports its published edition: `<ProductHome product="traces" />`
7
+ // (PUBLISHED in ../editions.ts).
8
+ //
9
+ // Source of the words: spuntodotnet/traces @ f363c6d (2026-12-02), README.md and docs/choix.md; the app's screens
10
+ // (docs/screens/*.png of the branch doc-produit-cms @ 633fe51). Not claimed: a price, open signups (accounts are on a
11
+ // list or by invitation), self-hosting instructions, geolocation of RUM sessions (« pas encore »), anything measured
12
+ // on its production volume — the benchmark figures say where they were measured.
13
+
14
+ import type { Fact } from "../../facts"
15
+ import type { Words } from "../types"
16
+
17
+ const w = (en: string, fr: string): Words => ({ en, fr })
18
+
19
+ const REPO = "spuntodotnet/traces @ f363c6d"
20
+
21
+ export const facts: Fact[] = [
22
+ {
23
+ id: "traces-cold",
24
+ value: w("≤ 1.3 s", "≤ 1,3 s"),
25
+ label: w(
26
+ "per query, cold, over 100 M spans — DuckDB on Parquet, a VM with 8 vCPUs",
27
+ "par requête, à froid, sur 100 M de spans — DuckDB sur Parquet, une VM à 8 vCPU",
28
+ ),
29
+ source: `${REPO}, docs/choix.md:10-11 (100 M spans, GCP VM 8 vCPU, DuckDB + DuckLake ≤ 1,3 s à froid; data gs://hammerbot-bench-traces, scripts docs/bench/)`,
30
+ },
31
+ {
32
+ id: "traces-week",
33
+ value: w("< 0.6 s", "< 0,6 s"),
34
+ label: w(
35
+ "for every query over a week of real spans (25 M), one file per day × service",
36
+ "pour chaque requête sur une semaine de vrais spans (25 M), un fichier par jour × service",
37
+ ),
38
+ source: `${REPO}, docs/choix.md:7-8 (une semaine, 25 M de spans, sur un worker : < 0,6 s pour toutes les requêtes)`,
39
+ },
40
+ {
41
+ id: "traces-size",
42
+ value: w("1.3 GB", "1,3 Go"),
43
+ label: w(
44
+ "of Parquet for that week — the same spans took 8.2 GB in an indexed Postgres",
45
+ "de Parquet pour cette semaine — les mêmes spans pesaient 8,2 Go dans un Postgres indexé",
46
+ ),
47
+ source: `${REPO}, docs/choix.md:8 (Postgres indexé, 14 colonnes, 8,2 Go contre 1,3 Go de Parquet); server/store.ts:116 (COMPRESSION zstd)`,
48
+ },
49
+ {
50
+ id: "traces-flush",
51
+ value: w("5 s", "5 s"),
52
+ label: w(
53
+ "between two writes: what arrived becomes Parquet, sorted by time, compressed in ZSTD",
54
+ "entre deux écritures : ce qui est arrivé devient du Parquet, trié par temps, compressé en ZSTD",
55
+ ),
56
+ source: `${REPO}, server/config.ts:23 (FLUSH_MS = 5 000), server/store.ts:5-6, 116, 245; README.md:20`,
57
+ },
58
+ {
59
+ id: "traces-retention",
60
+ value: w("30 days", "30 jours"),
61
+ label: w(
62
+ "kept by default, then a day's files are deleted, partition by partition",
63
+ "gardés par défaut, puis les fichiers d'un jour sont effacés, partition par partition",
64
+ ),
65
+ source: `${REPO}, server/config.ts:27 (RETENTION_DAYS = 30), server/store.ts:195; README.md:24, 164`,
66
+ },
67
+ ]
@@ -12,7 +12,7 @@
12
12
 
13
13
  import type { BrandProductId } from "../../products"
14
14
 
15
- export type ShowcaseScreenId = "cms-board" | "cms-table" | "cms-page" | "cms-views" | "desktop-wall" | "desktop-drive" | "desktop-handoff" | "desktop-launcher" | "foyer-phone" | "foyer-week" | "foyer-pantry" | "foyer-book" | "sandbox-terminal" | "agents-thread"
15
+ export type ShowcaseScreenId = "cms-board" | "cms-table" | "cms-page" | "cms-views" | "desktop-wall" | "desktop-drive" | "desktop-handoff" | "desktop-launcher" | "foyer-phone" | "foyer-week" | "foyer-pantry" | "foyer-book" | "sandbox-terminal" | "agents-thread" | "traces-trace"
16
16
 
17
17
  export type ShowcaseScreenMeta = {
18
18
  id: ShowcaseScreenId
@@ -40,6 +40,11 @@ const FOYER_SOURCE = "coderhammer/foyer@aa0f3b1 · app/src/views/menus.jsx, stoc
40
40
  // the member write follows the page's language (agents/sample.ts).
41
41
  const AGENTS_SOURCE = "coderhammer/spunto-agents@76d4667 · web/src/app/OrgRoutes.tsx (la barre latérale), Agent.tsx (les onglets), Conversation.tsx et Decisions.tsx (le fil, la carte d’une décision), server/agent-api.ts (la requête de l’agent, sa réponse, la notification) ; la matinée de DevRel de web/src/marketing/Landing.tsx"
42
42
 
43
+ // The app exists in French only: its labels are printed as it prints them, on the English page too. The trace is one the
44
+ // demo sends (scripts/demo.mjs: a sandbox created during the incident, the runtime's 503 coming back up as a 502), drawn
45
+ // as the trace page lays it out (traces/sample.ts).
46
+ const TRACES_SOURCE = "spuntodotnet/traces@f363c6d · web/src/app/Trace.tsx (la page d’une trace : temps propre par service, cascade, logs, coût), OrgShell.tsx (la barre latérale), ui.tsx (QueryCost), server/telemetry.ts et query.ts (le span de la lecture, traces.query.*), scripts/demo.mjs (la trace, ses logs) ; la capture docs/screens/trace.png de doc-produit-cms@633fe51"
47
+
43
48
  // The CLI speaks English only: its lines are printed as it prints them, on the French page too (sandbox/sample.ts).
44
49
  const SANDBOX_SOURCE = "spuntodotnet/sandbox@ac4a9b8 · src/cli/main.ts (ce que sbx écrit), docs/content/docs/quickstart.mdx et benchmarks.mdx de docs/site@f0639c5 (les commandes, les durées mesurées)"
45
50
 
@@ -142,6 +147,13 @@ export const SHOWCASE_SCREENS: Record<ShowcaseScreenId, ShowcaseScreenMeta> = {
142
147
  story: "La conversation avec DevRel : il dit ce que son passage a fait, puis demande avant de publier — la décision arrive dans le fil et sur le téléphone, on choisit « Publier », on répond, la réponse repart dans la tâche même qui l’a demandée, et l’agent reprend.",
143
148
  source: AGENTS_SOURCE,
144
149
  },
150
+ "traces-trace": {
151
+ id: "traces-trace",
152
+ product: "traces",
153
+ name: "Une trace",
154
+ story: "La création d’une sandbox qui échoue : la cascade se déroule de traefik à l’API puis au runtime, le temps propre par service montre où il est passé, un clic sur le span en erreur ouvre ses attributs (503), ses logs arrivent sous la cascade, et la ligne du bas dit ce que la vue a coûté — fichiers Parquet, octets, millisecondes.",
155
+ source: TRACES_SOURCE,
156
+ },
145
157
  }
146
158
 
147
159
  export const SHOWCASE_SCREEN_IDS = Object.keys(SHOWCASE_SCREENS) as ShowcaseScreenId[]
@@ -0,0 +1,102 @@
1
+ // What the Traces screen shows. The app exists in French only (spuntodotnet/traces, web/src/app/*: `lang = "fr"`): its
2
+ // labels stay in French on the English page, like Desktop's and Agents'. The two captions over it follow the page.
3
+ //
4
+ // The trace is one the app's demo sends (scripts/demo.mjs, `API_ROUTES` and `runtime()`): a sandbox created during the
5
+ // incident — traefik, then spunto-api (auth, the providers, the INSERT), then its call to spunto-runtime-cloud, slow and
6
+ // answering 503, which comes back up as a 502. Its two logs are the ones the demo writes for it (the API's error, the
7
+ // access log of Traefik as server/logs.ts makes it readable). Durations are an example of the incident's (360 ms × 6).
8
+
9
+ type W = { en: string; fr: string }
10
+
11
+ export const UI = {
12
+ brand: "Spunto",
13
+ product: "Traces",
14
+ org: "Démo",
15
+ role: "owner",
16
+ /** The sidebar of OrgShell.tsx: its sections, and the entries the screen shows (the trace's is lit). */
17
+ nav: [
18
+ { section: "APM", items: ["Vue d'ensemble", "Services", "Explorer les spans", "Trace"] },
19
+ { section: "Logs", items: ["Explorer les logs"] },
20
+ { section: "RUM", items: ["Applications", "Sessions"] },
21
+ { section: "Infrastructure", items: ["Machines et conteneurs", "Métriques"] },
22
+ { section: "Organisation", items: ["Données", "Réglages et ingestion"] },
23
+ ],
24
+ back: "Explorer",
25
+ when: "02 déc., 09:14:07",
26
+ traceId: "7c41e0b29a5d4f6e8b03d1a2c95f4e17",
27
+ stats: [
28
+ ["Durée", "2.41s"],
29
+ ["Spans", "11"],
30
+ ["Services", "3"],
31
+ ],
32
+ selfTitle: "Temps propre par service",
33
+ selfSub: "La durée de chaque span moins celle de ses enfants : où la trace a réellement passé son temps",
34
+ span: "Span",
35
+ duration: "Duration",
36
+ legend: "click a span for details, the chevron to fold it",
37
+ logsTitle: "Logs de la trace",
38
+ logsSub: "2 logs écrits avec cet identifiant de trace",
39
+ /** QueryCost (ui.tsx): « 41 fichiers Parquet · 18 Mo », « 96 ms ». */
40
+ cost: { files: "41 fichiers Parquet · 18 Mo", ms: "96 ms" },
41
+ attributes: "Attributs",
42
+ } as const
43
+
44
+ export type Kind = "http" | "db" | "internal"
45
+
46
+ export type SampleSpan = {
47
+ service: "traefik" | "spunto-api" | "spunto-runtime-cloud"
48
+ name: string
49
+ depth: number
50
+ /** ms from the trace's start */
51
+ start: number
52
+ end: number
53
+ kind: Kind
54
+ error?: boolean
55
+ }
56
+
57
+ export const TOTAL = 2412
58
+
59
+ export const SPANS: SampleSpan[] = [
60
+ { service: "traefik", name: "POST", depth: 0, start: 0, end: 2412, kind: "http", error: true },
61
+ { service: "traefik", name: "ReverseProxy", depth: 1, start: 0.3, end: 2411, kind: "http" },
62
+ { service: "spunto-api", name: "POST /api/orgs/:orgId/sandboxes", depth: 2, start: 1.1, end: 2409, kind: "http", error: true },
63
+ { service: "spunto-api", name: "auth", depth: 3, start: 1.6, end: 3, kind: "internal" },
64
+ { service: "spunto-api", name: "pg.query:SELECT spunto", depth: 4, start: 1.8, end: 2.7, kind: "db" },
65
+ { service: "spunto-api", name: "sandbox.providers.list", depth: 3, start: 3.4, end: 6.9, kind: "internal" },
66
+ { service: "spunto-api", name: "pg.query:SELECT spunto", depth: 4, start: 3.6, end: 4.4, kind: "db" },
67
+ { service: "spunto-api", name: "pg.query:SELECT spunto", depth: 4, start: 4.7, end: 6.6, kind: "db" },
68
+ { service: "spunto-api", name: "pg.query:INSERT spunto", depth: 3, start: 7.4, end: 18.6, kind: "db" },
69
+ { service: "spunto-api", name: "POST", depth: 3, start: 19.2, end: 2405, kind: "http", error: true },
70
+ { service: "spunto-runtime-cloud", name: "POST /capabilities/:capability/:operation", depth: 4, start: 19.9, end: 2403, kind: "http", error: true },
71
+ ]
72
+
73
+ /** The span the pointer opens: the runtime's 503. */
74
+ export const PICKED = SPANS.length - 1
75
+
76
+ /** Self time by service, as Trace.tsx's ServiceBreakdown computes it from the spans above. */
77
+ export const SELF = [
78
+ { service: "spunto-runtime-cloud", label: "2.38s · 98,8 %", share: 0.988 },
79
+ { service: "spunto-api", label: "25ms · 1 %", share: 0.01 },
80
+ { service: "traefik", label: "4ms · 0,2 %", share: 0.002 },
81
+ ] as const
82
+
83
+ /** The picked span's attributes (scripts/demo.mjs, runtime()), and its resource's version. */
84
+ export const ATTRS: [string, string][] = [
85
+ ["http.route", "/capabilities/:capability/:operation"],
86
+ ["http.request.method", "POST"],
87
+ ["http.response.status_code", "503"],
88
+ ["sandbox.operation", "create"],
89
+ ["service.version", "2026.11.30"],
90
+ ]
91
+
92
+ /** What the services wrote with this trace id: the API's error, and Traefik's access log made readable. */
93
+ export const LOGS = [
94
+ { at: "+1 ms", level: "ERROR", service: "spunto-api", message: "POST /api/orgs/:orgId/sandboxes a échoué : le runtime a répondu 503" },
95
+ { at: "+2,4 s", level: "ERROR", service: "traefik", message: "POST spunto.net/api/orgs/bx3DjKJyRjiToRMr-Dvhp/sandboxes 502 2412 ms" },
96
+ ]
97
+
98
+ export const CAPTION = {
99
+ /* server/telemetry.ts: the app traces its own reads — a server span named by its route, what the view cost as attributes. */
100
+ self: { en: "Spunto Traces, traced by itself", fr: "Spunto Traces, tracé par lui-même" },
101
+ span: { en: "the span you clicked", fr: "le span cliqué" },
102
+ } satisfies Record<string, W>
@@ -0,0 +1,334 @@
1
+ "use client"
2
+
3
+ import type { ReactNode } from "react"
4
+ import { FONT, hexAlpha } from "../../../theme"
5
+ import { AppWindow, CodeCard, Cursor, Float, FAINT, Icon, INK, LINE, MUTED, Stage, u, useStage, WASH, type IconId, type StageColors } from "../stage"
6
+ import { ATTRS, CAPTION, LOGS, PICKED, SELF, SPANS, TOTAL, UI, type Kind, type SampleSpan } from "./sample"
7
+
8
+ /* A trace, in Spunto Traces: a sandbox's creation that failed. The waterfall unrolls from traefik to the API and to the
9
+ runtime, the self time by service says where the time went, a click on the span in error opens its attributes (the
10
+ 503), its logs arrive under the waterfall, and the line at the bottom says what the view cost — Parquet files, bytes,
11
+ milliseconds; beside it, the span of that very read, which the app sends about itself.
12
+
13
+ Drawn from spuntodotnet/traces: web/src/app/Trace.tsx (the page: header, stats, ServiceBreakdown, SpanWaterfall of
14
+ the design system, TraceLogs, QueryCost), OrgShell.tsx (the sidebar), server/telemetry.ts and query.ts (the read's
15
+ span and its traces.query.* attributes), scripts/demo.mjs (the trace and its logs); the capture docs/screens/trace.png. */
16
+
17
+ type Lang = "en" | "fr"
18
+
19
+ const H = 560
20
+ const WIN = { x: 24, y: 30, w: 872 }
21
+ const SIDEBAR = 150
22
+ const MAIN_X = SIDEBAR + 22
23
+ const MAIN_W = WIN.w - MAIN_X - 22
24
+ /* 0 the page · 1 the waterfall unrolls · 2 the self time · 3 to the runtime's span · 4 click: its attributes · 5 its
25
+ logs · 6 what the view cost (the read's own span takes the attributes' place) · 7 fade · 8 rewind */
26
+ const LENGTHS = [700, 1700, 1300, 900, 1600, 1300, 3600, 450, 120] as const
27
+ /** Without motion: the span picked, its logs, the cost and the read's own span — the whole page on one screen. */
28
+ const STILL = 6
29
+
30
+ const RED = "#dc2626"
31
+ const KIND: Record<Kind, string> = { http: "#34c88a", db: "#1599c4", internal: "#4651c9" }
32
+ /** The breakdown's categorical colours, in the order of the services' self time. */
33
+ const SERIES = ["#e9692c", "#2a78d6", "#34c88a"]
34
+
35
+ /* The waterfall's geometry, in the main column. */
36
+ const WF = { y: 158, head: 18, cols: 17, row: 18.5 }
37
+ const NAME_W = 292
38
+ const TL = { x: NAME_W + 8, w: MAIN_W - NAME_W - 8 - 46 }
39
+ const rowY = (i: number) => WF.y + WF.head + WF.cols + i * WF.row
40
+ const LOGS_Y = rowY(SPANS.length) + 12
41
+
42
+ /** Where the runtime's span is, in the window. */
43
+ const AT = { x: WIN.x + MAIN_X + 150, y: WIN.y + 26 + rowY(PICKED) + 10 }
44
+
45
+ /** The app's logo (web/src/app/Logo.tsx): a pulse line on the field, in the signal. */
46
+ function PulseLogo({ size, colors }: { size: number; colors: StageColors }) {
47
+ return (
48
+ <svg viewBox="0 0 32 32" style={{ display: "block", flexShrink: 0, width: u(size), height: u(size) }}>
49
+ <rect width="32" height="32" rx="8" fill={colors.field} />
50
+ <path d="M7 22h5l3-11 3 14 3-8h4" fill="none" stroke={colors.signal} strokeWidth="2.6" strokeLinecap="round" strokeLinejoin="round" />
51
+ </svg>
52
+ )
53
+ }
54
+
55
+ /** A service's logo, as the app guesses it (server/icons.ts): Traefik's, or Node's for the services of the demo. */
56
+ function ServiceIcon({ service, size = 10 }: { service: SampleSpan["service"]; size?: number }) {
57
+ const traefik = service === "traefik"
58
+ return (
59
+ <svg viewBox="0 0 24 24" fill="none" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" style={{ display: "block", flexShrink: 0, width: u(size), height: u(size) }}>
60
+ {traefik ? (
61
+ <path d="M3 7l9-4l9 4l-9 4zM3 12l9 4l9-4M3 17l9 4l9-4" stroke="#24a1c1" />
62
+ ) : (
63
+ <>
64
+ <path d="M12 2.5l8.5 4.9v9.2L12 21.5l-8.5-4.9V7.4z" stroke="#5fa04e" />
65
+ <path d="M10 9.5v4.2c0 1-1.6 1.2-2 .3M16 10c-.4-.6-2.6-.8-2.6.5c0 1.6 2.8.8 2.8 2.5c0 1.3-2.3 1.2-2.9.4" stroke="#5fa04e" strokeWidth={1.4} />
66
+ </>
67
+ )}
68
+ </svg>
69
+ )
70
+ }
71
+
72
+ function Panel({ y, h, children }: { y: number; h: number; children: ReactNode }) {
73
+ return <div style={{ position: "absolute", left: 0, right: 0, top: u(y), height: u(h), border: `1px solid ${LINE}`, borderRadius: u(6), background: "#ffffff", overflow: "hidden" }}>{children}</div>
74
+ }
75
+
76
+ function Sidebar({ colors }: { colors: StageColors }) {
77
+ return (
78
+ <div style={{ position: "absolute", left: 0, top: 0, bottom: 0, width: u(SIDEBAR), background: WASH, borderRight: `1px solid ${LINE}` }}>
79
+ <div style={{ display: "flex", alignItems: "center", gap: u(7), margin: `${u(12)} ${u(11)} 0` }}>
80
+ <PulseLogo size={19} colors={colors} />
81
+ <div>
82
+ <div style={{ fontFamily: FONT.display, fontSize: u(11), lineHeight: 1 }}>{UI.brand}</div>
83
+ <div style={{ marginTop: u(3), fontFamily: FONT.mono, fontSize: u(6.6), letterSpacing: "0.18em", textTransform: "uppercase", color: MUTED, lineHeight: 1 }}>{UI.product}</div>
84
+ </div>
85
+ </div>
86
+ <div style={{ display: "flex", alignItems: "center", gap: u(6), height: u(26), margin: `${u(10)} ${u(8)} 0`, padding: `0 ${u(7)}`, border: `1px solid ${LINE}`, borderRadius: u(5), background: hexAlpha(colors.tone, 0.06) }}>
87
+ <span style={{ display: "flex", alignItems: "center", justifyContent: "center", width: u(15), height: u(15), borderRadius: u(3), background: hexAlpha(colors.tone, 0.14), color: colors.tone, fontFamily: FONT.display, fontSize: u(8.6) }}>{UI.org[0]}</span>
88
+ <div style={{ lineHeight: 1.05 }}>
89
+ <div style={{ fontSize: u(9.4), fontWeight: 600 }}>{UI.org}</div>
90
+ <div style={{ fontFamily: FONT.mono, fontSize: u(6.4), letterSpacing: "0.14em", textTransform: "uppercase", color: MUTED }}>{UI.role}</div>
91
+ </div>
92
+ <Icon id="chevron" size={10} color={MUTED} style={{ marginLeft: "auto" }} />
93
+ </div>
94
+ {UI.nav.map((group) => (
95
+ <div key={group.section} style={{ margin: `${u(9)} ${u(8)} 0` }}>
96
+ <div style={{ padding: `0 ${u(6)} ${u(2)}`, fontSize: u(8), color: MUTED }}>{group.section}</div>
97
+ {group.items.map((label) => {
98
+ const on = label === "Trace"
99
+ return (
100
+ <div key={label} style={{ display: "flex", alignItems: "center", gap: u(6), height: u(19), padding: `0 ${u(6)}`, borderRadius: u(4), background: on ? hexAlpha(colors.tone, 0.12) : "transparent", color: on ? colors.tone : INK, fontSize: u(9.4), fontWeight: on ? 550 : 450, whiteSpace: "nowrap" }}>
101
+ <span style={{ width: u(4), height: u(4), borderRadius: "50%", background: on ? colors.tone : FAINT, opacity: on ? 1 : 0.6 }} />
102
+ {label}
103
+ </div>
104
+ )
105
+ })}
106
+ </div>
107
+ ))}
108
+ </div>
109
+ )
110
+ }
111
+
112
+ function Header() {
113
+ return (
114
+ <>
115
+ <div style={{ position: "absolute", left: 0, top: u(12), display: "flex", alignItems: "center", gap: u(4), fontSize: u(9), color: MUTED }}>
116
+ <span style={{ fontSize: u(10) }}>←</span>
117
+ {UI.back}
118
+ </div>
119
+ <div style={{ position: "absolute", left: 0, top: u(30), display: "flex", alignItems: "center", gap: u(5), fontSize: u(8.6), color: MUTED, whiteSpace: "nowrap" }}>
120
+ <ServiceIcon service="traefik" size={9} />
121
+ traefik · {UI.when}
122
+ <span style={{ marginLeft: u(3), padding: `${u(1)} ${u(6)}`, borderRadius: u(8), background: hexAlpha(RED, 0.1), color: RED, fontWeight: 550 }}>
123
+ {SPANS.filter((s) => s.error).length} spans en erreur
124
+ </span>
125
+ </div>
126
+ <div style={{ position: "absolute", left: 0, top: u(46), fontFamily: FONT.mono, fontSize: u(16), lineHeight: 1 }}>POST</div>
127
+ <div style={{ position: "absolute", left: 0, top: u(68), display: "flex", alignItems: "center", gap: u(4), fontFamily: FONT.mono, fontSize: u(8.2), color: MUTED }}>
128
+ {UI.traceId}
129
+ </div>
130
+ <div style={{ position: "absolute", right: 0, top: u(14), display: "flex", gap: u(6) }}>
131
+ {UI.stats.map(([label, value]) => (
132
+ <div key={label} style={{ width: u(66), padding: `${u(6)} ${u(8)}`, border: `1px solid ${LINE}`, borderRadius: u(5), background: "#ffffff" }}>
133
+ <div style={{ fontFamily: FONT.mono, fontSize: u(6.4), letterSpacing: "0.16em", textTransform: "uppercase", color: MUTED }}>{label}</div>
134
+ <div style={{ marginTop: u(4), fontFamily: FONT.display, fontSize: u(15), lineHeight: 1 }}>{value}</div>
135
+ </div>
136
+ ))}
137
+ </div>
138
+ </>
139
+ )
140
+ }
141
+
142
+ function SelfTime({ shown }: { shown: boolean }) {
143
+ return (
144
+ <Panel y={90} h={60}>
145
+ <div style={{ padding: `${u(7)} ${u(12)} 0`, fontSize: u(9.8), fontWeight: 550 }}>{UI.selfTitle}</div>
146
+ <div style={{ padding: `${u(1)} ${u(12)} 0`, fontSize: u(7.8), color: MUTED, whiteSpace: "nowrap" }}>{UI.selfSub}</div>
147
+ <div style={{ display: "flex", gap: u(1.5), margin: `${u(5)} ${u(12)} 0`, height: u(6) }}>
148
+ {SELF.map((s, i) => (
149
+ <span
150
+ key={s.service}
151
+ style={{
152
+ flex: shown ? `${Math.max(s.share, 0.004)} 0 0` : "0 0 0",
153
+ minWidth: shown ? u(2) : 0,
154
+ borderRadius: u(1.5),
155
+ background: SERIES[i],
156
+ transition: `flex 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) ${i * 0.08}s`,
157
+ }}
158
+ />
159
+ ))}
160
+ </div>
161
+ <div style={{ display: "flex", gap: u(12), margin: `${u(4)} ${u(12)} 0`, fontSize: u(8), whiteSpace: "nowrap", opacity: shown ? 1 : 0, transition: "opacity 0.4s ease 0.4s" }}>
162
+ {SELF.map((s, i) => (
163
+ <span key={s.service} style={{ display: "inline-flex", alignItems: "center", gap: u(4) }}>
164
+ <span style={{ width: u(6), height: u(6), borderRadius: u(1.5), background: SERIES[i] }} />
165
+ {s.service}
166
+ <span style={{ color: MUTED }}>{s.label}</span>
167
+ </span>
168
+ ))}
169
+ </div>
170
+ </Panel>
171
+ )
172
+ }
173
+
174
+ function Waterfall({ grown, picked }: { grown: boolean; picked: boolean }) {
175
+ const ticks = [0, 0.25, 0.5, 0.75, 1]
176
+ const tick = (t: number) => (t === 0 ? "0.00ms" : `${((TOTAL * t) / 1000).toFixed(2)}s`)
177
+ return (
178
+ <Panel y={WF.y} h={WF.head + WF.cols + SPANS.length * WF.row + 16}>
179
+ <div style={{ display: "flex", alignItems: "center", gap: u(6), height: u(WF.head), padding: `0 ${u(8)}`, borderBottom: `1px solid ${LINE}`, fontFamily: FONT.mono, fontSize: u(7.6), color: MUTED, whiteSpace: "nowrap" }}>
180
+ {UI.traceId} · {SPANS.length} spans · 2.41s
181
+ <span style={{ marginLeft: "auto", fontFamily: FONT.sans }}>Collapse all · Expand all</span>
182
+ </div>
183
+ <div style={{ position: "relative", height: u(WF.cols), background: WASH, borderBottom: `1px solid ${LINE}`, fontFamily: FONT.mono, fontSize: u(6.8), color: MUTED }}>
184
+ <span style={{ position: "absolute", left: u(10), top: u(5), letterSpacing: "0.1em", textTransform: "uppercase" }}>{UI.span}</span>
185
+ {ticks.map((t) => (
186
+ <span key={t} style={{ position: "absolute", left: `calc(${u(TL.x)} + ${u(TL.w)} * ${t})`, top: u(5), transform: t === 1 ? "translateX(-100%)" : "none" }}>{tick(t)}</span>
187
+ ))}
188
+ <span style={{ position: "absolute", right: u(8), top: u(5), letterSpacing: "0.1em", textTransform: "uppercase" }}>{UI.duration}</span>
189
+ </div>
190
+ {SPANS.map((s, i) => {
191
+ const on = picked && i === PICKED
192
+ const left = (s.start / TOTAL) * TL.w
193
+ const width = Math.max(2, ((s.end - s.start) / TOTAL) * TL.w)
194
+ const dur = s.end - s.start
195
+ return (
196
+ <div key={i} style={{ position: "absolute", left: 0, right: 0, top: u(WF.head + WF.cols + i * WF.row), height: u(WF.row), borderBottom: `1px solid ${hexAlpha(LINE, 0.6)}`, background: on ? hexAlpha("#2a78d6", 0.08) : "transparent", boxShadow: on ? `inset ${u(2)} 0 0 #2a78d6` : "none", transition: "background 0.3s ease" }}>
197
+ <div style={{ position: "absolute", left: u(8 + s.depth * 9), top: 0, bottom: 0, display: "flex", alignItems: "center", gap: u(4), fontFamily: FONT.mono, fontSize: u(8.4), whiteSpace: "nowrap" }}>
198
+ <span style={{ width: u(5), color: FAINT, fontSize: u(6.5) }}>{i < SPANS.length - 1 && SPANS[i + 1].depth > s.depth ? "⌄" : ""}</span>
199
+ {s.error && <span style={{ width: u(4), height: u(4), borderRadius: "50%", background: RED }} />}
200
+ <span style={{ width: u(2.5), height: u(9), borderRadius: u(1), background: s.error ? RED : KIND[s.kind] }} />
201
+ <ServiceIcon service={s.service} size={9} />
202
+ {s.name}
203
+ </div>
204
+ <span
205
+ style={{
206
+ position: "absolute",
207
+ left: u(TL.x + left),
208
+ top: u(5.5),
209
+ height: u(7),
210
+ width: grown ? u(width) : 0,
211
+ borderRadius: u(1.5),
212
+ background: s.error ? RED : KIND[s.kind],
213
+ transition: grown ? `width 0.55s cubic-bezier(0.3, 0.7, 0.2, 1) ${i * 0.09}s` : "none",
214
+ }}
215
+ />
216
+ <span style={{ position: "absolute", right: u(8), top: u(4), fontFamily: FONT.mono, fontSize: u(7.8), color: MUTED }}>{dur >= 1000 ? `${(dur / 1000).toFixed(2)}s` : `${Math.max(1, Math.round(dur))}ms`}</span>
217
+ </div>
218
+ )
219
+ })}
220
+ <div style={{ position: "absolute", left: 0, right: 0, bottom: u(4), display: "flex", justifyContent: "center", gap: u(6), fontSize: u(7.4), color: MUTED, whiteSpace: "nowrap" }}>
221
+ {(["http", "db"] as Kind[]).map((k) => (
222
+ <span key={k} style={{ display: "inline-flex", alignItems: "center", gap: u(3) }}>
223
+ <span style={{ width: u(5), height: u(5), borderRadius: u(1), background: KIND[k] }} />
224
+ {k} ·
225
+ </span>
226
+ ))}
227
+ <span style={{ display: "inline-flex", alignItems: "center", gap: u(3) }}>
228
+ <span style={{ width: u(5), height: u(5), borderRadius: u(1), background: KIND.internal }} />
229
+ agent rpc / job · {UI.legend}
230
+ </span>
231
+ </div>
232
+ </Panel>
233
+ )
234
+ }
235
+
236
+ function TraceLogs({ shown }: { shown: boolean }) {
237
+ return (
238
+ <div style={{ opacity: shown ? 1 : 0, transform: shown ? "none" : `translateY(${u(8)})`, transition: "opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2)" }}>
239
+ <Panel y={LOGS_Y} h={68}>
240
+ <div style={{ padding: `${u(7)} ${u(12)} 0`, fontSize: u(9.8), fontWeight: 550 }}>{UI.logsTitle}</div>
241
+ <div style={{ padding: `${u(1)} ${u(12)} ${u(4)}`, fontSize: u(7.8), color: MUTED }}>{UI.logsSub}</div>
242
+ {LOGS.map((l) => (
243
+ <div key={l.service} style={{ display: "flex", alignItems: "center", gap: u(8), height: u(16), padding: `0 ${u(12)}`, borderTop: `1px solid ${LINE}`, fontSize: u(8), whiteSpace: "nowrap" }}>
244
+ <span style={{ width: u(34), fontFamily: FONT.mono, color: MUTED }}>{l.at}</span>
245
+ <span style={{ display: "inline-flex", alignItems: "center", gap: u(3), width: u(40), fontFamily: FONT.mono, color: RED, fontWeight: 550 }}>
246
+ <span style={{ width: u(2), height: u(9), background: RED, borderRadius: u(1) }} />
247
+ {l.level}
248
+ </span>
249
+ <span style={{ display: "inline-flex", alignItems: "center", gap: u(4), width: u(98) }}>
250
+ <ServiceIcon service={l.service as SampleSpan["service"]} size={9} />
251
+ {l.service}
252
+ </span>
253
+ <span style={{ fontFamily: FONT.mono, overflow: "hidden", textOverflow: "ellipsis" }}>{l.message}</span>
254
+ </div>
255
+ ))}
256
+ </Panel>
257
+ </div>
258
+ )
259
+ }
260
+
261
+ function Cost({ lit, colors }: { lit: boolean; colors: StageColors }) {
262
+ const icon = (id: IconId) => <Icon id={id} size={9} color={lit ? colors.tone : MUTED} />
263
+ return (
264
+ <div style={{ position: "absolute", left: 0, top: u(LOGS_Y + 76), display: "flex", alignItems: "center", gap: u(10), padding: `${u(2)} ${u(6)}`, marginLeft: u(-6), borderRadius: u(4), background: lit ? hexAlpha(colors.tone, 0.1) : "transparent", color: lit ? INK : MUTED, fontSize: u(8.2), fontWeight: lit ? 550 : 400, whiteSpace: "nowrap", transition: "background 0.4s ease, color 0.4s ease" }}>
265
+ <span style={{ display: "inline-flex", alignItems: "center", gap: u(3) }}>{icon("layers")}{UI.cost.files}</span>
266
+ <span style={{ display: "inline-flex", alignItems: "center", gap: u(3) }}>{icon("clock")}{UI.cost.ms}</span>
267
+ </div>
268
+ )
269
+ }
270
+
271
+ export function TraceScreen({ lang, colors, night, label }: { lang: Lang; colors: StageColors; night: boolean; label: string }) {
272
+ const { ref, step } = useStage(LENGTHS, STILL)
273
+ const grown = step >= 1 && step <= 7
274
+ const self = step >= 2 && step <= 7
275
+ const picked = step >= 4 && step <= 7
276
+ const logs = step >= 5 && step <= 7
277
+ const cost = step >= 6 && step <= 7
278
+
279
+ return (
280
+ <Stage stageRef={ref} colors={colors} night={night} height={H} label={label}>
281
+ <AppWindow {...WIN} h={H} address="traces.spunto.net">
282
+ <div style={{ position: "absolute", inset: 0, opacity: step === 7 ? 0 : 1, transition: "opacity 0.4s ease" }}>
283
+ <Sidebar colors={colors} />
284
+ <div style={{ position: "absolute", left: u(MAIN_X), width: u(MAIN_W), top: 0, bottom: 0 }}>
285
+ <Header />
286
+ <SelfTime shown={self} />
287
+ <Waterfall grown={grown} picked={picked} />
288
+ <TraceLogs shown={logs} />
289
+ <Cost lit={cost} colors={colors} />
290
+ </div>
291
+ </div>
292
+ <Cursor x={AT.x - WIN.x} y={AT.y - WIN.y - 26} down={step === 4} hidden={step < 3 || step > 4} ms={750} />
293
+ </AppWindow>
294
+
295
+ <Float x={590} y={206} w={300} depth={110} show={picked && step <= 5}>
296
+ <div style={{ background: "#ffffff", color: INK }}>
297
+ <div style={{ display: "flex", alignItems: "center", gap: u(6), padding: `${u(8)} ${u(11)}`, borderBottom: `1px solid ${LINE}` }}>
298
+ <ServiceIcon service="spunto-runtime-cloud" size={11} />
299
+ <div style={{ minWidth: 0 }}>
300
+ <div style={{ fontFamily: FONT.mono, fontSize: u(8.6), fontWeight: 550, whiteSpace: "nowrap" }}>{SPANS[PICKED].name}</div>
301
+ <div style={{ marginTop: u(2), fontSize: u(7.8), color: MUTED }}>
302
+ spunto-runtime-cloud · 2.38s · <span style={{ color: RED, fontWeight: 550 }}>ERROR</span> · {CAPTION.span[lang]}
303
+ </div>
304
+ </div>
305
+ </div>
306
+ <div style={{ padding: `${u(6)} ${u(11)} ${u(8)}` }}>
307
+ <div style={{ fontFamily: FONT.mono, fontSize: u(6.6), letterSpacing: "0.14em", textTransform: "uppercase", color: MUTED, marginBottom: u(3) }}>{UI.attributes}</div>
308
+ {ATTRS.map(([k, v]) => (
309
+ <div key={k} style={{ display: "flex", gap: u(8), fontFamily: FONT.mono, fontSize: u(8), lineHeight: 1.7, whiteSpace: "nowrap" }}>
310
+ <span style={{ width: u(118), color: MUTED }}>{k}</span>
311
+ <span style={{ color: v === "503" ? RED : INK, fontWeight: v === "503" ? 600 : 400 }}>{v}</span>
312
+ </div>
313
+ ))}
314
+ </div>
315
+ </div>
316
+ </Float>
317
+
318
+ <Float x={556} y={214} w={340} depth={140} show={cost}>
319
+ <CodeCard
320
+ title={CAPTION.self[lang]}
321
+ meta="OTEL_SERVICE_NAME=spunto-traces"
322
+ signal={colors.signal}
323
+ lines={[
324
+ { text: "GET /api/orgs/:org/q/trace/:traceId", hot: true },
325
+ { text: " traces.query.files 41" },
326
+ { text: " traces.query.bytes 18 204 160" },
327
+ { text: " traces.query.ms 96" },
328
+ { text: "└ catalogue spans · duckdb SELECT spans", dim: true },
329
+ ]}
330
+ />
331
+ </Float>
332
+ </Stage>
333
+ )
334
+ }
@@ -18,6 +18,7 @@ import { PhoneScreen } from "./foyer/phone"
18
18
  import { WeekScreen } from "./foyer/week"
19
19
  import { TerminalScreen } from "./sandbox/terminal"
20
20
  import { ThreadScreen } from "./agents/thread"
21
+ import { TraceScreen } from "./traces/trace"
21
22
  import type { StageColors } from "./stage"
22
23
 
23
24
  /* The client half of a `showcase` section: the home (drawn on the server) hands a screen's id and what
@@ -40,6 +41,7 @@ const SCREENS: Record<ShowcaseScreenId, (props: ScreenProps) => ReactNode> = {
40
41
  "foyer-book": BookScreen,
41
42
  "sandbox-terminal": TerminalScreen,
42
43
  "agents-thread": ThreadScreen,
44
+ "traces-trace": TraceScreen,
43
45
  }
44
46
 
45
47
  export function ShowcaseScreen({ screen, locale, product, theme, palette, label }: { screen: ShowcaseScreenId; locale: "en" | "fr"; product: BrandProductId; theme: BrandTheme; palette?: BrandPalette; label: string }) {
package/src/paints.ts CHANGED
@@ -28,7 +28,7 @@ export type PaintToken =
28
28
  | "flame"
29
29
  | "background" | "card" | "popover" | "secondary" | "muted" | "border" | "input" | "sidebar" | "sidebar-border"
30
30
 
31
- export type PaintId = "cloud" | "sprout" | "cms" | "lite" | "browser" | "desktop" | "ci" | "sandbox" | "agents" | "search" | "foyer" | "ds"
31
+ export type PaintId = "cloud" | "sprout" | "cms" | "lite" | "browser" | "desktop" | "ci" | "sandbox" | "agents" | "traces" | "search" | "foyer" | "ds"
32
32
 
33
33
  export type Paint = {
34
34
  id: PaintId
@@ -147,15 +147,27 @@ export const PAINTS: Paint[] = [
147
147
  },
148
148
  {
149
149
  id: "agents",
150
- name: "Ardoise · abricot",
151
- note: `Spunto Agents — slate / apricot since 2026-11-28: a deep, calm slate for agents you can trust,
152
- and a warm apricot for the moment it's your turn (a decision waiting). It wore Cloud's paint before,
153
- and its favicon and iPhone icon an older amber-on-dusk. Placed in the widest gaps left in the family:
154
- its field between Search's teal and Lite's ink, its signal between Sandbox's coral and Cloud's amber`,
155
- field: "0.27 0.065 238", signal: "0.87 0.12 62", tone: "0.49 0.14 238",
150
+ name: "Ardoise · corail",
151
+ note: `Spunto Agents — slate / vivid coral since 2026-11-29 (an apricot for a day, 2026-11-28: too
152
+ yellow, too near Cloud's amber): a deep, calm slate for agents you can trust, and a warm coral for the
153
+ moment it's your turn (a decision waiting). Its field sits between Search's teal and Lite's ink; its
154
+ signal is deeper and more orange than Sandbox's pale coral (L 0.78, not the family's 0.87), so the
155
+ tiles tell apart. It wore Cloud's paint before, and its favicon and iPhone icon an older amber-on-dusk`,
156
+ field: "0.27 0.065 238", signal: "0.78 0.13 32", tone: "0.49 0.14 238",
156
157
  hue: 238,
157
158
  shelf: true,
158
159
  },
160
+ {
161
+ id: "traces",
162
+ name: "Indigo · menthe",
163
+ note: `Spunto Traces — deep indigo / mint since 2026-12-02: the indigo tile and the mint pulse its app already
164
+ wore (\`indigo-mint\` palette, logo #1d1b4b / #7ef0c4). Not the palette as is: its field sat on Desktop's dusk
165
+ and Lite's ink, its lime-ish signal on CI's. So a deeper, more saturated indigo (C 0.12, away from the dusky
166
+ violets) and the logo's own mint (hue 165, between CI's lime and Search's aqua)`,
167
+ field: "0.24 0.12 275", signal: "0.88 0.13 165", tone: "0.49 0.17 275",
168
+ hue: 275,
169
+ shelf: true,
170
+ },
159
171
  {
160
172
  id: "search",
161
173
  name: "Sarcelle · eau",
package/src/products.ts CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { PAINT_BY_ID, paintHex, type PaintId } from "./paints"
14
14
 
15
- export type BrandProductId = "cloud" | "lite" | "cms" | "desktop" | "ci" | "sandbox" | "agents" | "search" | "ds" | "foyer"
15
+ export type BrandProductId = "cloud" | "lite" | "cms" | "desktop" | "ci" | "sandbox" | "agents" | "traces" | "search" | "ds" | "foyer"
16
16
 
17
17
  export type BrandColors = {
18
18
  /** The deep colour a product's night bands, story scenes and video backdrops open in. */
@@ -243,6 +243,34 @@ const ENTRIES: Entry[] = [
243
243
  claim: "Des agents qu'on lit, qu'on guide *et qu'on valide*.",
244
244
  },
245
245
  },
246
+ {
247
+ /* The family's observability (spuntodotnet/traces): OpenTelemetry traces, logs and metrics over OTLP/HTTP, the RUM
248
+ and session replays of browsers, machines and containers — stored in Parquet, read by DuckDB. It replaced
249
+ OpenObserve for Spunto's own services. Words from its README.md (French only, like its app); its site serves
250
+ its home from here, in both languages. */
251
+ id: "traces",
252
+ name: "Spunto Traces",
253
+ paint: "traces",
254
+ family: "product",
255
+ href: "https://traces.spunto.net",
256
+ hrefFr: "https://traces.spunto.net/fr",
257
+ en: {
258
+ kind: "traces, logs and metrics",
259
+ promise: "OpenTelemetry traces, logs and metrics, browser sessions and their replay, stored in Parquet and read by DuckDB.",
260
+ blurb:
261
+ "Point your OpenTelemetry SDK or Collector at it: traces, logs and metrics over OTLP/HTTP, plus the RUM and session replays of your browsers. Services with their latency and errors, a trace as a waterfall with its logs, log patterns, machines and containers, a metrics explorer — and every view says how many Parquet files it read, and how long it took.",
262
+ status: "OTLP in, Parquet underneath",
263
+ claim: "Your traces, logs and metrics, *and what each view cost*.",
264
+ },
265
+ fr: {
266
+ kind: "traces, logs et métriques",
267
+ promise: "Les traces, logs et métriques OpenTelemetry, les sessions des navigateurs et leur replay, stockés en Parquet et lus par DuckDB.",
268
+ blurb:
269
+ "Branchez-y votre SDK ou votre Collector OpenTelemetry : traces, logs et métriques en OTLP/HTTP, plus le RUM et le replay des sessions de vos navigateurs. Les services, leur latence et leurs erreurs, une trace en cascade avec ses logs, les motifs des logs, les machines et les conteneurs, un explorateur de métriques — et chaque vue dit combien de fichiers Parquet elle a lus, et en combien de temps.",
270
+ status: "OTLP dedans, Parquet dessous",
271
+ claim: "Vos traces, logs et métriques, *et ce que chaque vue a coûté*.",
272
+ },
273
+ },
246
274
  {
247
275
  id: "search",
248
276
  name: "Spunto Search",