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

# omp

> Send the OpenTelemetry data of omp to Cloud Uplink or a Self-Hosted Uplink instance.

omp exports OpenTelemetry traces, logs, and metrics through the standard OpenTelemetry environment variables.

## Settings

The **Harness Setup** card on **Settings > Uplink > Publishing Keys** shows these settings. omp reads only environment variables, so `agentgolf harness setup omp` prints the same `export` lines and writes no file. Load them only in the shell that starts omp. See [Keep the key out of shared shells](#keep-the-key-out-of-shared-shells) and [Set up with the CLI](https://docs.agent.golf/harnesses/overview.md#set-up-with-the-cli). To copy them by hand, replace:

* `<endpoint>` with `https://uplink.agent.golf` for Cloud Uplink, or with the listener of your Self-Hosted Uplink instance, for example `http://127.0.0.1:4318`.
* `<publishing-key>` with your personal publishing key. See [Publishing keys](https://docs.agent.golf/harnesses/overview.md#publishing-keys).

```bash theme={null}
export OTEL_EXPORTER_OTLP_PROTOCOL='http/protobuf'
export OTEL_EXPORTER_OTLP_LOGS_ENDPOINT='<endpoint>/v1/logs'
export OTEL_EXPORTER_OTLP_METRICS_ENDPOINT='<endpoint>/v1/metrics'
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT='<endpoint>/v1/traces'
export OTEL_EXPORTER_OTLP_HEADERS='x-agentgolf-publishing-key=<publishing-key>'
export OTEL_TRACES_EXPORTER='otlp'
export OTEL_LOGS_EXPORTER='otlp'
export OTEL_METRICS_EXPORTER='otlp'
export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT='true'
omp
```

* Use `http/protobuf`. A Self-Hosted Uplink instance with its gRPC listener on also accepts `grpc` on port 4317. Cloud Uplink also accepts `grpc` at `https://uplink.agent.golf`. See [Protocol](https://docs.agent.golf/harnesses/overview.md#manual-setup-requirements).
* Each per-signal endpoint includes the full signal path: `/v1/logs`, `/v1/metrics`, or `/v1/traces`.
* omp sends no email or account ID of its user. Agent Golf links its sessions to you through your publishing key, as for every harness.

Keep the default service name and settings of omp. Leave `OTEL_SERVICE_NAME` unset.

### Keep the key out of shared shells

The `export` lines hold your publishing key. Do not add them to a shell profile that every shell loads, for example `~/.bashrc` or `~/.zshrc`:

* Each program that you start from such a shell gets the key.
* The lines turn on content capture with `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT`. GitHub Copilot reads the same variable, so a Copilot session that starts from that shell also captures content. See [GitHub Copilot session content](https://docs.agent.golf/harnesses/copilot.md#session-content).

Save the `export` lines in a file that only you can read, for example `~/.config/agentgolf/omp.env`. Then start omp in a subshell that loads the file:

```bash theme={null}
chmod 600 ~/.config/agentgolf/omp.env
(. ~/.config/agentgolf/omp.env && exec omp)
```

## Session content

By default, omp sends no message content, tool arguments, or tool results. `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true` includes them. The settings above turn it on. Remove it where your policy does not allow the uplink instance to receive that content.

| Content capture | Session data |
| - | - |
| Off | Models, token counts, timings, tool names, and tool outcomes. |
| On | Also the input and output messages of model requests, the tool arguments, and the tool results. |

With content capture off, Agent Golf links fewer sessions to pull requests automatically. See [Session content](https://docs.agent.golf/harnesses/overview.md#session-content).

## Verify the setup

* Start `omp` and send a prompt. Then do the checks in [Verify the setup](https://docs.agent.golf/harnesses/overview.md#verify-the-setup).
* If Uplink receives no requests, confirm that the endpoint variables are set in the environment of `omp`, and that the protocol is `http/protobuf`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.