Technology
goose
Connect goose to your telemetry data on Dash0 through the remote MCP server, and send the agent's own OpenTelemetry traces, metrics, and logs back to Dash0.
Overview
goose
goose is an open source coding agent hosted under the Agentic AI Foundation. It runs in your terminal, calls tools, edits files, and speaks the Model Context Protocol. With native support for remote MCP servers, goose can access your telemetry data on Dash0 to enhance its coding and problem-solving capabilities.
goose also links the OpenTelemetry SDK, so it reports on itself. Pointing that telemetry at Dash0 shows you what the agent did, how long the model took, and how many tokens each session consumed.
Use Cases
- Telemetry-aware coding: goose can identify issues and performance bottlenecks in your cloud infrastructure and address them directly in the codebase.
- Incident-to-code correlation: goose can analyze your application code and latest commits and correlate them with logs, traces and metrics to provide deeper root-cause analysis.
- Monitor the agent itself: Track session duration, token usage, and tool calls to understand where time and spend go across your agent runs.
Setup
Overview
goose connects to Dash0 in two directions. Our remote MCP server lets goose read your telemetry data, navigate and analyze it, while leveraging the same capabilities that human users have access to in the UI. Separately, goose emits OpenTelemetry data about its own sessions, which you can send to Dash0 to see what the agent did and what it cost.
Set up whichever direction you need. They are independent.
Prerequisites
- goose installed. Version 1.46.0 or later is required for the GenAI semantic convention attributes described below.
- A Dash0 auth token.
- Your MCP and OTLP endpoint URLs, both visible under Settings → Endpoints in Dash0.
Connect goose to the Dash0 MCP server
The Dash0 MCP server supports two authentication methods:
- OAuth 2.0 (recommended) — browser-based consent on first connection, no static token to manage. Access tokens refresh automatically every 15 minutes.
- Auth token (Bearer) — best for CI/CD pipelines, scripts, and headless environments where browser-based consent is impractical.
For more details on token lifecycle, audit logs, and revocation, see the Dash0 MCP Server integration.
Note that goose uses uri where most other MCP clients use url, and streamable_http with an underscore.
Option 1: OAuth 2.0 (Recommended)
-
Add the extension to
~/.config/goose/config.yaml:yamlextensions: dash0: enabled: true type: streamable_http name: dash0 description: Query your observability data in Dash0 uri: "{{endpoint_mcp}}" timeout: 300You can also add it interactively. Run
goose configure, choose Add Extension → Remote Extension (Streamable HTTP), enter{{endpoint_mcp}}as the URL, and skip the headers. -
Start a session. On first connection, goose registers itself with Dash0 through dynamic client registration and opens a browser window where you log in and grant consent. You can review and revoke connected applications under User Settings → Applications in Dash0.
goose obtains its OAuth client ID automatically, so no client_id or client_secret_key entry is needed. Those
fields are only for MCP servers that require a pre-registered OAuth client.
Option 2: Auth Token
Before configuring the Dash0 MCP server with a Bearer token, create an auth token with the correct permissions:
- Go to your organization's Auth Tokens settings page
- Create a new auth token with one of the following permission levels:
- Full access (
*) - Recommended for full MCP functionality - Read-only (
*:read) - For read-only access to your telemetry data
- Full access (
Tokens with limited permissions (e.g., scoped to specific datasets or with only "Ingesting" permissions) will not work with the MCP server. The MCP server requires organization-wide read access to query your telemetry data.
Add the extension to ~/.config/goose/config.yaml:
extensions:
dash0:
enabled: true
type: streamable_http
name: dash0
description: Query your observability data in Dash0
uri: "{{endpoint_mcp}}"
headers:
Authorization: "Bearer {{token}}"
timeout: 300Alternatively, run goose configure, choose Add Extension → Remote Extension (Streamable HTTP), and enter:
- Name:
dash0 - URI:
{{endpoint_mcp}} - Header:
Authorization: Bearer {{token}}
goose info -v prints the whole configuration file, including the Authorization header in plaintext. Keep that in
mind when sharing output for support.
Verify
Run goose info -v to confirm the file still parses and the extension is listed. Then start a session and ask goose
what it can reach:
goose run -t "List the tools provided by the dash0 extension."Tools such as getServiceCatalog, getSpans, promql, and listDashboards confirm the connection.
Send goose telemetry to Dash0
goose links the OpenTelemetry SDK and reads the standard OTEL_* environment variables at startup, initializing traces,
metrics, and logs if it finds an endpoint. No plugin or code change is needed.
GOOSE_TELEMETRY_ENABLED is not the setting you want. That flag controls goose's own product analytics and has
nothing to do with OTLP export.
Set the data export endpoint and authorization token:
export OTEL_EXPORTER_OTLP_ENDPOINT="{{endpoint_otlp_http}}"
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer {{token_ingestion}}"
export OTEL_SERVICE_NAME="goose"goose appends /v1/traces, /v1/metrics, and /v1/logs itself, so leave the path off the endpoint.
You can specify which dataset to send data to by adding the Dash0-Dataset header. For example:
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer {{token_ingestion}},Dash0-Dataset={{dataset}}"For more information, see the dataset documentation.
http/protobuf on port 4318.What goose reports
- Traces: one trace per session, with
gen_ai.operation.nameset toinvoke_agent,chat, orexecute_tool. Inference spans carrygen_ai.request.model,gen_ai.provider.name, and per-call token usage. Tool calls carrygen_ai.tool.nameandgen_ai.tool.call.id. - Metrics:
goose.*counters covering sessions, tool calls, recipe runs, CLI commands, and the prompt injection scanner. The exact set changes between goose releases, so browse thegoose.prefix in the Metrics Explorer to see what your version emits. - Logs: session lifecycle records such as
Tool call startedandSession completed.
Message content is opt-in through OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true, which populates
gen_ai.input.messages and gen_ai.output.messages. goose also emits user_message, trace_input, and input
attributes that are not covered by that flag and carry the prompt and written file contents regardless. Drop them at
the collector if your agent touches sensitive code.
Verify
- Run any prompt, for example
goose run -t "Say hello". - Within a few seconds, a trace named
replyappears in Dash0 under thegooseservice.