Traceway setup

From tracewayapp/traceway · View interactive version

Traceway setup is an AI agent skill from the GitHub repository tracewayapp/traceway. Analyze and instrument repositories for Traceway observability. Use when the user wants to plan, add, migrate, or verify Traceway or OpenTelemetry monitoring for backend, browser, full-stack, mobile or iOS, or AI-agent software, including project topology and user-approved setup-plan creation. Also

How to use this skill

Skill file

Set Up Traceway

Analyze the application first, agree on its Traceway project structure with the user, help them create that structure in the dashboard, and only then integrate and verify it.

Operating Contract

Invocation Forms

| Invocation carries | Path |

|---|---|

| A project ingest token + url | Fast Path for a single component, otherwise Steps 1-2, then integrate against the existing project |

| A setup token (tws_) + url | Steps 1-2, then Step 3 from "Write the plan file" (3b) |

| No token | Steps 1-2, then Step 3 from the top |

| Words naming one part of the codebase (track ai use, instrument the background jobs, only apps/worker), with or without a token | "Scoped Runs" below; the token rows above still decide how the credential is obtained |

Every backend integrates with OpenTelemetry. There is one backend path, not one per language or web framework: Go, Node, Python, PHP, Java, .NET, Ruby, and everything else export OTLP/HTTP to <instance>/api/otel/*. The Traceway project is created with framework OpenTelemetry, which is the only backend option in the dashboard's framework picker. The native Traceway Go SDK is a deliberate exception used only when the user explicitly asks for it.

Fast Path

When all of the following hold, skip Steps 2 and 3 and go straight to the integration steps:

Still run Step 1, because it decides how to instrument. Collapse "Propose and Confirm the Project Map" to a single confirmation line ("This is a Go API; it reports to your existing <name> project over OpenTelemetry") and skip the project-creation step entirely. The full map-and-creation ceremony exists for repositories with more than one deployable component, or where no project exists yet. Do not make a user who handed you a token sit through a project-map review for a single service.

Scoped Runs

The skill also runs on one part of a codebase. A request that names a part, instead of asking for the whole setup, is a scoped run: /traceway-setup track ai use, "instrument the background jobs", "add Traceway to apps/worker only", "check that the setup works". The words after the skill name, or the request that loaded the skill, carry the scope. A part is an area (one kind of telemetry) or a path (a directory, package or named component), and the two combine: "track AI use in services/assistant".

| The request names | Typical wording | Do |

|---|---|---|

| AI / LLM usage | integrate, instrument, track or monitor: AI use, LLM or model calls, tokens, cost, prompts, agents, a chatbot | Follow ai-usage.md from top to bottom. It carries its own analysis (its Steps A and B are rule 1 below for this scope), instrumentation and verification; read a step of this file only when it sends you here. |

| Background work | tasks, jobs, cron, queues, workers, schedulers, CLI commands | Step 1 items 1, 3 and 5, then Step 5, then the task check of Step 9 |

| Endpoints | routes, endpoint grouping, request tracing | Step 1 items 1-4, then Step 4 through "Verify endpoint grouping" |

| Errors, logs or metrics | exceptions, issues; log shipping; custom or business metrics | Step 1 items 1 and 3, then "Errors", "Logs" or "Metrics" in Step 4, then the matching check of Step 9 |

| Browser app | frontend, RUM, web vitals, session replay, source maps | Step 1 items 1, 3, 4 and 7, then the browser part of Step 7 with rum.md, then check 2 of Step 9 |

| Mobile app | Flutter, React Native, Android, iOS, crashes, symbols | Step 1 items 1, 3 and 8, then the mobile part of Step 7, then check 3 of Step 9 |

| Host or cluster metrics | server metrics, the agent, Kubernetes | Step 1 item 9, then Step 8 |

| Dashboard embedding | embed a dashboard, customer-facing charts | "Embedding Dashboards in the User's Application" |

| Verification | verify, check, "is it working", "why is nothing showing up" | Step 1 item 3, then Step 9 for what is already set up. Change nothing; report what fails and why. |

| A path or component | a directory, "only the worker", "just the API" | The whole flow with every step limited to that path. One component with a token is usually the Fast Path. |

For a verification-only request, use existing configuration and report missing prerequisites. The implementation and project-creation steps apply only when the user asks to set up instrumentation. Combine verification with any named area or path to select the relevant checks.

The wording varies, so match on meaning. When a request fits no row, name the scopes that exist and ask which one is meant. When it names no part at all, run the full setup.

Rules for every scoped run:

  1. Inspect first, but only what the scope needs. Always run Step 1 items 1 and 3 for the code in scope: the language, and the observability that is already there, including where it exports and which variable names carry the endpoint and token. Add the Step 1 items the table lists. Follow imports to shared clients and deployment configuration when the scoped component depends on them.
  2. Reuse what exists. A scoped run adds to the current setup: the same Traceway project, the same token variable, the same exporter and service.name. Do not rebuild the project map, do not rename projects or variables, and do not touch instrumentation outside the scope, even when it looks wrong. Report it instead.
  3. Make sure the scope can reach Traceway. If the code in scope already exports to Traceway, build on that. If it exports OpenTelemetry somewhere else, ask whether Traceway replaces that destination or runs next to it. If it exports nothing, set up the minimum the scope needs (for a backend area: the exporter from "Exporter configuration" in Step 4 and the one signal the area uses) with the credential path from "Invocation Forms", limited to the one project this code reports to. Say plainly that the rest of the setup was not done.
  4. Confirm in one line, not with a project map. State the scope, the project it reports to and what will change ("I will trace the 4 OpenAI call sites in src/llm/; they report to your existing Shop Backend project"). Wait for confirmation before changing code or provisioning a project.
  5. Verify only the scope, with the checks named in the table, and never report success for a check you did not run.
  6. Finish with a scope report: what changed, what was verified and how, what could not be verified, and what you noticed outside the scope, each with the scoped request that would handle it (for example "the nightly export job has no task span: /traceway-setup instrument background jobs").

The Operating Contract applies unchanged: the same credential rules, and no code change before the user has seen what you found.

Step 1: Analyze the Architecture

Before changing anything, build a picture of what is deployed and what is already instrumented:

  1. Frameworks and languages: detect them from package.json, go.mod, composer.json, requirements.txt/pyproject.toml, pubspec.yaml, build.gradle(.kts), Package.swift, *.xcodeproj/*.xcworkspace, Podfile, and source extensions. For iOS/Apple targets, note whether the sources are Swift or Objective-C. That choice picks the path in "Frontend and Mobile" (Swift gets the native SDK; Objective-C-only has none and falls back to OTel).
  2. Deployable components and entry points: inventory APIs, SSR servers, browser apps, workers, schedulers, CLIs, and mobile applications. Treat code organization as evidence, not proof that something is deployed. Note the deployment target while you are here: Kubernetes manifests, a Helm chart, Kustomize overlays, Dockerfile plus a compose file, or cloud-init / Ansible / Terraform. It decides the host-metrics path in Step 8.
  3. Existing observability: find OpenTelemetry configuration, Traceway SDKs, Sentry, Datadog, New Relic, Honeycomb, logging exporters, tracing middleware, source map or symbol upload steps, and observability environment-variable names. Explain whether Traceway will replace, coexist with, or extend each integration. Never display discovered credential values.
  4. Production role of JS meta-frameworks (Next.js, SvelteKit, Remix, Nuxt): never assume full-stack.

Frontend-only means integrate ONLY the browser side with the frontend SDK; do NOT add OTel to, or otherwise instrument, the framework's server side. A separate backend is its own component with its own Traceway project.

  1. Background work: find cron jobs, queue consumers, schedulers, CLI commands, and long-running workers. Record whether libraries already emit CONSUMER spans.
  2. AI/LLM usage: look for provider HTTP requests and shared model clients as well as dependencies for openai, @anthropic-ai/sdk, anthropic, langchain / @langchain/*, ai (Vercel AI SDK), litellm, google-generativeai, cohere, openrouter, and agent frameworks (langgraph, crewai, autogen / ag2, pydantic-ai, @openai/agents, @mastra/*, llamaindex / llama-index, semantic-kernel). Then decide whether this is a conversational product (chatbot, assistant, agent) rather than one-shot LLM calls: look for chat or streaming-chat routes (/chat, /completions, SSE or websocket handlers feeding an LLM), message-history persistence (a messages/conversations table or thread ids), tool/function-calling definitions passed to the model, or any agent framework above. When any of these turn up, the AI integration follows ai-usage.md in this skill directory (Step 6), which starts with a call-site inventory; if the product is conversational or tool-calling, also read ai-agent.md before proposing it.
  3. Browser build and release flow: identify the bundler, output directory, source-map settings, deploy pipeline, and existing artifact uploads.
  4. Mobile build and release flow: determine whether Flutter is obfuscated, Android uses R8/minification, iOS produces dSYMs, and whether multiple platform directories are one cross-platform product or independently released apps.
  5. Deployment and host metrics: inspect Dockerfiles, Compose, Kubernetes, Helm, Terraform, Ansible, cloud-init, PaaS configs, and CI/CD. Determine whether the backend runs on a host where the Traceway OTel Agent is applicable.

Present the findings before asking questions:

| Component | Repository evidence | Production role | Current tracking | Proposed Traceway project | Integration | Credentials needed |

|---|---|---|---|---|---|---|

| apps/api | Go module + Gin routes | Backend API | OTel / none / vendor | Product Backend | OTel | Runtime token |

| apps/web | Svelte + Vite | Browser app | Existing SDK / none | Product Web | Traceway Svelte SDK | Runtime + upload token |

Use actual paths and findings. Include unresolved deployment assumptions explicitly.

Step 2: Propose and Confirm the Project Map

Explain these default boundaries:

| Application boundary | Traceway project | What belongs in it |

|---|---|---|

| Backend system | One project with framework OpenTelemetry | API endpoints, child spans, issues, background tasks, AI traces, logs, host metrics, and the app's own custom metrics when it has some (Step 4, "Metrics"). APIs, workers, schedulers, and the host agent share the project token; distinguish them with stable service.name values. |

| Browser frontend | One separate project per deployed browser application, using React, Svelte, Vue.js, or jQuery | Browser errors, web vitals, session replay, distributed-trace linkage, source maps, and browser release metadata. |

| Mobile app | One separate project per independently released application, using Flutter, React Native, Android, or iOS | Mobile errors/crashes, replay where supported, and build symbols or mappings. A single Flutter product targeting Android and iOS normally uses one project; separate native apps use separate projects. |

| Full-stack JS app | Two projects when its server runs in production | Server-side work goes to the OpenTelemetry backend project; browser-side work goes to the browser project. |

The dashboard's framework picker offers exactly these nine options: OpenTelemetry for every backend, React / Svelte / Vue.js / jQuery for browsers, and Flutter / React Native / Android / iOS for mobile. There is no Gin, Django, Laravel, Next.js, or Remix entry, and none is needed. A Next.js or Remix browser project selects React, and its server side selects OpenTelemetry like any other backend. The framework-specific setup for a backend lives on the project's Connection page, which asks for the language and web framework after the project exists.

Do not create one project per backend process by default. Keeping the API, workers, AI calls, and server metrics together preserves their operational context and distributed traces. Split backend projects only for a real product, ownership, access-control, compliance, or data-isolation boundary.

Ask the user to confirm only what the repository cannot establish safely:

  1. Which detected components are deployed and should be tracked?
  2. Traceway Cloud or self-hosted, and which organization should own the projects?
  3. Are the proposed names and project boundaries correct?
  4. Does the backend run on a VM/host, Kubernetes, or serverless/PaaS, and should host metrics be collected?
  5. Do mobile directories represent one cross-platform product or separate released apps?

Each confirmed row must also settle what Step 3's plan file needs:

Do not modify code until the user confirms this map.

Step 3: Create the Projects

The default path: submit the confirmed map as a setup plan, the user approves it visually on the Traceway website, and a short curl script writes the resulting ingest tokens into env files. Nothing needs to be installed beyond curl and jq. Existing correctly mapped Traceway projects may be reused (the plan matches projects by name, so listing an existing name reuses it instead of duplicating).

3a. Get a setup token (skip when the invocation carried one)

Branch on account state; ask only if the repository and conversation do not establish it:

Do not have the user create projects in the web UI on this path, and do not proceed without the token.

3b. Write the plan file

Write traceway-setup-plan.json from the confirmed map, one entry per project:

{
  "projects": [
    {"name": "Product Backend", "framework": "opentelemetry",
     "envFile": "backend/.env", "envVar": "TRACEWAY_BACKEND_TOKEN"},
    {"name": "Product Web", "framework": "svelte",
     "envFile": "frontend/.env", "envVar": "PUBLIC_TRACEWAY_WEB_CONNECTION_STRING",
     "envFormat": "connectionString",
     "deployment": {"platform": "Vercel",
       "instructions": "vercel env add PUBLIC_TRACEWAY_WEB_CONNECTION_STRING production\n# paste: <token>"}}
  ]
}

Rules: framework is one of the nine values from Step 2; every envFile must be untracked (create it and confirm it is gitignored first); envVar follows the credential-naming rules; deployment.instructions uses the literal <token> placeholder, never a real value.

3c. Submit the plan and wait for approval (curl)

Use curl and jq directly for this step. Do NOT install the traceway CLI for it; nothing gets installed on this path. (Only if a CLI new enough to have setup apply is already present is printf '%s' "$TRACEWAY_SETUP_TOKEN" | traceway setup apply --url "$TRACEWAY_URL" --plan traceway-setup-plan.json --token-stdin an equivalent one-step alternative.) If jq is unavailable and cannot be installed, use the manual fallback (3e).

Export the credentials first; setup tokens may transit chat, so this is fine:

export TRACEWAY_URL="<instance>"          # no trailing slash
export TRACEWAY_SETUP_TOKEN="tws_..."

Validate the token and show the organization (this response carries project names only, safe to display):

curl -s -w '\nHTTP %{http_code}\n' -H "Authorization: Bearer $TRACEWAY_SETUP_TOKEN" \
  "$TRACEWAY_URL/api/setup/session"

Submit the plan as a draft:

curl -s -w '\nHTTP %{http_code}\n' -X PUT \
  -H "Authorization: Bearer $TRACEWAY_SETUP_TOKEN" -H 'Content-Type: application/json' \
  --data-binary @traceway-setup-plan.json "$TRACEWAY_URL/api/setup/plan"

200 {"status":"pending"} means the draft is up; tell the user: "Review the proposal on the Traceway page you have open and press Approve Setup." A 422 is a validation message: fix the plan and resubmit. A 401 means the token is invalid or expired: ask the user for a fresh one from <instance>/setup.

Then wait for the decision with the script below. The script exists because the decision response carries the ingest tokens: values must flow API to env file without ever reaching stdout, your context, or the chat. Write it to traceway-setup-wait.sh exactly as given and run sh traceway-setup-wait.sh. Never fetch GET /api/setup/plan directly, and never read the env files it writes.

#!/bin/sh
# Waits for the setup decision, then writes each ingest token into the env
# file named by the plan. Prints statuses and variable names only.
set -eu
PLAN=${1:-traceway-setup-plan.json}
AUTH="Authorization: Bearer ${TRACEWAY_SETUP_TOKEN:?}"
URL=${TRACEWAY_URL:?}
deadline=$(($(date +%s) + 1800))
while :; do
  resp=$(curl -s -H "$AUTH" "$URL/api/setup/plan")
  status=$(printf '%s' "$resp" | jq -r '.status // "error"')
  case "$status" in
    approved) break ;;
    rejected)
      echo "rejected: $(printf '%s' "$resp" | jq -r '.reason // "(no reason given)"')"
      exit 2 ;;
    pending|none) ;;
    *) echo "unexpected response, the setup token may have expired"; exit 1 ;;
  esac
  if [ "$(date +%s)" -ge "$deadline" ]; then
    echo "timed out waiting for approval; rerun when the user is ready"
    exit 3
  fi
  sleep 3
done
i=0
n=$(jq '.projects | length' "$PLAN")
while [ "$i" -lt "$n" ]; do
  name=$(jq -r ".projects[$i].name" "$PLAN")
  envfile=$(jq -r ".projects[$i].envFile // empty" "$PLAN")
  envvar=$(jq -r ".projects[$i].envVar // empty" "$PLAN")
  format=$(jq -r ".projects[$i].envFormat // \"token\"" "$PLAN")
  pstatus=$(printf '%s' "$resp" | jq -r --arg n "$name" \
    '[.projects[] | select(.name == $n)][0].status // "missing"')
  if [ "$pstatus" = missing ]; then
    echo "$name: missing from the approved plan"
    i=$((i + 1)); continue
  fi
  if [ -n "$envfile" ] && [ -n "$envvar" ]; then
    value=$(printf '%s' "$resp" | jq -r --arg n "$name" --arg f "$format" \
      '[.projects[] | select(.name == $n)][0]
       | if $f == "connectionString"
         then .token + "@" + (.backendUrl | sub("/+$"; "")) + "/api/report"
         else .token end')
    dir=$(dirname "$envfile"); mkdir -p "$dir"
    tmp=$(mktemp "$dir/.tmp-env-XXXXXX")
    { [ -f "$envfile" ] && grep -v "^${envvar}=" "$envfile" > "$tmp"; } || true
    printf '%s=%s\n' "$envvar" "$value" >> "$tmp"
    mv "$tmp" "$envfile"
    echo "$name: $pstatus, wrote $envvar to $envfile"
  else
    echo "$name: $pstatus"
  fi
  i=$((i + 1))
done
echo "done: deployment credentials, if any, are shown on the Traceway page the user has open"

Env files come out mode 0600 via mktemp. Failure handling:

Delete the plan file and traceway-setup-wait.sh after a successful apply; they hold no secrets but they are setup litter.

3d. Confirm and handle deployment credentials

On approval the Traceway page celebrates and lands the user on the new project's dashboard, which doubles as the confirmation that the projects exist. For every project with a deployment block, the page first shows a Next Steps panel with the exact command and the real credential value; walk the user through completing it there before they continue, because the setup page is not reachable again once the account has projects. Never relay those values through chat; if a value is needed later, each project's Connection page in the dashboard carries its token.

3e. Manual fallback

When the user prefers clicking, curl or jq is unavailable, or apply keeps failing, follow dashboard-project-setup.md: the user creates each project in the dashboard UI and puts the tokens straight into their env files or secret store. On this path the old rule applies in full: ingest tokens never transit chat.

Upload tokens stay manual on every path: the uploaders read fixed variable names. traceway-sourcemaps reads TRACEWAY_SOURCEMAP_TOKEN, and dart run traceway:upload_symbols and the iOS dSYM script read TRACEWAY_UPLOAD_TOKEN (all three also read TRACEWAY_URL). Either name the CI secret exactly that, or keep a component-specific secret and pass it explicitly:

traceway-sourcemaps --url "$TRACEWAY_URL" --token "$TRACEWAY_WEB_UPLOAD_TOKEN" --directory ./dist

Inventing a name like TRACEWAY_WEB_UPLOAD_TOKEN and then calling the uploader with no --token fails at release time, not at setup time, so make the choice explicit in the CI step. Upload tokens are generated per project from Connection -> Source Maps or Symbol Upload in the dashboard.

Integration Paths

Pick the path by project type, and pick the project type from the "Analyze the Architecture" findings, never from the framework name alone (a Next.js repo can be a full-stack app or just the frontend of a separate backend). Per path, this is not negotiable per framework; it is how Traceway is designed to receive data:

| Project type | Path |

|---|---|

| Backend (any language) | OpenTelemetry, exporting OTLP/HTTP to <instance>/api/otel/v1/*. Always, including Go. |

| Frontend (browser SPA, or a JS meta-framework running frontend-only in production) | Traceway @tracewayapp/<framework> SDK + bundler plugin + source map upload (see "Frontend and Mobile" below). |

| Full-stack JS (Next.js, SvelteKit, Remix, actually serving its API/SSR in production per "Analyze the Architecture") | BOTH sides, each under its own Traceway project: server side via OpenTelemetry AND browser side via the frontend SDK. |

| Mobile (Flutter, React Native, Android, native Swift iOS) | The Traceway platform SDK. Never OTel. Sole exception: a non-Swift iOS/Apple app has no native SDK, so it uses an OTel library (e.g. Honeycomb) exporting to Traceway like a backend (see "Frontend and Mobile"). |

The rules every backend integration must satisfy, and the table of what each span becomes, are in Step 4 where they are applied.

Embedding Dashboards in the User's Application

This is a separate integration from sending telemetry, and it needs no setup token. When the user wants a Traceway dashboard shown inside their own product, such as each customer's KPIs in an admin panel, read dashboard-embedding.md and follow it: their backend asks Traceway for a short-lived signed link per authorized viewer, and their frontend shows it in an iframe.

Step 4: Backend OTel Setup

The same shape in every language:

  1. Install the language's OpenTelemetry SDK plus the auto-instrumentation for the web framework and database clients.
  2. Point the OTLP/HTTP exporter at Traceway with the project token as a Bearer header.
  3. Set service.name (becomes the Server Name in Traceway) and service.version (enables release comparison) on the resource.
  4. Verify endpoint grouping before anything else.

Three rules that are not negotiable

  1. Endpoints MUST arrive parametrized. http.route must be the route pattern (/api/users/:id), never the concrete URL. Traceway uses the value as-is, but only when it starts with /: a route name like app_user_show is discarded exactly like a missing value. With no usable route it falls back to url.path, and the Endpoints page explodes into one row per unique URL.
  2. Background work MUST use SpanKind.CONSUMER. A root span with the default INTERNAL kind and no HTTP attributes is silently dropped (exceptions recorded on it still reach Issues, but the task run itself is lost).
  3. The exporter MUST use an OpenTelemetry project's token. If OTLP arrives with a browser project's token (framework React, Svelte, Vue.js, jQuery, or React Native), Traceway keeps only the Issues and discards every endpoint, task, child span, and AI trace. The symptom is "errors appear but the Endpoints page is empty", and the cause is almost always two projects whose tokens got swapped.

How Traceway classifies spans

The rules are evaluated in this order and the first match wins.

| # | Span | Condition | Becomes |

|---|---|---|---|

| 1 | Any span | SpanKind = INTERNAL and carries exception.* attributes | Issue. Never promoted, even with HTTP or gen_ai.* attributes present. A child span keeps its ordinary Span row, a root span gets only the Issue |

| 2 | Root span, or a span whose parent is not in the same export batch | SpanKind = SERVER or INTERNAL with HTTP attributes | Endpoint |

| 3 | Any span | SpanKind = CONSUMER | Task |

| 4 | Root span | SpanKind = INTERNAL with a console.command attribute | Task (CLI command) |

| 5 | Any span | Has any gen_ai.* attribute | AI Trace |

| 6 | Non-root span | Has a parent span id | Span (child) |

| 7 | Root span | Nothing above matched | Dropped (exceptions recorded on it still become Issues, unlinked) |

Because the order is fixed, a CONSUMER span carrying gen_ai.* is a Task, and a SERVER request span carrying gen_ai.* is an Endpoint. Put the model call on its own child span (Step 6).

Two more rules that do not depend on span kind:

For the exact rules, endpoint naming, metric conversion, and the remaining quirks, read data-model.md in this skill directory. It is the authoritative reference.

Exporter configuration

Where the SDK supports the standard env vars, prefer them; they work identically across languages:

OTEL_SERVICE_NAME=my-service
OTEL_RESOURCE_ATTRIBUTES=service.version=1.2.3   # there is no OTEL_SERVICE_VERSION variable
OTEL_EXPORTER_OTLP_ENDPOINT=https://<instance>/api/otel
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf        # required, several SDKs default to gRPC
OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <project-token>"
OTEL_TRACES_EXPORTER=otlp
OTEL_METRICS_EXPORTER=none                       # off by default, read "Metrics" below before enabling
OTEL_LOGS_EXPORTER=otlp

Two of those lines are load-bearing in a way that fails silently:

SDKs append /v1/traces, /v1/metrics, /v1/logs to the endpoint automatically, so set the base URL only. A full signal path in OTEL_EXPORTER_OTLP_ENDPOINT produces /v1/traces/v1/traces, and the signal-specific variables (OTEL_EXPORTER_OTLP_TRACES_ENDPOINT) are used verbatim with nothing appended. When configuring in code instead, the full URLs are https://<instance>/api/otel/v1/traces (and /v1/metrics, /v1/logs) with header Authorization: Bearer <project-token>.

When Step 3's apply script wrote the env files, the plan's variables already hold real values locally, so wire the exporter to exactly those names (e.g. Authorization=Bearer ${TRACEWAY_BACKEND_TOKEN}) and run live verification immediately. The script writes only each project's one plan variable: companion variables the integration reads, like TRACEWAY_URL for the instance URL, are yours to add to the same env file now. On the manual fallback the user populates the variables first.

Constraints: OTLP/HTTP only (protobuf or JSON). OTLP/gRPC is not supported, there is no listener on port 4317. Content-Encoding: gzip is fine. The body is capped at 10 MB after decompression, and an oversized batch is rejected outright with 413 and {"error":"request body exceeds the 10MB limit"}. Nothing is ingested partially. A wrong or missing token answers 401, and any other path answers 404. All three are invisible from the application: most SDKs log exporter failures at debug level only, so when nothing arrives, turn the SDK's own diagnostic logging on first.

Node.js example

npm install @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node \
  @opentelemetry/instrumentation @opentelemetry/api @opentelemetry/exporter-trace-otlp-http

Declare @opentelemetry/api yourself even though it also arrives transitively. Relying on hoisting breaks under pnpm's strict node_modules and under Yarn PnP.

Create instrumentation.mjs at the project root and load it before the app: node --import ./instrumentation.mjs server.js. Use the .mjs extension. A .js file holding import syntax fails to load in a CommonJS project, which is what most projects still are.

import { register } from "node:module";
register("@opentelemetry/instrumentation/hook.mjs", import.meta.url);

import { NodeSDK } from "@opentelemetry/sdk-node";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node";

const url = process.env.TRACEWAY_URL;
const headers = { Authorization: `Bearer ${process.env.TRACEWAY_BACKEND_TOKEN}` };

const sdk = new NodeSDK({
  serviceName: process.env.OTEL_SERVICE_NAME ?? "my-service",
  traceExporter: new OTLPTraceExporter({ url: `${url}/api/otel/v1/traces`, headers }),
  instrumentations: [getNodeAutoInstrumentations()],
});

sdk.start();

Three parts of that snippet are load-bearing:

Auto-instrumentation covers Express routes (sets http.route), status codes, errors, and database clients (pg, mysql2, mongodb, ioredis). SQLite and custom business logic need manual tracer.startActiveSpan() child spans.

Next.js server exception

Next.js must not use the generic instrumentation.mjs preload above, node --import, or NODE_OPTIONS. Next.js creates its own incoming request root span with the matched http.route; preloading the generic Node HTTP instrumentation creates a competing root named from the literal URL, so /api/users/1 and /api/users/2 become separate endpoints.

For a Next.js server, create a minimal instrumentation.ts hook and put the SDK in a separate instrumentation.node.ts. Next.js compiles the hook for both Node and Edge; importing OTel packages directly in the hook, even with dynamic import() calls after a runtime guard, can make the development Edge compilation resolve Node built-ins and fail. The wrapper must conditionally import only the Node module:

export async function register() {
  if (process.env.NEXT_RUNTIME === "nodejs") {
    await import("./instrumentation.node");
  }
}

Keep every Node-only import and the SDK startup in the sibling module:

import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node";
import { OTLPLogExporter } from "@opentelemetry/exporter-logs-otlp-http";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
import { resourceFromAttributes } from "@opentelemetry/resources";
import { BatchLogRecordProcessor } from "@opentelemetry/sdk-logs";
import { NodeSDK } from "@opentelemetry/sdk-node";

(Error as unknown as { prepareStackTrace?: unknown }).prepareStackTrace = undefined;

const instance = process.env.TRACEWAY_URL!.replace(/\/+$/, "");
const base = `${instance}/api/otel`;
const headers = { Authorization: `Bearer ${process.env.TRACEWAY_BACKEND_TOKEN}` };

new NodeSDK({
  resource: resourceFromAttributes({
    "service.name": process.env.OTEL_SERVICE_NAME ?? "nextjs-server",
    "service.version": process.env.APP_VERSION ?? "development",
  }),
  traceExporter: new OTLPTraceExporter({ url: `${base}/v1/traces`, headers }),
  logRecordProcessors: [
    new BatchLogRecordProcessor({
      exporter: new OTLPLogExporter({ url: `${base}/v1/logs`, headers }),
    }),
  ],
  instrumentations: [getNodeAutoInstrumentations()],
}).start();

Install the log exporter and SDK packages in addition to the generic Node dependencies: @opentelemetry/exporter-logs-otlp-http, @opentelemetry/sdk-logs, @opentelemetry/api-logs, and @opentelemetry/resources. As in the generic example there is no metric reader; keep OTEL_METRICS_EXPORTER=none and see "Metrics" before adding one. Next.js versions before 15 also need experimental.instrumentationHook: true. Full setup and verification: https://docs.tracewayapp.com/client/otel/nextjs

Resetting Error.prepareStackTrace in instrumentation.node.ts lets Node apply source maps instead of leaving server Issues pointed at minified Next chunks. Production must also start with NODE_OPTIONS=--enable-source-maps, and the build must emit .next/server/**/*.js.map; verify both rather than assuming readable server stacks. If the webpack build omits them, add experimental: { serverSourceMaps: true } to next.config. Also list @opentelemetry/auto-instrumentations-node in serverExternalPackages so Next does not bundle the instrumentation registry or warn about its optional transports.

