0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-04 18:12:59 -05:00
deno/tests/specs/lint/lint_plugin
Bartek Iwańczuk 55c5b07535
perf(lsp): add built-in tracing support for the LSP (#27843)
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>
2025-02-12 08:40:40 -08:00
..
__test__.jsonc perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
a.ts feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00
deno.json feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00
deno_exclude.json feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00
lint.out feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00
lint_exclude.out feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00
lint_fixed.out feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00
plugin.ts feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00