Documentation
Getting Started
Connect an application with a coding agent or manual setup.
Telemetry Machine gives you two ways to connect an application:
- AI setup lets a coding agent instrument your application, create the required datasets and API keys, and verify that data arrives.
- Manual setup lets you create the datasets and API keys yourself, then use the generated OpenTelemetry configuration.
Both paths start in the same onboarding screen.
Create your account
- Sign up with your email address and a password.
- Verify your email address, then sign in.
- Open an explorer such as Traces. If your organization has no datasets, Telemetry Machine takes you to onboarding.
Option 1: Set up with a coding agent
Use this path when a coding agent can edit your application and run commands in its development environment.
- Open your application's repository in your coding agent.
- In Telemetry Machine, select Start AI setup.
- Copy the generated prompt and give it to your agent. The prompt includes a short-lived onboarding credential that expires after one day.
- Choose whether the agent should install the Telemetry Machine skills for this project only or globally for all projects.
- Let the agent inspect your application and complete the setup.
The generated prompt looks like this. Telemetry Machine replaces <one-day onboarding token> with your credential.
Start by asking me whether I want the Telemetry Machine skills downloaded only for this project or globally.
If I choose project-local, download them under `<repo root>/skills/telemetry-machine/`.
If I choose global, use this agent's global skills directory.
Download the full Telemetry Machine skill bundle from:
`https://telemetrymachine.com/docs/skills/index.json`
Read the downloaded `otel-instrumentation` skill and its `verification-checklist` reference before changing code.
Use a TODO tool, if available, to make sure you cover each step of `verification-checklist`.
You must use `tm-cli`. If `tm-cli` is not installed, download it using the latest `tm-cli` manifest:
`https://telemetrymachine.com/downloads/tm-cli/manifest.json`
Choose the artifact for this OS/architecture, download its URL, verify its `sha256` if possible, extract `tm-cli`, and place the binary in `~/.local/bin` or somewhere else in `$PATH` that does not need sudo.
Provide this PAT (1-day expiry) to `tm-cli` as `TM_API_KEY` for this session:
`export TM_API_KEY="<one-day onboarding token>"`
If `tm-cli` has no context yet, create and select an onboarding context:
```bash
tm-cli contexts create telemetry-machine-onboarding --base-url https://telemetrymachine.com --api-key "$TM_API_KEY"
tm-cli contexts use telemetry-machine-onboarding
```
Run `tm-cli orgs list` to confirm access.
Once onboarding is fully complete, tell me that this PAT expires in 1 day. After onboarding, I should create a longer-term PAT and store it in `tm-cli`'s config. The path can be found with `tm-cli config path`.
Keep in mind:
Deploy and validate as you go.
If you do not have or lost access to an ingest key's value, feel free to create a new one.
The agent uses the Telemetry Machine skills and tm-cli to:
- add or update the OpenTelemetry instrumentation;
- create the required traces, logs, or metrics datasets and ingest keys;
- deploy or run the application; and
- verify that the application is sending data.
Keep the onboarding page open if you want to follow its progress. It shows Agent connected after the agent checks in with tm-cli. Datasets created by the agent appear on the page. Select one to open its explorer.
The onboarding credential is only for initial setup. If you want to keep using tm-cli after onboarding, create a longer-lived personal access token and store it in the tm-cli config file.
Option 2: Set up manually
- Select Continue with manual setup.
- Choose the data you want to send: traces, logs, metrics, or events.
- Name the dataset and choose any optional starter atoms.
- Create the dataset. Telemetry Machine also creates a starter API key for it.
- Copy the API key and store it securely. Its full value is only shown once.
- Choose the generated setup for the OpenTelemetry Collector, Node.js, or Python.
- Add the configuration to your application and run or deploy it.
- Open the matching explorer and confirm that your data arrives.
You can repeat the manual wizard to create more datasets for other signal types, services, or environments.