Per-language notes

```go

otel.SetTextMapPropagator(propagation.NewCompositeTextMapPropagator(

propagation.TraceContext{}, propagation.Baggage{},

))

```

```go

mux.Handle("GET /api/users/{id}", otelhttp.NewHandler(usersHandler, "users"))

```

or keep the single top-level wrap and stamp the route yourself:

```go

// imports: strings, go.opentelemetry.io/otel/trace,

// semconv "go.opentelemetry.io/otel/semconv/v1.26.0"

func withRoute(mux *http.ServeMux) http.Handler {

return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

if _, pattern := mux.Handler(r); pattern != "" {

if i := strings.IndexByte(pattern, '/'); i >= 0 {

route := pattern[i:] // drop the "GET " prefix, http.route must start with "/"

trace.SpanFromContext(r.Context()).SetAttributes(semconv.HTTPRoute(route))

}

}

mux.ServeHTTP(w, r)

})

}

handler := otelhttp.NewHandler(withRoute(mux), "server")

```

```bash

OTEL_PYTHON_LOG_CORRELATION=true # restores console output, stamps otelTraceID/otelSpanID

OTEL_PYTHON_LOG_LEVEL=info # only read alongside the line above

```

OTEL_PYTHON_LOG_LEVEL on its own does nothing. Do not set OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true; on current versions the bridge is already on and that variable switches it to the SDK's deprecated handler.

