feat: external tracing support
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- observability
Direzione di ricerca
Start with tracingChannel handling in src/presets/cloudflare/preset.ts and src/presets/vercel/preset.ts, then the internal telemetry code in src/runtime/internal/telemetry/subscribe.ts and channels.ts, plus the kv.ts and database.ts virtual modules. Done means the maintainers agree on the tracing.sink option and the public nitro/tracing API shape. This is design work and should be discussed before any code is written.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the feature
tracingChannel currently does two things at once: it enables the producers (h3/srvx plugins, plus the unstorage/db0 withTracing wrappers in the virtual modules) and, on cloudflare and vercel presets, it also registers the built-in bridge (cloudflare, vercel).
This makes bringing your own sink (OTLP exporter, Langfuse, etc) awkward on those presets:
- keep
tracingChannelon → every span gets exported twice - turn it off and wire h3/srvx manually → unstorage/db0 are lost, since they are only wrapped via the flag (kv, database)
On top of that subscribeTracedChannels, the TRACED_CHANNELS describers and Span are internal (#nitro/runtime/*), and the channel list is closed. So user-land channels (eg an app.llm one) can't reach the built-in sinks either, and every third-party sink ends up re-implementing the same subscribe/describe logic.
What I'd like to propose and do is a two step work:
- separate option for handling built-in sinks (eg
tracing: { sink: "auto" | false }), makingtracingChannelproducers-only. - add a new public
nitro/tracingexport that provides things like subscribe helpers, descirbers, spans and a way to register extra channels.
Having this flexibility means that any enterprise could have their own telemetry infra wired up and structured as they prefer, liek having tree spans instead of flat ones. As well as module authors have access to registering automatically their own channels so that application logic isn't required to do it on its own
Additional information
- Would you be willing to help implement this feature?
- Lingua principale
- TypeScript
- Stelle
- 11.5k
- Fork
- 968
- Merge medio
- 4g 9h
- PR unite (30g)
- 64
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nitrojs/nitro
-
pending triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
I maintainer di solito rispondono entro 2 giorni
-
cloudflare: `nitro deploy` fails when a parent directory has a Wrangler configForse già presa @draarivpatel-ui l’ha presa 13 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 2 giorni
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni
-
pending triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
nitrojs/nitro#5205 · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di nitrojs/nitro
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
amosblomqvist/learnharness#1141 ·
I maintainer di solito rispondono entro 4 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ranxianglei/billion-context#8319 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
tencent-connect/dsh-qqbot#148 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
JimLiu/open-artifact#126 ·
-
redis.expireTime() returns relative TTL seconds on live host instead of Unix timestamp secondsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100