---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://ydb.tech/docs/en/recipes/ydb-sdk/debug.md
  - https://ydb.tech/docs/ru/reference/ydb-sdk/observability.md
sourcePath: en/core/recipes/ydb-sdk/debug.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# Troubleshooting

When troubleshooting issues with YDB, diagnostics tools such as logging, metrics, and distributed tracing are helpful. We strongly recommend that you enable them in advance, before any problems occur, to see the full picture of the system's state before, during, and after a failure when investigating an incident.

This section contains code recipes for enabling diagnostics tools in different YDB SDKs.

Table of contents:

- [Enable logging](https://ydb.tech/docs/en/recipes/ydb-sdk/debug-logs.md)
- [Enable metrics in Prometheus](https://ydb.tech/docs/en/recipes/ydb-sdk/debug-prometheus.md)
- [Enable tracing in OpenTelemetry](https://ydb.tech/docs/en/recipes/ydb-sdk/debug-otel.md)
- [Enable tracing in Jaeger](https://ydb.tech/docs/en/recipes/ydb-sdk/debug-jaeger.md)
