> For the complete documentation index, see [llms.txt](https://pedal.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pedal.gitbook.io/docs/common-issues/diagnostics.md).

# Advanced Diagnostics

Use advanced tools to trace and profile PEDAL for deep troubleshooting.

## Tracing

* Integrate with OpenTelemetry for distributed tracing (roadmap)
* Trace workflow execution across services

## Profiling

* Use Python cProfile to analyze performance
* Add FastAPI middleware for request profiling

## Example: FastAPI Profiling Middleware

```python
from fastapi_profiler import ProfilerMiddleware
app.add_middleware(ProfilerMiddleware)
```

***

> For getting help, see [Getting Help](/docs/common-issues/getting-help.md)
