> ## Documentation Index
> Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Auto-Instrumentation [BETA]

> Portkey's auto-instrumentation allows you to instrument tracing and logging for multiple LLM/Agent frameworks and view the logs, traces, and metrics in a single place.

<Warning>
  This feature is currently in beta. We're rolling out support for more frameworks and will also be exposing the otel collector endpoint to view the traces and logs.
</Warning>

## Overview

There's two main components to auto-instrumentation:

1. The Portkey SDK, which can be used for tracing along with being used as a unified API gateway.
2. The Portkey dashboard, which can be used to view the logs, traces, and metrics.

## Portkey SDK

Using portkey for auto-instrumentation is fairly straightforward. A one line addition at the top of your code execution will start sending traces and logs to Portkey.

```python theme={"system"}
from portkey import Portkey

Portkey(api_key="{{PORTKEY_API_KEY}}", instrumentation=True)
```

## Portkey Dashboard

The Portkey dashboard can be used to view the logs, traces, and metrics.

<img src="https://mintcdn.com/portkey-docs/Buc1Vm2P31GSPm3S/images/product/opentelemetry.png?fit=max&auto=format&n=Buc1Vm2P31GSPm3S&q=85&s=bc982b581d5ce60764d207b004b4677f" alt="Portkey dashboard auto-instrumentation image" width="2860" height="2087" data-path="images/product/opentelemetry.png" />

## Supported Frameworks

We currently support auto-instrumentation for the following frameworks:

* [CrewAI](/docs/integrations/agents/crewai#auto-instrumentation)
* [LangGraph](/docs/integrations/agents/langgraph#auto-instrumentation)

<Note>
  To request support for another framework, please reach out to us via [Portkey support](https://support.portkey.ai/forms/customer-portal-ticket-form).
</Note>

***

<Card title="Portkey is now PRISMA AIRS AI Gateway. See it in action." href="https://www.paloaltonetworks.in/ai-security/ai-gateway?utm_source=portkey&utm_medium=referral&utm_campaign=prisma_airs&utm_content=docs_nav#contact" icon="arrow-up-right-from-square">
  Contact Us
</Card>


## Related topics

- [OpenTelemetry for LLM Observability](/docs/product/observability/opentelemetry.md)
- [August](/docs/changelog/2025/august.md)
- [February](/docs/changelog/2025/feb.md)
- [Beta Features](/docs/product/ai-gateway/beta-features.md)
- [gRPC (Beta)](/docs/product/ai-gateway/grpc.md)
