Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Write a log entry

Ingests a batch of log entries atomically.

This method is not served on the public API. api.sylphx.com does not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.

Ingests a batch of log entries atomically. The same Idempotency-Key and digest replays the same batch; a different digest under the key conflicts.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/log_entries:write
  • Scope observability:ingest
  • Effect write — a successful call changes state.
  • Collection log_entries

#Request

FieldTypeWhat it is
parentstringThe parent the method acts in. Required.
log_entriesLogEntry[]The entries, at most 1000; only record fields are read. Required.

#LogEntry

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/log_entries/{log_entry}.
metaResourceMetaResource metadata.
log_timetimestampWhen the event happened. Required.
severityLogSeverityThe severity. Required. One of trace, debug, info, warn, error, fatal.
bodystringThe message. Required.
service_namestringThe emitting service, for example checkout-api.
attributesmap<string, string>Typed attributes, at most 64.
trace_idstringW3C trace id (32 hex).
span_idstringW3C span id (16 hex).

#ResourceMeta

FieldTypeWhat it is
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.

#Response

FieldTypeWhat it is
admitted_countint32Entries admitted.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/log_entries:write" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"log_entries":[{"body":"…","log_time":{},"severity":"trace"}]}'