Endpoint
Use the per-app host when you can: it lets Apsio move an app to another region without a
change on your side.
Authentication
Send the app key in theApsio-App-Key header. App keys ship inside apps, so they are not
secrets; they only route data to your project.
With the OpenTelemetry environment variables:
Optional headers
Exporters that can set them should also send:
Without them, data is still accepted, but a retried request may be stored twice and
timestamps are stored as sent.
Leave
Apsio-Sent-At out only when your code does not run at send time, because the
operating system sends the request for you (a background URLSession on Apple platforms): a
value written earlier would shift every timestamp by the delay. Any request your code sends,
including from a background job, sets it.
Your backend’s spans in a trace
Apps send a W3Ctraceparent header to the hosts you list in firstPartyHosts, so the work your
backend does for a request shares its trace id. Send those backend spans to Apsio with the
exporter above, using the app key of the app that made the request, and the request’s trace page
shows them under the request, in a group of their own (and GET /v1/projects/{projectId}/traces/{traceId} returns them with source: backend).
Apsio tells them apart by session.id: an app’s spans carry it on the span or its Resource
(spec 2.4), and a span without one is a backend’s. If you
send an app’s own telemetry over OTLP without an Apsio SDK, set session.id, or its requests
read as a backend’s and are not in the network views.
- They are data without a session, so they count toward that allowance: not included on Free or the trial,
where they are refused with the
403below, and 10 GB a month on Pro. See Fair use. A refused span leaves no record in Apsio, so no trace can say it lost one: your exporter’s403is the signal. The console’s Network page says it too while the month’s allowance is used up, or on Free once the project has held backend spans before. - They are kept as long as the app’s detail data, and erasing the project or the organization
removes them. Erasing one app user removes them only when they carry that user’s
user.hash(Privacy). - They are not the app’s requests: the network views, vitals and endpoint alerts count only the app’s own spans, even when a backend span names the same endpoint.
- Your APM keeps its link: with the project’s APM link set, the trace still opens there too.
Responses
On a retried response, honor
Retry-After in both of its forms, a number of seconds or an
HTTP date: wait the longer of your backoff and that time, up to 30 minutes. Keep the same
body and Apsio-Batch-Id on every retry.
Error bodies are an OTLP Status with a code and a message, in the encoding of the
request.