com.walmartlabs.lacinia.tracing

added in 0.38.0

Support for tracing of requests, as per the Apollo tracing specification.

create-timing-start

(create-timing-start)

Captures the initial timing information that is used later to calculate offset from the start time (via offset-from-start).

duration

(duration start-offset)

Returns the number of nanoseconds since the start offset.

enable-tracing

(enable-tracing context)

Modifies the application context to enable tracing.

Tracing can signficantly slow down execution of the query document, both because of the essential overhead, and because certain optimizations are disabled during a traced request.

inject-tracing

(inject-tracing result timing-start parse-phase validation-phase resolver-timings)

Injects the tracing data into result map, under :extensions.

offset-from-start

(offset-from-start timing-start)

Given the initial timing information from create-timing-start, calculates the start offset for an operation, as a number of nanoseconds.

timestamp

(timestamp)

Returns the current time as a RFC-3339 string.