Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

Goose

This page shows how to send Goose’s traces to cetra with cetra agents setup goose, and what you see in the UI.

  1. Create a project key with the ingest scope in the project’s API keys page. Copy the sk-cetra-… value.
  2. Install the cetra binary and run this in a terminal, with <SK_CETRA_KEY> set to your key and <CETRA_URL> set to your server:
Terminal window
export CETRA_INGEST_KEY=<SK_CETRA_KEY>
cetra agents setup goose --url <CETRA_URL>
  1. Setup writes nothing. It prints export lines, with your server and key in them. Add them to your shell profile. Setup does not edit the profile. The lines look like this:
Terminal window
export OTEL_EXPORTER_OTLP_ENDPOINT=<CETRA_URL>
export OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer%20<SK_CETRA_KEY>
export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true
export OTEL_LOGS_EXPORTER=none
export OTEL_METRICS_EXPORTER=none
  1. Open a new shell so that the lines load, and run Goose as usual. Its traces then go to cetra.

The header value is percent-encoded, so the space after Bearer is %20. The third line turns on the prompts and the answers; setup prints it only without --no-content. The last two lines turn off Goose’s logs and metrics, which cetra would otherwise accept and drop.

To undo setup, run this. It writes no file, and reminds you to delete the OTEL_* lines from your shell profile:

Terminal window
cetra agents remove goose

Each reply is one trace. Its root is an agent span, reply, carrying the prompt and the answer, and each model call and tool call is a child of it.

  • each model call is an llm span, stream_response_from_provider, with the model and its input and output tokens. Goose wraps it in a chat span, which cetra keeps as a chain: the wrapper repeats the llm span’s tokens, so the call is counted once;
  • each tool call is a tool span named after the tool, such as shell. Goose’s own name for the span is kept in cetra.span_name.

The reply span carries the turn’s total tokens. cetra does not read them either: they are the sum of the model calls’ tokens.

Each trace has these fields:

  • the session, from Goose’s session id;
  • metadata.coding_agent set to goose.

Goose sends no repository, branch or person, because it has no hook. cetra gets none of them for Goose traces.

Use the Coding agents dashboard template to see API-equivalent cost per session and tool usage.

Goose sends the prompts and the answers on its spans when OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT is set, the third line setup prints. With --no-content, setup leaves the line out.

cetra prices each model call from its token counts, using its price table. Goose does not report a cost.

API-equivalent cost is what the same tokens would cost at API prices. If you use a subscription plan, it is not what you pay.

  • Tested with Goose 1.59.2, in goose run mode. The interactive interface was not captured.
  • The OTEL_* lines apply to every OpenTelemetry program started from that shell, not only Goose.
  • The model-call span is stream_response_from_provider; chat is its chain parent.
  • The small model call Goose makes to name the session has no span.
  • Goose sends no repository, branch or person, so cetra cannot group its traces by repository or branch.
  • Traces: read the trace as a tree and a timeline.
  • Sessions: the calls of one Goose session.
  • Custom dashboards: build your own cost views, or start from the Coding agents template.