TracesAndStats

class TracesAndStats(    trace: List<Trace> = emptyList(),     stats_with_context: List<ContextualizedStats> = emptyList(),     referenced_fields_by_type: Map<String, ReferencedFieldsForType> = emptyMap(),     internal_traces_contributing_to_stats: List<Trace> = emptyList(),     unknownFields: ByteString = ByteString.EMPTY) : Message<TracesAndStats, Nothing>

A sequence of traces and stats. If Report.traces_pre_aggregated (at the top level of the report) is false, an individual operation should either be described as a trace or as part of stats, but not both. If that flag is true, then all operations are described as stats and some are also described as traces.

Constructors

Link copied to clipboard
constructor(    trace: List<Trace> = emptyList(),     stats_with_context: List<ContextualizedStats> = emptyList(),     referenced_fields_by_type: Map<String, ReferencedFieldsForType> = emptyMap(),     internal_traces_contributing_to_stats: List<Trace> = emptyList(),     unknownFields: ByteString = ByteString.EMPTY)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adapter: ProtoAdapter<TracesAndStats>
Link copied to clipboard

This field is used to validate that the algorithm used to construct stats_with_context matches similar algorithms in Apollo's servers. It is otherwise ignored and should not be included in reports.

Link copied to clipboard

This describes the fields referenced in the operation. Note that this may include fields that don't show up in FieldStats (due to being interface fields, being nested under null fields or empty lists or non-matching fragments or @include or @skip, etc). It also may be missing fields that show up in FieldStats (as FieldStats will include the concrete object type for fields referenced via an interface type).

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

Functions

Link copied to clipboard
fun copy(    trace: List<Trace> = this.trace,     stats_with_context: List<ContextualizedStats> = this.stats_with_context,     referenced_fields_by_type: Map<String, ReferencedFieldsForType> = this.referenced_fields_by_type,     internal_traces_contributing_to_stats: List<Trace> = this.internal_traces_contributing_to_stats,     unknownFields: ByteString = this.unknownFields): TracesAndStats
Link copied to clipboard
fun encode(sink: BufferedSink)
Link copied to clipboard
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