Skip to main content
Sending one synthetic run to Atlan Trident proves traces arrive under the agent and workspace you intended. Use it before you rely on traces from production. To choose how your agent sends traces, start with Send and inspect traces. To copy traces you already store elsewhere, see Import traces from external stores instead.

Before you begin

Before you start, make sure you have:
  • Sending identity: The API key of the identity the traces belong to. For an agent, use the agent’s own key from Settings > Identity on its profile. See Send as right identity.
  • Workspace: The workspace the traces belong in, and its ID. In the web app or Atlan Trident Desktop, open the workspace and select Copy workspace ID from the More actions (⋯) menu.
  • Synthetic run: A test run with no customer data, private prompts, or production responses, whose trace you can recognize.
1

Send as right identity

Atlan files a trace under the identity whose API key sent it. Send an agent’s runs with the agent’s own key; runs sent with a personal key are filed under that person and do not appear under the agent, whatever the service name. Copy the agent’s key from Settings > Identity on its profile, where it is shown once when created or rotated.Keep the key and workspace ID in an approved secret store, never in code, configuration files, or logs. Load them into the environment of the process that sends:
Set ATLAN_BASE_URL only when you send to a host other than https://api.atlan.com.
2

Send synthetic run

Pick the tab for your runtime. Record the start time and root span name so you can match the run later. For an agent built on a supported framework, see Agent frameworks.
Install the SDK with tracing:
Trace one run, then flush before the process exits:
flush() raises when the exporter reported a delivery error. Inspect client.export_health for its status, failure count, and error category.
3

Verify trace arrived

Read the trace back from the intended scope and compare it with what you sent:
  • In the app: Open the agent, select Usage, and find the run in Recent runs. Match it by start time and root span name. With the SDK and ATLAN_AGENT_ID set, Sessions also lists a session named trace-ticket-4821.
  • Through the API: Read the agent’s traces with GET /agent/v1/agents/{agent_id}/traces, or a trace sent under your own identity with GET /registry/v1/users/{user_id}/traces/{trace_id}, and confirm its workspace_id.
The trace is delivered when you can read it back from the intended workspace, under the intended agent, with the session and timing you sent. A clean flush(), a 200, or a healthy /status is not enough on its own. Remove the synthetic run if your test policy requires it.

Troubleshooting

If a trace lands under a person instead of the agent, never appears after a 200, or flush() fails, see Trace errors. For rejected batches, see Trace limits and privacy.

Next steps

See also