Guides: https://docs.tracewayapp.com/client/otel/python and https://docs.tracewayapp.com/client/otel/django

1. Install fastapi[standard] (or fastapi[opentelemetry] when the app avoids the standard extra). Plain fastapi ships only opentelemetry-api, so FastAPI logs the warning FastAPI automatic telemetry configuration failed: Automatic OpenTelemetry export requires fastapi[opentelemetry] or fastapi[standard]... at startup and exports nothing.

2. Set the same env block from "Exporter configuration" in the process environment. FastAPI reads it at lifespan startup and builds OTLP/HTTP exporters for traces, metrics and logs; the exporters pick up OTEL_EXPORTER_OTLP_HEADERS and the resource picks up OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES. It only speaks http/protobuf. Any other protocol logs FastAPI automatic telemetry configuration failed and the app runs with no export.

3. Start the server as usual (fastapi run, uvicorn app:app, gunicorn -k uvicorn.workers.UvicornWorker app:app).

4. Add an exception handler, or no Issues appear. Built-in telemetry marks the request span ERROR with status 500 and error.type, but sends the exception only as a log record (http.server.request.exception) with no exception event on the span. Traceway builds Issues from span exception events, so you get a failed endpoint row and an empty Issues page. Record the exception on the request span:

```python

from fastapi import Request

from fastapi.responses import JSONResponse

from opentelemetry import trace

from opentelemetry.trace import Status, StatusCode

@app.exception_handler(Exception)

async def record_unhandled_exception(request: Request, exc: Exception):

span = trace.get_current_span()

span.record_exception(exc)

span.set_status(Status(StatusCode.ERROR, str(exc)))

return JSONResponse({"detail": "Internal Server Error"}, status_code=500)

```

