FetchNode

class FetchNode(val service_name: String = "", val trace_parsing_failed: Boolean = false, val trace: Trace? = null, val sent_time_offset: Long = 0, val sent_time: Instant? = null, val received_time: Instant? = null, unknownFields: ByteString = ByteString.EMPTY) : Message<Trace.QueryPlanNode.FetchNode, Nothing>

This represents a node to send an operation to an implementing service

Constructors

Link copied to clipboard
constructor(service_name: String = "", trace_parsing_failed: Boolean = false, trace: Trace? = null, sent_time_offset: Long = 0, sent_time: Instant? = null, received_time: Instant? = null, unknownFields: ByteString = ByteString.EMPTY)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val received_time: Instant?
Link copied to clipboard
val sent_time: Instant?

Wallclock times measured in the Router/Gateway for when this operation was sent and received.

Link copied to clipboard

relative to the outer trace's start_time, in ns, measured in the Router/Gateway.

Link copied to clipboard

XXX When we want to include more details about the sub-operation that was executed against this service, we should include that here in each fetch node. This might include an operation signature, requires directive, reference resolutions, etc.

Link copied to clipboard
val trace: Trace?

This Trace only contains start_time, end_time, duration_ns, and root; all timings were calculated on the subgraph, and clock skew will be handled by the ingress server.

Link copied to clipboard
Link copied to clipboard
expect open val unknownFields: ByteString

Functions

Link copied to clipboard
fun copy(service_name: String = this.service_name, trace_parsing_failed: Boolean = this.trace_parsing_failed, trace: Trace? = this.trace, sent_time_offset: Long = this.sent_time_offset, sent_time: Instant? = this.sent_time, received_time: Instant? = this.received_time, unknownFields: ByteString = this.unknownFields): Trace.QueryPlanNode.FetchNode
Link copied to clipboard
expect fun encode(): ByteArray
expect fun encode(sink: BufferedSink)
Link copied to clipboard
expect fun encodeByteString(): ByteString
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String