OriginChainDB
Database endpoints

Report client diagnostics

Send an opted-in SDK's call diagnostics to the database's telemetry pipeline.

POST /v1/tenants/{tenant}/diagnostics

Report opted-in client call metadataAccepted diagnostics do not mean the database queries succeeded.
  1. Collect opted-in diagnosticsPrepare call timing, transport and outcome metadata.
  2. Submit the event batchOne invalid event rejects the request.
  3. Inspect accepted and droppedCheck how the telemetry pipeline handled the batch.

Before you start

Use your database bearer token.

Connection setup

Send only observed metadata from a client that has opted in. Replace the example path, version, request ID and timings; never include SQL, row data, credentials or stack traces.

Path parameters

FieldTypeRequired
tenantstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values
  • 1 to 32 events per request.
  • A request with one invalid event is refused whole (422 invalid_diagnostics) and relays nothing.
  • Reporting is opt-in. Check whether your installed SDK exposes a diagnostics reporter; a local request observer does not automatically send events to this endpoint.
FieldTypeRequired
eventsobject[]Required
Fields in events
FieldTypeRequired
attemptintegerOptional
clientstringRequired
client_versionstringRequired
duration_msnumberRequired
error_categorystringOptional
error_codestringOptional
http_statusintegerOptional
logical_request_idstringRequired
methodstringRequired
outcomestringRequired
pathstringRequired
request_idstringOptional
transportstringOptional

Read the result

accepted and dropped describe diagnostic events, not successful database queries. Send only opted-in call metadata; a single invalid event rejects the request rather than partially relaying it.

Response statuses

HTTP status reference
StatusWhat to do
202Accepted
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
503Honor Retry-After when present; check write outcomes.
ยฉ 2026 Silicoyn Technologies Pvt Ltd