HTTPException and validation errors keep their own handlers, so a 404 or 422 is not recorded as an Issue.

What it covers: SERVER spans with http.route in FastAPI syntax (GET /users/{user_id}), status codes, fastapi.dependencies / fastapi.endpoint / fastapi.serialization child spans, traceparent propagation, HTTP server metrics (unwanted, see "Metrics": keep OTEL_METRICS_EXPORTER=none and confirm in the metric explorer that no http.server.* metric arrives after startup), and FastAPI's own exception and validation logs. It does not cover database queries, outgoing HTTP calls, or the app's own logging calls. If the user wants those, and most apps with a database will, use the generic Python path (opentelemetry-instrument) and turn off FastAPI's export: FastAPI(telemetry={"auto_configure": False}). Leave auto_configure on under opentelemetry-instrument and FastAPI adds a second exporter to the agent's provider, so every span is sent twice. (FastAPI does notice the contrib middleware and stops creating its own spans, so you never get two request spans, only duplicate exports.) State that trade-off in the setup plan rather than choosing silently.

Verify endpoint grouping (do this first)

Hit a parametrized route a few times with different IDs and check the Traceway Endpoints page: you must see ONE row (GET /api/users/:id), not one row per ID. If you see raw IDs, the instrumentation is not setting http.route; fix that before continuing. Last resort, set it manually in a middleware that knows the matched route pattern (the value must start with /, or it is discarded):

