Your agent can inspect the application, reuse its existing telemetry and choose the right SDK or exporter. You supply access to the workspace and deployment secrets when needed. It should finish with evidence from an operation the application actually ran.
Choose the instrumentation path
Inspect the application’s language, startup command and existing OpenTelemetry providers before adding instrumentation. Create or select the workspace through Quickstart.Create an ingest key
An ingest key starts withpk-. It sends telemetry, and it also reads the configuration Struct keeps for your services, so treat it as a secret: store it in your application’s secret configuration; do not commit it, put it in frontend code or paste it into chat.For a claimed workspace, an admin authorizes key management first:struct init --no-wait, use its saved temporary login instead; you can create the ingest key before a person claims ownership. A member in an existing workspace can ask an admin for a key.Create a key and capture its one-time value without printing it to the transcript:STRUCT_INGEST_KEY for a local process, or save it in the secret manager referenced by your deployment template. Key lists return metadata, not the secret. Use one key per service so you can revoke it independently with struct keys ingest revoke <id>.Deployment reality:- Inspect deployment templates / IaC before editing a live service: manual changes to a running cloud app (such as Azure Container Apps or Kubernetes) get overwritten on the next deploy unless they are also saved in the template.
- Updating a secret or environment variable does not take effect until the service restarts or rolls out a new revision.
- Always set a clear
service_name(OTEL_SERVICE_NAME) andenvironment(deployment.environment.name, e.g.productionorstaging; the Python SDK defaults todevelopment). - If you export to a custom ingest endpoint (
STRUCT_INGEST_URLother thanhttps://ingest.struct.ai), also setSTRUCT_API_URLon the service process when using Observations.
Verify instrumentation
Start the service with the configured environment and exercise a real request or operation. Allow for the SDK or collector to flush its batch, then run:serviceName. Each signal has a count and lastSeenAt, or is null when absent. Check the signals your setup emits; the Node SDK’s AI spans alone do not prove that application logs or metrics arrive. The time window uses the records’ timestamps, so check the service clock if recent activity is missing.With CLI 5.0.0 or newer, inspect a small trace sample:checkout-api with your service name. This verifies traces only; use the service summary for logs and metrics. 202 from ingest means the batch was accepted, while observing the records confirms they can be queried. Once base telemetry is visible, add targeted Observations for Python services and create telemetry monitors.An unclaimed workspace that pauses retains configuration and firing history, but queries, previews and setup changes wait for ownership claim.If data does not arrive
Failed-export logs show the status code Struct answered with. The Python SDK keeps them quiet by default: enable DEBUG logging for thestruct_sdk logger, with a handler attached, to see them. The Node SDK sets no OpenTelemetry diagnostic logger, so export errors are silent unless your app sets one, for example diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.ERROR) from @opentelemetry/api.