Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Capture an error group

Captures one error occurrence.

Captures one error occurrence. It is grouped by fingerprint when the caller sets one, else by exception type and the symbolicated in-app stack; release is never part of the group. A new occurrence reopens a resolved group. Secrets and personal data are scrubbed by the environment's Scrubbing Policy before storage. A fingerprint-equal replay bills no second new-error unit. Under quota pressure the response says what to sample. Browsers call it with a publishable key that holds observability:ingest (CORS allowed, rate-limited per environment).

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

#Request

FieldTypeWhat it is
parentstringThe parent the method acts in. Required.
error_eventErrorEventThe occurrence; only record fields are read. Required.

#ErrorEvent

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/error_groups/{error_group}/error_events/{error_event}.
metaResourceMetaResource metadata.
event_timetimestampWhen it happened. Required.
exception_typestringThe exception type. Required.
messagestringThe exception message.
stack_framesStackFrame[]Stack frames, innermost last.
service_namestringThe emitting service.
releasestringThe release the emitter ran.
breadcrumbsBreadcrumb[]Breadcrumbs before the error, oldest first, at most 100.
tagsmap<string, string>Typed tags, at most 64.
fingerprintstringOverride the grouping fingerprint.
trace_idstringW3C trace id (32 hex).
span_idstringW3C span id (16 hex).
stackstringThe stack as the runtime printed it (JavaScript Error.stack), at most 64 KiB. When stack_frames is empty, V8 (at fn (file:line:col)) and Gecko/WebKit (fn@file:line:col) lines are parsed into stack_frames, innermost last; when stack_frames is set, it wins and stack is kept as sent. Either way the frames are then mapped through the source maps uploaded for release before grouping. Scrubbed before storage.

#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.

#StackFrame

FieldTypeWhat it is
function_namestringThe function.
file_pathstringThe file or module.
lineint32The line, from 1.
columnint32The column, from 1.
app_frameboolWhether the frame is the customer's own code.
FieldTypeWhat it is
event_timetimestampWhen it happened. Required.
categorystringA category, for example http or navigation.
messagestringThe message.
severityLogSeverityThe severity. One of trace, debug, info, warn, error, fatal.

#Response

FieldTypeWhat it is
error_eventErrorEventThe stored occurrence.
sample_ratedoubleKeep this fraction of later occurrences, 0 to 1; 1 when no pressure.

#ErrorEvent

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/error_groups/{error_group}/error_events/{error_event}.
uidstringerr_<cell><ulid>; never reused. Output only.
metaResourceMetaResource metadata.
event_timetimestampWhen it happened. Required.
exception_typestringThe exception type. Required.
messagestringThe exception message.
stack_framesStackFrame[]Stack frames, innermost last.
service_namestringThe emitting service.
releasestringThe release the emitter ran.
breadcrumbsBreadcrumb[]Breadcrumbs before the error, oldest first, at most 100.
tagsmap<string, string>Typed tags, at most 64.
fingerprintstringOverride the grouping fingerprint.
trace_idstringW3C trace id (32 hex).
span_idstringW3C span id (16 hex).
stackstringThe stack as the runtime printed it (JavaScript Error.stack), at most 64 KiB. When stack_frames is empty, V8 (at fn (file:line:col)) and Gecko/WebKit (fn@file:line:col) lines are parsed into stack_frames, innermost last; when stack_frames is set, it wins and stack is kept as sent. Either way the frames are then mapped through the source maps uploaded for release before grouping. Scrubbed before storage.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#StackFrame

FieldTypeWhat it is
function_namestringThe function.
file_pathstringThe file or module.
lineint32The line, from 1.
columnint32The column, from 1.
app_frameboolWhether the frame is the customer's own code.
FieldTypeWhat it is
event_timetimestampWhen it happened. Required.
categorystringA category, for example http or navigation.
messagestringThe message.
severityLogSeverityThe severity. One of trace, debug, info, warn, error, fatal.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/error_groups:capture" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"error_event":{"event_time":{},"exception_type":"…"}}'