Skip to main content
This guide provides instructions for integrating CoreWeave Weave with the TrueFoundry AI Gateway to export OpenTelemetry traces.

What is CoreWeave Weave?

CoreWeave Weave (formerly Weights & Biases Weave) is a managed observability platform purpose-built for GenAI applications. It ingests OpenTelemetry traces over HTTP, parses GenAI semantic-convention attributes, and renders LLM calls, evaluations, and agent traces in a UI tuned for prompt-and-response workflows.

Key Features of CoreWeave Weave

  • OTLP trace ingestion: Accepts OpenTelemetry traces over HTTP protobuf at a single hosted endpoint, with project routing controlled by headers.
  • LLM-aware trace UI: Visualizes multi-turn conversations, tool calls, token usage, and latencies from gen_ai.* semantic-convention spans.
  • Evaluations and Datasets: Run scoring functions against logged traces and compare model variants side by side.

Prerequisites

Before integrating CoreWeave Weave with TrueFoundry, ensure you have:
  1. TrueFoundry Account: Create a TrueFoundry account and follow the instructions in our Gateway Quick Start Guide.
  2. CoreWeave Weave Account: Sign up at wandb.ai and create at least one project. You will need an entity (team or user slug) and a project name.
  3. W&B API Key: Generate a personal API key at wandb.ai/authorize.

Understanding the CoreWeave Weave Endpoint

CoreWeave Weave exposes a single OTLP/HTTP trace endpoint that varies by deployment type.
DeploymentTraces Endpoint
SaaS (Multi-tenant Cloud)https://trace.wandb.ai/otel/v1/traces
Dedicated / Self-Managedhttps://<your-subdomain>.wandb.io/otel/v1/traces
Routing of spans to your Weave project is controlled by a project_id header in the form <entity>/<project>. The entity is your W&B team or user slug; the project is the workspace within that entity where traces should appear.
CoreWeave Weave does not accept OTLP metrics — only traces are supported via this endpoint.

Integration Steps

TrueFoundry AI Gateway supports exporting OpenTelemetry traces to CoreWeave Weave, allowing you to monitor and analyze your LLM requests in Weave’s observability platform.
1

Get your W&B API Key

  1. Sign in to wandb.ai and navigate to wandb.ai/authorize.
  2. Copy the API key shown on the page. This is your wandb-api-key value.
W&B authorize page showing the API key for OTEL export
Treat this key like a password — anyone with it can write traces to any project your account can access.
2

Identify your entity and project

  1. In the Weave UI, open the project you want traces to land in.
  2. The URL is of the form https://wandb.ai/<entity>/<project>/... — copy the entity and project slugs.
  3. Combine them as <entity>/<project> — this is your project_id header value.
Weave project page showing the entity/project slug in the URL
3

Configure OTEL Export in TrueFoundry

  1. Go to AI GatewayControlsSettings in the TrueFoundry dashboard.
  2. Scroll down to the OTEL Config section and click the edit button.
TrueFoundry AI Gateway Settings page showing the OTEL Config section
  1. Enable the OTEL Traces Exporter Configuration toggle.
  2. Select HTTP Configuration.
  3. Enter the CoreWeave Weave traces endpoint: https://trace.wandb.ai/otel/v1/traces
  4. Set Encoding to Proto.
  5. Add the required headers:
HeaderValue
wandb-api-keyYour W&B API key from Step 1
project_id<your-entity>/<your-project> from Step 2
  1. Click Save to apply the configuration.
TrueFoundry OTEL Traces Exporter Configuration filled in for CoreWeave Weave
CoreWeave Weave does not accept OTLP metrics. Leave the OTEL Metrics Exporter Configuration toggle disabled, or point it at a separate metrics backend (Prometheus, Datadog, Grafana Cloud) if you need gateway metrics.
Weave also accepts Basic auth as an alternative to the wandb-api-key header: set the header key to Authorization and the value to Basic followed by the base64 encoding of the literal string api:<your-wandb-api-key>. The wandb-api-key header is simpler and is recommended.
4

Verify the Integration

  1. Make a request through the TrueFoundry AI Gateway, for example a chat completion to any configured model.
  2. Log into your CoreWeave Weave dashboard and navigate to the Traces section of your project.
  3. Confirm a trace from service.name: tfy-llm-gateway appears, with attributes such as tfy.span_type, gen_ai.request.model, gen_ai.usage.prompt_tokens, and gen_ai.usage.completion_tokens.
CoreWeave Weave traces page showing LLM call traces from TrueFoundry AI Gateway

Configuration Reference

ConfigurationValue
Traces Endpoint (SaaS)https://trace.wandb.ai/otel/v1/traces
Traces Endpoint (Dedicated)https://<your-subdomain>.wandb.io/otel/v1/traces
ProtocolHTTP
EncodingProto
Auth Header Keywandb-api-key
Auth Header ValueYour W&B API key from wandb.ai/authorize
Project Header Keyproject_id
Project Header Value<your-entity>/<your-project>
MetricsNot supported — only traces are accepted