Hanzo
OpenapiO11y

Adds a mapper to a group: which field context it reads, the move or copy it…

Adds a mapper to a group: which field context it reads, the move or copy it performs, and whether it is on.

POST /v1/o11y/span_mapper_groups/{groupId}/span_mappers

Addresshttps://api.hanzo.ai/v1/o11y/span_mapper_groups/{groupId}/span_mappers
MethodPOST
OperationCreateSpanMapper
AuthAuthorization: Bearer $HANZO_API_KEY

Adds a mapper to a group: which field context it reads, the move or copy it performs, and whether it is on.

Callers need the admin role; the runtime's own gate enforces it.

Request

10 fields, body application/json (required).

FieldInTypeRequiredDescription
groupIdpathstringyes
configbodyo11y.SpanMapperConfig
config.sourcesbodyo11y.SpanMapperSource[]
config.sources[].contextbodyany
config.sources[].keybodystring
config.sources[].operationbodyany
config.sources[].prioritybodyinteger
enabledbodyboolean
fieldContextbodyany
namebodystring

Response

StatusBodyMeaning
201o11y.O11ySpanMapperOutcreated

201 body — 17 fields.

FieldInTypeAlwaysDescription
databodyo11y.SpanMapper
data.configbodyo11y.SpanMapperConfig
data.config.sourcesbodyo11y.SpanMapperSource[]
data.config.sources[].contextbodyany
data.config.sources[].keybodystring
data.config.sources[].operationbodyany
data.config.sources[].prioritybodyinteger
data.createdAtbodystring (date-time)
data.createdBybodystring
data.enabledbodyboolean
data.fieldContextbodyany
data.group_idbodyany
data.idbodyany
data.namebodystring
data.updatedAtbodystring (date-time)
data.updatedBybodystring
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y span_mapper_groups span_mappers create <groupId>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page