import { trace } from "@opentelemetry/api";

trace.getActiveSpan()?.setAttribute("http.route", matchedRoutePattern);

Errors

Thrown errors must be recorded as exception events to appear as Issues. Auto-instrumentation handles uncaught errors; for caught-and-handled ones:

import { trace, SpanStatusCode } from "@opentelemetry/api";

const span = trace.getActiveSpan();
span?.recordException(error);
span?.setStatus({ code: SpanStatusCode.ERROR, message: error.message });

(Go: span.RecordError(err, trace.WithStackTrace(true)); the stack trace option is what produces the exception.stacktrace attribute.)

Return HTTP 500 when an exception happens. A request that throws or panics must respond with 500 and set the span status to ERROR. Never let it fall through to a 200/2xx. The common trap is a recover/panic middleware that reports the exception but lets the response writer keep its default 200: Traceway then records the endpoint transaction as a success, so the Endpoints page looks healthy while Issues fills up, and the exception becomes an unlinked island instead of correlating to a failed request (and, with distributed tracing, to the frontend call that triggered it). Always pair "an exception was recorded" with "respond 500 and set span status ERROR". Genuine client errors that are NOT bugs (validation 422, auth 401, not-found 404) keep their real 4xx status and should not be recorded as exceptions in the first place.

Go has a sharper version of the same trap. otelgin records the status only after c.Next() returns, which never happens during a panic unwind, so an unrecovered panic leaves the endpoint row at status 0 even though Gin's own recovery already returned 500 to the client, and the Issue arrives with a title but no stack trace. Register a recovery middleware after otelgin.Middleware so it runs inside the server span:

