Your agent chooses the startup changes and verifies the signals your application emits. Give it the application repository and access to its secret configuration.
Start with ingest key setup. Keep credentials in your deployment secret store.The SDK adds Keep your existing receivers and exporters: Struct can be one destination among several. This example uses
Configure instrumentation
Set up your languageās OpenTelemetry SDK with an OTLP HTTP exporter first. These standard environment variables configure exporters that read them; they do not switch an exporter chosen in code from gRPC to HTTP (Go, for example, needsotlptracehttp, not otlptracegrpc). Then point it at Struct:/v1/traces, /v1/logs, and /v1/metrics to the endpoint itself. Use http/protobuf or http/json: Struct does not accept OTLP over gRPC.Your own OpenTelemetry Collector
Add anotlphttp exporter for Struct and list it in each pipeline you want to send:compression: none; keep each uncompressed request below 2 MiB. Use otlphttp, not the gRPC otlp exporter.Limits
The SDKs batch by record count, not size, so very large logs or captured message content can still go over 2 MiB. Reduce those if an SDK gets
413. A collector that gets 413 can lower send_batch_size and send_batch_max_size.A 429 means your workspace is at its own limit, and the response says which in the x-struct-ingest-limit header. With usage-cap, the workspace has sent its Free plan allowance and its telemetry is paused until the allowance resets or the plan changes; Retry-After gives the seconds to wait, at most 600, so exporters drop the batch instead of retrying it, unless the allowance resets within their retry budget.