mirror of
https://github.com/denoland/deno.git
synced 2025-03-04 18:12:59 -05:00
![]() adds tracing and opentelemetry exporting to the LSP. enable it in `.vscode/settings.json` (or wherever you configure the LSP), like ``` { "deno.tracing": true } ``` which will by default export opentelemetry traces to `localhost:4317` or ``` { "deno.tracing": { // all fields optional "collector": "openTelemetry" (default) | "logging" (output in lsp log window) "collectorEndpoint": "http://localhost:4318" (for opentelemetry) "enable": true | false, "filter": "info" // defaults to "info", but can be any span filter } } ``` --- a full working setup would be 1: Run jaeger (an opentelemetry collector with a nice UI): ``` docker run --rm -p 16686:16686 -p 4317:4317 jaegertracing/jaeger ``` 2. Enable in .vscode/settings.json ``` { "deno.tracing": true } ``` 3. Restart LSP (right now it only will start the opentelemetry exporter on LSP startup) 3. open `http://localhost:16686` in your browser --------- Co-authored-by: Nathan Whitaker <nathan@deno.com> |
||
---|---|---|
.. | ||
__test__.jsonc | ||
a.ts | ||
deno.json | ||
deno_exclude.json | ||
lint.out | ||
lint_exclude.out | ||
lint_fixed.out | ||
plugin.ts |