Skip to content
Monitoring
Skill

/traceway-setup

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

From plugin
tw
1.8k5 skills

Claude Code

$ npx -y skills add tracewayapp/traceway --skill traceway-setup --agent claude-code

SKILL.md

traceway-setup.SKILL.md
name: traceway-setup
description: 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 runs on one part of a codebase when the request names it, e.g. `/traceway-setup track ai use` (find the LLM calls and instrument them with the OpenTelemetry GenAI conventions), background jobs, logs, metrics, the browser app, or a single directory. Also use it to embed a Traceway dashboard in the user's own application. Backends use OTLP/HTTP; browser and mobile clients use separate Traceway SDK projects. Accept a project token and instance URL or an organization setup token (`tws_...`) and URL; with no token, analyze first and guide setup-token acquisition. Treat any `tws_` token as a setup token.

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

  • Inspect before asking for credentials or changing code.
  • Explain what was detected, what is already tracked, and how each production component should report to Traceway.
  • Present the proposed project map, or the one-line plan for a scoped run, and wait for the user to confirm it before implementation.
  • There are two classes of credentials, treated differently:
  • **Setup tokens** (prefix `tws_`) are org-scoped, expire in 6 hours, and can only propose a setup plan; nothing is created until the user approves the plan on the Traceway website. They are designed to transit chat, and asking the user to paste one is expected.
  • **Project ingest tokens and upload tokens** are long-lived. Never print their values, never ask the user to paste them into chat, and never commit them. When Step 3's apply script (or the `traceway` CLI) writes an approved plan's ingest tokens into env files, read only the variable names and statuses from its output, never the values.
  • Never print token values found in files or the environment. Report only that a value exists and the variable name that carries it.
  • Never commit tokens or filled connection strings.

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:

  • the repository has exactly one deployable component, and
  • the user supplied (or the environment already carries) an instance URL and a project ingest token (not a `tws_` setup token, which exists to create projects), and
  • the token's project already matches that component.

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](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](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

Read more
@tracewayapp
Ships withtw

The only tool you need to know what is happening and how to fix it.

Stars on GitHub

Momentum

stars in total
1.8k
Star history of tracewayapp/traceway on GitHub, a chart by star-history.com

Other skills on tw.

integration-test

integration-test

Run a live-instance verification of traceway-cli that goes beyond the Go smoke suite — exercises real-data detail endpoints,…

@tracewayapp@tracewayappInstall Skill
traceway-write

traceway-write

Configure Traceway alerting, SLOs, on-call routing, personal notifications, dashboards and browser collection, or perform…

@tracewayapp@tracewayappInstall Skill
traceway-learn

traceway-learn

The full guide to Traceway, the observability platform. Explains every part of the product and how it is meant to be used: issues…

@tracewayapp@tracewayappInstall Skill
traceway

traceway

Operate a Traceway observability instance through the traceway CLI: log in, query exceptions, logs, endpoints, and metrics,…

@tracewayapp@tracewayappInstall Skill

More skills from other plugins.

agentdb-advanced

agentdb-advanced

Master advanced AgentDB features including QUIC synchronization, multi-database management, custom distance metrics, hybrid…

ruview6d104k
@ruvnet@ruvnetInstall Skill
install

install

Kubeshark installation and deployment skill. Use this skill whenever the user wants to install Kubeshark, deploy Kubeshark to a…

kubeshark13d12k
@kubeshark@kubesharkInstall Skill
scan

scan

Scan a project with sentrux to get structural health grades (A-F) across 14 dimensions including coupling, cycles, cohesion, dead…

sentrux8mo3.3k
@sentrux@sentruxInstall Skill
phone-input

phone-input

Call the user on the phone for real-time voice conversations. Use this when you need input, want to report on completed work, or…

callme7mo2.7k
@zeframlou@zeframlouInstall Skill

Questions about traceway-setup.

Which coding agents can use traceway-setup?
traceway-setup installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.