// imports: fmt, net/http, go.opentelemetry.io/otel/codes, go.opentelemetry.io/otel/trace
func otelRecovery() gin.HandlerFunc {
    return func(c *gin.Context) {
        defer func() {
            if r := recover(); r != nil {
                err, ok := r.(error)
                if !ok {
                    err = fmt.Errorf("%v", r)
                }
                span := trace.SpanFromContext(c.Request.Context())
                span.RecordError(err, trace.WithStackTrace(true))
                span.SetStatus(codes.Error, err.Error())
                c.AbortWithStatus(http.StatusInternalServerError)
            }
        }()
        c.Next()
    }
}

router.Use(otelgin.Middleware(serviceName))
router.Use(otelRecovery())

Logs

OTEL_LOGS_EXPORTER=otlp wires the exporter only. The application's own log calls still need a bridge, or the Logs page stays empty while traces and metrics look perfectly healthy.

Emit from the request context (c.Request.Context() in Gin, r.Context() in net/http, the active context in Node). A line emitted from a background context carries no trace id and cannot be opened from the endpoint it belongs to. Traceway reads severity_text (or derives it from severity_number), the body, service.name, and the trace and span ids.

Metrics

Backends export no OTel metrics by default. Keep OTEL_METRICS_EXPORTER=none from the env block and, when the SDK is configured in code, create no metric reader or meter provider. Nothing in the Traceway UI needs them:

Leaving the SDK defaults on is expensive. Web framework instrumentation (otelgin, otelhttp, otelchi, otelfiber, Node's HTTP instrumentation, FastAPI's built-in telemetry, the Java agent) records http.server.request.duration, http.server.request.body.size and http.server.response.body.size (or the older http.server.duration) as one histogram series per route, method and status code. Three things compound:

  1. The SDK default temporality is cumulative. Every series the process has seen since it started is re-sent on every export with its running total, whether or not a request arrived. An idle server costs as much as a busy one.
  2. Each series is about 550 bytes of attributes, bucket counts and bucket boundaries. Usage is billed on the request body after decompression, so gzip does not reduce it.
  3. HTTP metrics overlap endpoint analytics. Current Traceway retains histogram distributions (and legacy average/count series), but endpoints already provide request latency and throughput. Enable HTTP histograms when a metric-based objective or integration needs them, rather than collecting duplicate signals by default. This backend policy does not apply to browser RUM metrics: keep those enabled for population coverage.

Measured on a production Gin API serving about 1,400 requests a day, exporting every 30 seconds: about 117 histogram series per export, about 187 MB a day, 91% of the project's ingest. That uses up a 1 GB allowance in five days. Without the HTTP histograms the same project sends about 18 MB a day.

