0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-05 18:37:20 -05:00
deno/tests/specs/lint
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
..
all chore: deprecate lint itests (#25655) 2024-09-16 17:45:25 +00:00
bom fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
compact chore: deprecate lint itests (#25655) 2024-09-16 17:45:25 +00:00
default_ts fix: don't include extensionless files in file collection for lint & fmt by default (#25721) 2024-09-19 11:25:48 +02:00
gitignore fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
glob chore: deprecate lint itests (#25655) 2024-09-16 17:45:25 +00:00
ignore chore: deprecate lint itests (#25655) 2024-09-16 17:45:25 +00:00
ignore_unexplicit_files chore: deprecate lint itests (#25655) 2024-09-16 17:45:25 +00:00
json feat(lint): Add checked files list to the JSON output(#26936) 2024-11-20 20:59:43 +01:00
jsr_pkg_no_version fix(lint): support linting jsr pkg without version field (#25230) 2024-08-30 18:05:44 -04:00
jsr_tag fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
jsx fix(check): compiler options from workspace members (#27785) 2025-01-28 10:49:58 -05:00
lint_fix feat(lint): deno lint --fix and lsp quick fixes (#22615) 2024-03-21 14:18:59 -07:00
lint_plugin perf(lsp): add built-in tracing support for the LSP (#27843) 2025-02-12 08:40:40 -08:00
lint_plugin_fix_error feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00
lint_plugin_infinite_edits fix(lint): don't show docs URLs for plugins (#28033) 2025-02-10 17:32:31 +01:00
lint_plugin_lifecycle feat(unstable): add test for lint plugin destroy hook (#27981) 2025-02-06 14:04:04 +01:00
lint_plugin_multiple_fixes feat(unstable): support multiple fixes from lint plugins (#28040) 2025-02-11 15:24:28 +01:00
lint_plugin_runtime_api fix(lint): Deno.lint.runPlugin throws in deno run (#28063) 2025-02-12 09:18:55 +00:00
lint_plugin_utf16 fix(lint): don't show docs URLs for plugins (#28033) 2025-02-10 17:32:31 +01:00
no_slow_types chore(lint): add .out file reference checker (#27078) 2024-11-26 20:53:20 -08:00
no_slow_types_workspace feat: npm workspace and better Deno workspace support (#24334) 2024-07-04 00:54:33 +00:00
node_globals_no_duplicate_imports fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
opt_out_top_level_exclude_via_lint_inexclude fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
quiet fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
rules chore: deprecate lint itests (#25655) 2024-09-16 17:45:25 +00:00
rules_quiet chore: deprecate lint itests (#25655) 2024-09-16 17:45:25 +00:00
sloppy_imports_dts fix(unstable): move sloppy-import warnings to lint rule (#24710) 2024-07-25 09:07:59 -04:00
sloppy_imports_no_incremental_cache fix(unstable): move sloppy-import warnings to lint rule (#24710) 2024-07-25 09:07:59 -04:00
stdin fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
stdin_json feat(lint): Add checked files list to the JSON output(#26936) 2024-11-20 20:59:43 +01:00
syntax_error_reporting fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
with_config fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
with_config_and_flags fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
with_config_without_args fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
with_glob_config fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
with_glob_config_and_flags fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
with_malformed_config refactor: deno_config 0.45 (#27660) 2025-01-14 13:00:31 +01:00
with_malformed_config2 refactor: deno_config 0.45 (#27660) 2025-01-14 13:00:31 +01:00
with_report_config chore: deprecate lint itests (#25655) 2024-09-16 17:45:25 +00:00
with_report_config_override feat(lint): Add checked files list to the JSON output(#26936) 2024-11-20 20:59:43 +01:00
workspace fix(lint): update jsx/react related rules and names (#27836) 2025-01-27 16:54:35 +00:00
workspace_no_slow_types feat: npm workspace and better Deno workspace support (#24334) 2024-07-04 00:54:33 +00:00