For the complete documentation index, see llms.txt. This page is also available as Markdown.

Open Telemetry (OTel)

We currently accept Open Telemetry metrics from Claude Code and Codex. Other tools coming soon.

What is OTel?

OTel is an open-source, vendor-neutral standard for generating, collecting, and exporting telemetry data such as metrics, logs, and traces. Multitudes uses OpenTelemetry to receive your AI tooling usage data. For more on OpenTelemetry, see the official documentation.

How it works

What metrics we can ingest and process

We can ingest and process OTel data for:

If you're on the Claude Code API or Enterprise plan, head to our docs here: Claude Code.

If you'd like to bring in Open Telemetry data from other AI tools besides Claude Code or Codex, let us know at support@multitudes.com.

Integration options

We can ingest OTel metrics in two different ways:

1. Multitudes-hosted collector

Claude Code and Codex users send metrics directly to the Multitudes Open Telemetry collector running in Multitudes infrastructure. This avoids having to host a collector in your own infrastructure.

To do this, follow steps here: Multitudes-hosted collector. Or jump to specific instructions for:

2. Self-hosted collector

You either run your own collector or the Multitudes Open Telemetry collector in your infrastructure. The collector ingests metrics from Claude Code and Codex users and forwards them to Multitudes. To do this, follow the steps below: Self-hosted collector

Multitudes-hosted collector

When using the Multitudes-hosted collector, each user sends their telemetry data directly to the Multitudes endpoint. For this, each user needs a configuration file that specifies the endpoint to use and an Authorization header.

Apply the following configuration to each user's machine:

You can also do this centrally via Claude server-managed settings

Head to Admin Settings > Claude Code > Managed settings in the claude.ai console. Claude Code clients fetch these settings automatically, so you can define the config once and it will be provisioned to each user.

For more information, consult the Claude docs.

For Claude Code:

  1. Open the ~/.claude/settings.json .

  2. Add the following lines, using an API key that has been generated (following the instructions below):

The Authorization header can be an Organization API key if you are provisioning this file via MDM and want to use the same key across multiple users. If you would prefer that each user has their own key, they can create a Personal API key and update their ~/.claude/settings.json file.

AWS Bedrock: when using Bedrock the user.email attribute must be configured manually via the OTEL_RESOURCE_ATTRIBUTES environment variable. This is because Bedrock authentication does not automatically provide user email information. Each user will need to add their work email address (or whichever email is associated with their user in Multitudes):

For Codex:

  1. Open the ~/.codex/config.toml.

  2. Add the following lines:

  1. Each user should either generate a personal API key or have an organization API key.

  2. Replace <replace with your api key> with your actual API key. Restart any sessions you might have in Codex.

  3. Set OTEL_RESOURCE_ATTRIBUTES="user.email=developer@company.com" as an environment variable in the shell that launches Codex. Codex telemetry contains no user identifier, so it must be configured for each user. Codex will read this environment variable on startup.

Setting the OTEL_RESOURCE_ATTRIBUTES environment variable:

The easiest way to set OTEL_RESOURCE_ATTRIBUTES is generally to add it to your shell startup file (~/.zshrc , ~/.bashrc, etc). Add the following line to the relevant file:

Codex will read this value on startup. If it is missing or incorectly configured, Codex will still send telemetry data however we will not be able to attribute it to the correct user, meaning their usage metrics will be undercounted.

Self-hosted collector

When using the self-hosted collector, each user sends their telemetry data to a collector run in your infrastructure, from which aggregated metrics are sent to Multitudes.

Running the collector

  1. Set up the Multitudes OTel Collector. Detailed instructions can be found here.

Sending from an existing collector

  1. If you have an existing collector, update your config to add an exporter that sends to the Multitudes ingestion endpoint. The main sections to configure are in exporters , processors, and service.

  2. Add a new otlphttp/multitudes exporter

  1. Add the new otlphttp/multitudes to your existing metrics and logs pipelines:

  1. Follow the instructions below to generate an Organization API key and run the collector using this key.

Sending data to the collector

Apply the following configuration to each user's machine:

AWS Bedrock: when using Bedrock the user.email attribute must be configured manually via the OTEL_RESOURCE_ATTRIBUTES environment variable. This is because Bedrock authentication does not automatically provide user email information. Each user will need to add their work email address (or whichever email is associated with their user in Multitudes):

Checking data ingestion status

Once you are sending data to Multitudes, either directly or via the self-hosted option, you can check the ingestion status in the Multitudes app, Open the OpenTelemetry integration modal to check whether your data is coming through.

Once data is being received successfully, your Claude usage metrics will appear in Multitudes after our batch processing pipeline runs. Our pipeline runs daily, so in most cases you should expect to see metrics populate in the Multitudes App within up to one day of sending data.

Last updated

Was this helpful?