Turn metrics on only when the user wants the application's own metrics (business counters, queue depth, cache hit rate), and then do all three of these:

  1. Use delta temporality: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=delta, which the Go, Python, Node, Java and .NET exporters read. Traceway stores each data point as it arrives, so with cumulative temporality a counter charts its running total and a histogram's .avg is the average since the process started. With delta, idle series send nothing. Traceway's own backend exports this way.
  2. Drop the framework's HTTP histograms with a view on http.server.* and the Drop aggregation. Zero-code agents (opentelemetry-instrument, the Java agent) have no environment variable for views: build the meter provider in code, or rely on delta temporality alone, which sends HTTP series only for intervals that had traffic.
  3. Keep the SDK's 60-second export interval in production. Every export repeats each active series, so a 5- or 10-second interval multiplies the volume by 12 or 6.

Go:

// imports: go.opentelemetry.io/otel,
//          go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp,
//          sdkmetric "go.opentelemetry.io/otel/sdk/metric"
exp, err := otlpmetrichttp.New(ctx,
    otlpmetrichttp.WithEndpointURL(base+"/v1/metrics"),
    otlpmetrichttp.WithHeaders(headers),
    otlpmetrichttp.WithTemporalitySelector(sdkmetric.DeltaTemporalitySelector),
)
if err != nil {
    return err
}
mp := sdkmetric.NewMeterProvider(
    sdkmetric.WithResource(res),
    sdkmetric.WithReader(sdkmetric.NewPeriodicReader(exp)), // 60 s default interval
    sdkmetric.WithView(sdkmetric.NewView(
        sdkmetric.Instrument{Name: "http.server.*"},
        sdkmetric.Stream{Aggregation: sdkmetric.AggregationDrop{}},
    )),
)
otel.SetMeterProvider(mp)
defer mp.Shutdown(ctx)

Go's framework middleware reads the global meter provider, so an app that never calls otel.SetMeterProvider sends no HTTP metrics at all, and that is the default to keep. The view above covers otelgin, otelhttp, otelchi and otelfiber alike. To silence only Gin's middleware, pass otelgin.WithMeterProvider(noop.NewMeterProvider()) (package go.opentelemetry.io/otel/metric/noop).

Node: add views: [{ instrumentName: "http.server.*", aggregation: { type: AggregationType.DROP } }] to NodeSDK (AggregationType comes from @opentelemetry/sdk-metrics). Python, with the meter provider built in code: MeterProvider(metric_readers=[...], views=[View(instrument_name="http.server.*", aggregation=DropAggregation())]) (View and DropAggregation come from opentelemetry.sdk.metrics.view).

Go uses OpenTelemetry

There is no separate Traceway Go SDK. It was retired, and Go instruments with opentelemetry-go exactly like every other backend: go get go.opentelemetry.io/otel/sdk go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp, then the same env vars as the block above. Set up traces and logs only; do not create a meter provider unless the app has its own metrics (see "Metrics"). Host CPU and memory come from the Traceway OTel Agent (see "Deployment and Server Metrics"), not from the app.

Step 5: Background Tasks (Boundaries and Labeling)

If "Analyze the Architecture" found background work, instrument it as Tasks. The rules:

import { trace, SpanKind, SpanStatusCode } from "@opentelemetry/api";

const tracer = trace.getTracer("my-app");

async function runScheduledJob() {
  await tracer.startActiveSpan(
    "cleanup-expired-sessions",
    { kind: SpanKind.CONSUMER },
    async (span) => {
      try {
        await doWork();
        span.setStatus({ code: SpanStatusCode.OK });
      } catch (error) {
        const err = error instanceof Error ? error : new Error(String(error));
        span.recordException(err);
        span.setStatus({ code: SpanStatusCode.ERROR, message: err.message });
        throw error;
      } finally {
        span.end();
      }
    }
  );
}

(Go: tracer.Start(ctx, "cleanup-expired-sessions", trace.WithSpanKind(trace.SpanKindConsumer)).)

Step 6: AI Traces

If "Analyze the Architecture" found model calls, instrument the model calls by following ai-usage.md in this skill directory. It is the same procedure a scoped /traceway-setup track ai use run follows: inventory every call site, instrument each as an OpenTelemetry GenAI span, verify. In a full setup its Step A is already done (the exporter from Step 4), so start at its Step B.

What that file establishes, in short:

Conversational product? If "Analyze the Architecture" flagged a chatbot, assistant, or tool-calling agent, also follow ai-agent.md in this skill directory. It covers gen_ai.conversation.id (multi-turn grouping), what value belongs in user.id (a stable end-customer id, never a session id), tool-call payload shapes, and sub-agents. Without those the Users tab stays empty, and the Conversations tab fills with one throwaway single-turn conversation per request, because Traceway falls back to the OTel trace id. That is worse than empty: it looks like the feature is working.

Zero-code path for OpenRouter users: in OpenRouter Settings -> Observability, add an OpenTelemetry Collector destination pointing at https://<instance>/api/otel/v1/traces with header {"Authorization": "Bearer <project-token>"}. Docs: https://docs.tracewayapp.com/client/openrouter

Step 7: Frontend and Mobile

For browser RUM setup, read rum.md: version capabilities, release/environment/route dimensions, production collection policy and verification. Full device-aggregated RUM needs a compatible server and stable browser SDK 2.0.0 or later; browser SDK 1.x and a browser 2.0.0-beta.N prerelease do not satisfy that requirement. If the app cannot run such a release, report the limitation and integrate only available features.

Browser and mobile integrations use the Traceway SDKs. Choose the browser SDK generation from the app's installed packages and the live npm registry, not from SDK versions seen in a source checkout or an assumption about where latest points:

The <project-token>@https://<instance>/api/report connection string, the form the Connection page shows, is accepted by both browser generations and both Flutter generations; browser v2 and Flutter 2.x also accept the server base URL.

Browser (React / Vue / Svelte / jQuery / plain JS), three pieces, all expected:

  1. SDK: install the registry-verified version of @tracewayapp/react (or vue, svelte, jquery, frontend for plain JS) and initialize with the connection string (React: wrap the app in <TracewayProvider connectionString="...">). Captures errors and session replay; v2 adds request spans, breadcrumbs, web vitals and other performance metrics.
  2. Bundler plugin: npm install -D @tracewayapp/bundler-plugin, then add tracewayDebugIds() from @tracewayapp/bundler-plugin/vite (or /rollup, or TracewayDebugIdsWebpackPlugin from /webpack) to the bundler config, with source maps enabled (build.sourcemap: true / devtool: "source-map").
  3. Source map upload: npm install -D @tracewayapp/sourcemap-upload, then run traceway-sourcemaps --url <instance> --token <source-map-upload-token> --directory ./dist as a postbuild or CI step (env vars: TRACEWAY_URL, TRACEWAY_SOURCEMAP_TOKEN). The upload token comes from the browser project and is a CI secret, never committed.

