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

# Claude Cowork Integration

> Ingest Claude Cowork's OpenTelemetry log events into Fiddler by converting them to single-span traces, enabling observability for agents that emit OTel Logs instead of OTel Traces.

## Overview

[Claude Cowork](https://claude.com/docs/cowork/overview) is Anthropic's agent product built on the Claude Code instrumentation. Unlike Claude Code, whose primary telemetry signal is OTel Traces (see [Claude Code Monitoring: Built-In](https://docs.fiddler.ai/integrations/agentic-ai/claude-code-integration.md)), Cowork's primary telemetry signal is **OTel Log Records**, exported over the standard OTLP `/v1/logs` endpoint. Cowork does support OTel Trace export, but it is beta, off by default, and not yet the signal most Cowork deployments use.

Fiddler accepts these OTel Log Records and converts each one into a single-span trace, so Cowork sessions flow through Fiddler's existing GenAI trace pipeline — enrichment, evaluators, dashboards, and alerting all work without any downstream changes.

> [!NOTE]
>
> This capability is currently in [private preview](https://docs.fiddler.ai/reference/feature-maturity-definitions.md#private-preview) and is not yet available to all customers. Contact your Fiddler Customer Success Manager to request access.

Unlike most private previews, Claude Cowork log ingestion is **not planned for promotion to public preview or general availability**. It is a stopgap for agents that have not yet adopted OTel Traces: when Cowork's trace export graduates from beta, migrate to direct trace ingestion instead. The feature is not enabled by default — Fiddler turns it on per customer — and it carries no SLA or SLO. Attribute mappings and behavior may change without notice.

| Capability | Support |
| - | - |
| Log-to-trace conversion | ✅ Every OTel Log Record becomes a single-span trace |
| Prompt-turn correlation | ✅ Best-effort, via `prompt.id` |
| Session correlation | ✅ Via `session.id` |
| Attribute fidelity | ✅ Attributes preserved verbatim on the resulting span |
| Span type classification | ✅ For the six documented event types; other event types are classified as generic spans |

***

## How It Works

Cowork emits one structured log event per step of an agent interaction — a user prompt, an LLM call, a tool result, and so on. These events share a `prompt.id` attribute that Fiddler uses to best-effort correlate them into a single trace, with the `user_prompt` event as the root span.

### Cowork setup

To enable OTel log export on Cowork, configure the following in **Organization settings > Cowork** in the Claude desktop app (see Anthropic's [Cowork Monitoring setup guide](https://claude.com/docs/cowork/monitoring#setup)):

| Field | Value |
| - | - |
| **OTLP endpoint** | `https://<your-fiddler-url>` |
| **OTLP protocol** | `http/protobuf` |
| **OTLP headers** | `fiddler-application-id=<your-application-id>,Authorization=Bearer <your-api-key>` |
| **Resource attributes** | `application.id=<your-application-id>` |

Replace `<your-fiddler-url>` with your Fiddler organization URL, `<your-application-id>` with the ID of your Fiddler GenAI application, and `<your-api-key>` with your Fiddler API key.

Each event is also classified into a Fiddler span type where known (see [Event and Span Type Mapping](#event-and-span-type-mapping)), and all log attributes are preserved on the resulting span. Cowork's native attribute names (`session.id`, `model`, `input_tokens`, `tool_name`, and others) are automatically recognized by Fiddler, so Cowork sessions appear alongside data from other frameworks without manual configuration.

***

## Event and Span Type Mapping

Cowork emits several structured event types. Fiddler classifies the six documented event types as follows; all other event types (including any future or currently undocumented Cowork event) are still converted to spans, but without a Fiddler span-type classification.

| Cowork Event | Fiddler Span Type | Description |
| - | - | - |
| `user_prompt` | `agent` | Root span for a prompt turn. Contains the user's message and prompt length. |
| `api_request` | `llm` | An LLM API call: model, token counts, cost, and duration. |
| `api_error` | `llm` | An LLM API call that failed: error details and status codes. |
| `tool_result` | `tool` | A tool invocation result: tool name, success/failure, duration, and parameters. |
| `tool_decision` | `span` | A permission decision on a tool invocation. |
| `assistant_response` | `span` | The model's response: response text and model name. |

***

## Correlation and Session Grouping

### Prompt-turn correlation

All log events from a single prompt turn share a `prompt.id` attribute. Fiddler uses it to derive the trace and span IDs, so all events in a turn land in one trace with `user_prompt` as the root.

> [!WARNING]
>
> This correlation is **best-effort**. It depends entirely on Cowork emitting `prompt.id` — there is no windowed aggregation or stateful join to recover correlation when the attribute is missing. A record without `prompt.id` still becomes a span (it is not dropped), but as an isolated single-span trace that cannot be linked to the rest of its prompt turn.

Events that share both a `prompt.id` and an event name (for example, two `api_request` calls in the same turn) are still assigned distinct, deterministic span IDs, so retried or redelivered log events always resolve to the same span rather than creating duplicates.

### Session correlation

Cowork assigns a `session.id` to each interactive session. This attribute is preserved verbatim on every span and resolved by Fiddler's semantic-name-mapping layer the same way it is for other frameworks, enabling session-level grouping across prompt turns in the Fiddler UI.

***

## Known Limitations

Claude Cowork's OTel log-based telemetry has several characteristics that shape what's available in Fiddler today:

### Correlation is best-effort, not guaranteed

If Cowork omits `prompt.id` on a record, that record cannot be joined with the rest of its prompt turn and appears as its own isolated single-span trace. There is no retry or backfill mechanism for missing correlation attributes.

**Impact:** Sessions with intermittent `prompt.id` gaps may show fragmented, single-event traces alongside fully-correlated ones.

### No agent name emitted by Cowork

Unlike Claude Code, Cowork does not emit a `gen_ai.agent.name` (or equivalent) attribute. Fiddler defaults every Cowork span's agent name to `cowork` so spans aren't left unnamed in agent-level views.

***

## Related Documentation

* [Claude Code Monitoring: Built-In](https://docs.fiddler.ai/integrations/agentic-ai/claude-code-integration.md) — Native OTel trace ingestion for Claude Code
* [OpenTelemetry Quick Start](https://docs.fiddler.ai/developers/quick-starts/opentelemetry-quick-start.md) (Documentation tab) — Manual OTel instrumentation for custom frameworks
* [S3 Trace Ingestion](https://docs.fiddler.ai/integrations/agentic-ai/s3-trace-ingestion.md) — Batch OTLP trace file ingestion
