Hanzo
OpenapiO11y

Returns the service dependency graph over the requested window: every…

Returns the service dependency graph over the requested window: every parent→child edge observed, with call and error rates and latency percentiles per…

POST /v1/o11y/dependency_graph

Addresshttps://api.hanzo.ai/v1/o11y/dependency_graph
MethodPOST
Operationpost_o11y_dependency_graph
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the service dependency graph over the requested window: every parent→child edge observed, with call and error rates and latency percentiles per edge.

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

Request

9 fields, body application/json (required).

FieldInTypeRequiredDescription
endbodystringyesEnd is the window end, as epoch nanoseconds.
startbodystringyesStart is the window start, as epoch nanoseconds.
tagsbodyo11y.O11yTagFilter[]Tags narrow the graph to spans matching every condition.
tags[].boolValuesbodyboolean[]BoolValues are the values matched when the tag holds booleans.
tags[].keybodystringKey is the tag to test.
tags[].numberValuesbodynumber[]NumberValues are the values matched when the tag holds numbers.
tags[].operatorbodystringOperator is the comparison to apply — in, not_in, equals, contains and the other operators the trace filter grammar names.
tags[].stringValuesbodystring[]StringValues are the values matched when the tag holds strings.
tags[].tagTypebodystringTagType says which kind of value the tag holds: string, number or bool.

Response

StatusBodyMeaning
200o11y.O11yDependency[]ok

200 body — 10 fields.

FieldInTypeAlwaysDescription
[].callCountbodyintegerCallCount is how many calls crossed the edge in the window.
[].callRatebodynumberCallRate is calls per second.
[].childbodystringChild is the called service.
[].errorRatebodynumberErrorRate is the percentage of calls that erred.
[].p50bodynumberP50 is the median call duration, in nanoseconds.
[].p75bodynumberP75 is the 75th-percentile call duration, in nanoseconds.
[].p90bodynumberP90 is the 90th-percentile call duration, in nanoseconds.
[].p95bodynumberP95 is the 95th-percentile call duration, in nanoseconds.
[].p99bodynumberP99 is the 99th-percentile call duration, in nanoseconds.
[].parentbodystringParent is the calling service.

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y dependency_graph \
  --end <end> \
  --start <start>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page