For the per-framework init code (plain JS, React, Vue, Svelte/SvelteKit, jQuery), the shared SDK options, error filtering, custom attributes, distributed tracing, and the full debug-ID + source map pipeline, read the version-specific reference selected above (frontend-js-v2.md or frontend-js.md). Online docs: https://docs.tracewayapp.com/client/react (or vue, svelte, jquery, js-sdk); they describe 2.x, and the 1.x reference is https://docs.tracewayapp.com/client/js-sdk/v1.

Full-stack JS (Next.js, SvelteKit, Remix): only when "Analyze the Architecture" confirmed the framework's server actually serves the app in production. A frontend-only deployment gets just the browser pieces above; a separate backend follows "Backend OTel Setup". When it is genuinely full-stack, integrate both sides under the two confirmed projects: server side follows "Backend OTel Setup" with the backend project's token, and browser side follows the three pieces above with the frontend project's token. For Next.js specifically, use the instrumentation.ts framework hook in the "Next.js server exception" above; never apply the generic Node preload to it.

For the Next.js browser build, @tracewayapp/bundler-plugin currently has a webpack entry point, not a Turbopack one. Set productionBrowserSourceMaps: true, add TracewayDebugIdsWebpackPlugin only when !isServer && !dev (the plugin is production-only and must not replace Next's development source-map mode), and make the production build run next build --webpack (Next.js 16 defaults to Turbopack, which otherwise ignores this plugin). After building, confirm client .js files contain //# debugId= and their .js.map siblings contain debugId, then upload .next/static/chunks with the React project's source-map upload token.

Mobile, always the platform SDK, never OTel:

Step 8: Deployment and Server Metrics

Use the deployment and host-metrics choice confirmed in "Propose and Confirm the Project Map". If it remains unresolved, ask before changing deployment configuration:

  1. How is this project deployed? Docker on a VM / directly on a VM or bare metal / Kubernetes / serverless or PaaS.
  2. Do you want server (host) metrics tracked in Traceway? CPU, memory, disk, filesystem, network of the machine running the app.

| Deployment | Wants host metrics | What to do |

|---|---|---|

| Docker on a VM, or directly on a VM/host | Yes | Install the Traceway OTel Agent on the host (below). For Docker deploys this is the default; the agent goes on the host, not in a container. |

| Kubernetes | Any | Not the agent, which is a host service. Deploy the two collector workloads in kubernetes.md in this skill directory: a DaemonSet for node metrics, pod metrics and container logs, and a one-replica Deployment for cluster state and events. In-process app metrics, when the app has its own, flow via the OTLP metrics exporter from "Backend OTel Setup" (see "Metrics" there). |

| Serverless / PaaS | Any | No host to install on; skip. |

| Anything | No | Skip. |

On Kubernetes, stop here and read kubernetes.md in this skill directory. The four things that decide whether it works (service.name per node, the three *.utilization metrics that ship disabled, k8s.cluster.name, and root_path: /hostfs) are all easy to miss, and getting any of them wrong produces a plausible-looking config that reports nothing useful.

The agent is a tiny pre-configured OTel Collector that scrapes host metrics every 60s. It MUST use the same backend project token as the API, workers, tasks, and AI traces. Install it on the host (Linux systemd / macOS launchd; PowerShell installer exists for Windows):

curl -fsSL https://install.tracewayapp.com/install.sh | \
  TRACEWAY_TOKEN=<project-token> \
  TRACEWAY_ENDPOINT=https://<instance>/api/otel \
  TRACEWAY_SERVICE_NAME=<host-label, e.g. api-prod-eu-1> \
  bash

Metrics arrive within ~60s under their hostmetrics names (system.cpu.utilization, system.memory.usage, ...). The host is identified by the server_name tag, which comes from TRACEWAY_SERVICE_NAME; resource metadata such as host.name, host.id, host.arch, os.type, and cloud region is also retained, but it does not replace that canonical identity. Give every host a distinct TRACEWAY_SERVICE_NAME or the hosts cannot be told apart. The organization overview recognizes these hostmetrics directly, but the legacy Go SDK CPU/memory widgets still read their exact SDK metric names. Install the OTelemetry Server Agent dashboard template for the full set: open the command palette with Cmd K, search for it, and it installs a dashboard already wired to system.cpu.utilization, system.memory.*, system.filesystem.*, system.disk.* and system.network.*. Custom widgets cover anything the template misses. Agent repo: https://github.com/tracewayapp/traceway-otel-agent

Step 9: Verify

Every dashboard page named below is at <instance>/<page>: /endpoints, /issues, /tasks, /ai-traces, /logs, /dashboards. Set the time picker to the last 15 minutes before reading any of them. Verify each project independently and finish with a project-to-component summary.

When the CLI applied the plan, the local env files hold real values, so run local verification now rather than deferring it. Deployment environments are verified only after the user completes the website's Next Steps panel; re-state which variables must exist there before that verification can pass.

  1. Backend project
  1. Browser project
  1. Each mobile project
  1. Credential and topology audit
  1. If the traceway CLI is installed, run traceway login, select the backend project with traceway projects use <project-id> (or pass --project <project-id> on every call), then:

```bash

traceway endpoints list --since 15m

traceway exceptions list --since 15m

traceway logs query --since 15m

traceway metrics query --name system.cpu.utilization --since 15m

```

Tasks and AI traces have no list subcommand, only show <id>, so check those two on /tasks and /ai-traces in the dashboard.

  1. Hand the user a test drive. After your own verification, finish by telling the user exactly how to see the connection working themselves: two or three copy-paste actions against THEIR app, each paired with the Traceway page it lands on. For example: hit one real parametrized endpoint a few times (curl <their-app>/api/users/1, /2, /3 becomes a single row on /endpoints within seconds), trigger their app's error path or a deliberate test exception (appears on /issues linked to the failing request), and run or wait for one background job (/tasks). Use their actual routes and commands, remind them to set the dashboard time picker to the last 15 minutes, and note that approval already dropped them on the right project's dashboard.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.