---
title: "Export Trace"
method: POST
path: "/otel/v1/trace"
tags: ["OpenTelemetry"]
---

# Export Trace

`POST /otel/v1/trace`

## Request body

- OtelExportReq
  - `project_id` string, required
  - `traces` unknown, required
  - `wb_run_id` string, nullable
  - `wb_user_id` string, nullable — Do not set directly. Server will automatically populate this field.

## Response `200`

Successful Response

- OtelExportRes
  - `partial_success` ExportTracePartialSuccess
    - `rejected_spans` integer, required
    - `error_message` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2025-11-05** `f4a10b6a2e6d` — 1 info
  - added the new optional request property `wb_run_id`

[Change history](https://skmtc.dev/wandb/apis/fastapi/changes/otel/v1/trace/post.md)

---

[API](https://skmtc.dev/wandb/apis/fastapi.md) · [All operations](https://skmtc.dev/wandb/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wandb/fastapi/revisions/148dfd663d45/schema)
