0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-04 09:57:11 -05:00
deno/tests
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
..
config chore: use @std prefix for internal module specifiers (#24543) 2024-07-25 10:26:54 +10:00
ffi chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
integration fix(lsp): include description for auto-import completions (#28088) 2025-02-12 15:59:18 +00:00
napi fix(ext/napi): napi_is_buffer tests for ArrayBufferView (#27956) 2025-02-04 14:30:40 +00:00
node_compat test: clean up node_compat test runner (#28028) 2025-02-11 14:00:38 +09:00
registry feat: TypeScript 5.7 (#27857) 2025-01-31 16:07:42 -05:00
specs perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
testdata refactor: object wrap WebGPU (#27665) 2025-02-12 13:45:41 +00:00
unit fix: do special file permission check for check_read_path (#27989) 2025-02-12 15:46:21 +00:00
unit_node fix(ext/node): DatabaseSync#exec should execute batch statements (#28053) 2025-02-11 19:52:33 +05:30
util refactor(lsp): remove Send + Sync requirement (#28035) 2025-02-12 13:37:47 +00:00
wpt fix(ext/crypto): export private x25519 JWK key (#27828) 2025-01-27 22:25:00 +05:30
Cargo.toml ci(lsp): timeout tests after 5 minutes (#28036) 2025-02-10 16:15:43 +00:00
lib.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
README.md chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00

Deno Integration Tests