0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-04 18:12:59 -05:00
deno/cli/lib
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
..
npm refactor: move denort to separate crate (#27688) 2025-01-17 20:39:29 +00:00
standalone fix(check): support sloppy imports with "compilerOptions.rootDirs" (#27973) 2025-02-05 23:08:10 +00:00
util perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
args.rs fix(cli): Fix panic in load_native_certs (#27863) 2025-01-31 18:29:37 +05:30
build.rs chore: fix canary version (#27723) 2025-01-19 11:19:47 +01:00
Cargo.toml chore: forward v2.1.9 release commit to main (#27888) 2025-01-31 03:02:00 +01:00
clippy.toml refactor: move denort to separate crate (#27688) 2025-01-17 20:39:29 +00:00
lib.rs refactor: move denort to separate crate (#27688) 2025-01-17 20:39:29 +00:00
loader.rs fix(node): align type stripping in node_modules error message with Node (#27809) 2025-01-24 13:05:04 -05:00
README.md refactor: create deno_lib crate (#27673) 2025-01-15 09:35:46 -05:00
shared.rs refactor: move denort to separate crate (#27688) 2025-01-17 20:39:29 +00:00
sys.rs refactor: create deno_lib crate (#27673) 2025-01-15 09:35:46 -05:00
version.rs feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
version.txt chore: forward v2.1.9 release commit to main (#27888) 2025-01-31 03:02:00 +01:00
worker.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00

deno_lib

This crate contains the shared code between the Deno CLI and denort. It is highly unstable.