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

# Langfuse Integration

> Langfuse integration API reference for the Galtea SDK

The Langfuse integration module provides drop-in replacements for Langfuse's tracing APIs that send traces to both Langfuse and Galtea.

```python theme={"system"}
from galtea.integrations.langfuse import CallbackHandler
from galtea.integrations.langfuse import observe
from galtea.integrations.langfuse import start_as_current_observation
```

<Info>
  For setup instructions and usage patterns, see the [Langfuse Integration overview](/sdk/integrations/langfuse/overview).
</Info>

## APIs

### Decorator API

* [observe](/sdk/api/langfuse/observe) — Drop-in replacement for `langfuse.observe`. Wraps a function with Langfuse's `@observe` and adds optional `inference_result_id` linking.

### Context Manager API

* [start\_as\_current\_observation](/sdk/api/langfuse/start-as-current-observation) — Drop-in replacement for `langfuse.Langfuse.start_as_current_observation`. Creates a root observation with optional `inference_result_id` linking.

### LangChain Callback API

* [CallbackHandler](/sdk/api/langfuse/callback-handler) — Drop-in replacement for `langfuse.langchain.CallbackHandler`. Automatically manages `inference_result_id` context around LangChain callback lifecycles.
