Skip to main content

Returns

Returns a list of the created Span objects. The call is a partial success, not all-or-nothing. The API creates every valid span and drops only the ones with a data problem, such as an empty name, a negative latency, an oversize payload, or an unknown trace. So the returned list can be shorter than the list you sent. The SDK logs one warning that names each dropped span by its position in your list, with the reason. Each drop is also counted on the span’s trace, so the dashboard shows it too. If the API drops every span in the call, it returns a 400 error instead. One case is not a partial success: a span belonging to a trace you are not allowed to write returns a 403 and creates nothing at all.

Example

Parameters

list[SpanBase]
required
List of span objects to create. Each span should include trace_id, name, and optionally other fields.

SpanBase Fields

For type, other string values are sent to the API unchanged. The API never drops a span for an unrecognized type. It normalizes the value to a known span type and keeps your original label in the span’s metadata, under the key galtea.span.original_type.