0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-04 18:12:59 -05:00
deno/cli/lsp
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
..
testing refactor: create deno_lib crate (#27673) 2025-01-15 09:35:46 -05:00
analysis.rs perf(lsp): cancellation checks in blocking code (#27997) 2025-02-10 11:52:31 +01:00
cache.rs refactor: add WorkspaceFactory and ResolverFactory (#27766) 2025-01-23 18:52:55 -05:00
capabilities.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
client.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
code_lens.rs perf(lsp): cancellation checks in blocking code (#27997) 2025-02-10 11:52:31 +01:00
completions.rs perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
config.rs perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
diagnostics.rs perf(lsp): cancellation checks in blocking code (#27997) 2025-02-10 11:52:31 +01:00
documents.rs perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
jsr.rs refactor(lsp): remove Send + Sync requirement (#28035) 2025-02-12 13:37:47 +00:00
language_server.rs perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
logging.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
lsp_custom.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
mod.rs perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
npm.rs refactor(lsp): remove Send + Sync requirement (#28035) 2025-02-12 13:37:47 +00:00
parent_process_checker.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
path_to_regex.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
performance.rs refactor(lsp): remove Send + Sync requirement (#28035) 2025-02-12 13:37:47 +00:00
README.md docs: fix broken deno manual link (#20667) 2023-09-25 14:09:27 +02:00
refactor.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
registries.rs perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
repl.rs perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
resolver.rs refactor(lsp): remove Send + Sync requirement (#28035) 2025-02-12 13:37:47 +00:00
search.rs refactor(lsp): remove Send + Sync requirement (#28035) 2025-02-12 13:37:47 +00:00
semantic_tokens.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
text.rs refactor: extract out utf16 map from lsp to cli::util module (#27950) 2025-02-03 20:24:26 -05:00
trace.rs perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
tsc.rs perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
urls.rs refactor: use DataUrl from deno_media_type (#27783) 2025-01-22 20:35:16 +00:00

Deno Language Server

The Deno Language Server provides a server implementation of the Language Server Protocol which is specifically tailored to provide a Deno view of code. It is integrated into the command line and can be started via the lsp sub-command.

This documentation has been moved to the Deno manual.