-
Notifications
You must be signed in to change notification settings - Fork 698
Docs: describe diagnostics collection #19007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Docs: describe diagnostics collection #19007
Conversation
🟢 |
|
||
Опция `--diagnostics-file <path_to_diagnostics>` позволяет сохранять расширенную информацию о выполнении SQL-запросов в отдельный JSON-файл. | ||
|
||
Диагностика формируется при сборе статистики (`--stats full` или `--stats profile`), а также при выполнении `EXPLAIN`-запросов. Для каждого запроса будет создан файл `<path_to_diagnostics>.json` со следующими полями: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Для каждого запроса - откуда их несколько возникает?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Для каждого запроса который ты выполняешь через ydb sql
✅ Documentation buildRevision built successfully |
🔄 New commits pushed — @ElenaAfina please take a look. |
✅ Documentation buildRevision built successfully |
🔄 New commits pushed — @ElenaAfina please take a look. |
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
🔄 New commits pushed — @ElenaAfina please take a look. |
> **Важно:** | ||
> Файл диагностики может содержать конфиденциальные данные в полях **`meta.query_text`**, **`plan`** и **`ast`**. Перед передачей такого файла сторонним лицам (например, в техническую поддержку) рекомендуется вручную просмотреть и отредактировать содержимое файла, чтобы удалить или заменить чувствительную информацию. | ||
|
||
**Пример запроса с чувствительной информацией:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
сейчас сформулированно странно.
я бы так не писал, ты важность этого подчернул выше. зачем это дублировать и подчеркивать непонятно.
я бы написал например так
Например, чтобы собрать диагностику в файл somefilename.json
и проверить содержимое диагностического по выполнению запроса, выполните команду
..
Чтобы прочитать ast запроса выполните команду и через инструмент jq получите доступ к ast.
Что то похожее нужно и для explain , при этом в тексте нужно подчеркнуть, что вы хотите собрать диагностику относительно плана для запроса, но при этом не хотите его выполнять нужно выполнить команду.
✅ Documentation buildRevision built successfully Build logsWarnings (16)Log was truncated. (1 records) |
⚪ Test history | Ya make output | Test bloat
🟢 |
🔄 New commits pushed — @ElenaAfina please take a look. |
⚪ Test history | Ya make output | Test bloat
🟢 |
✅ Documentation buildRevision built successfully |
Co-authored-by: Ivan Blinkov <ivan@blinkov.ru>
🔄 New commits pushed — @ElenaAfina please take a look. |
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
✅ Documentation buildRevision built successfully |
⚪ Test history | Ya make output | Test bloat
🟢 |
✅ Documentation buildRevision built successfully |
🔄 New commits pushed — @ElenaAfina please take a look. |
⚪ Test history | Ya make output | Test bloat
🟢 |
🔄 New commits pushed — @ElenaAfina please take a look. |
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
🔄 New commits pushed — @ElenaAfina please take a look. |
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
Hey @ElenaAfina, it has been 53 business-hours since the author's last update, could you please review? |
🔄 New commits pushed — @ElenaAfina please take a look. |
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
✅ Documentation buildRevision built successfully |
Hey @ElenaAfina, it has been 83 business-hours since the author's last update, could you please review? |
Hey @ElenaAfina, it has been 113 business-hours since the author's last update, could you please review? |
Hey @ElenaAfina, it has been 143 business-hours since the author's last update, could you please review? |
@shnikd - тут осталось замечание о том, что надо указать, какая статистика будет собрана и выгружена в поле stats, и в каких единицах - так что тут надо доделать, пока ревью не пройдено до конца |
Changelog entry
Changelog category
Description for reviewers
Docs for:
Issues: