generated

package
v0.17.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Trace_CachePolicy_Scope_name = map[int32]string{
		0: "UNKNOWN",
		1: "PUBLIC",
		2: "PRIVATE",
	}
	Trace_CachePolicy_Scope_value = map[string]int32{
		"UNKNOWN": 0,
		"PUBLIC":  1,
		"PRIVATE": 2,
	}
)

Enum value maps for Trace_CachePolicy_Scope.

View Source
var (
	Trace_HTTP_Method_name = map[int32]string{
		0: "UNKNOWN",
		1: "OPTIONS",
		2: "GET",
		3: "HEAD",
		4: "POST",
		5: "PUT",
		6: "DELETE",
		7: "TRACE",
		8: "CONNECT",
		9: "PATCH",
	}
	Trace_HTTP_Method_value = map[string]int32{
		"UNKNOWN": 0,
		"OPTIONS": 1,
		"GET":     2,
		"HEAD":    3,
		"POST":    4,
		"PUT":     5,
		"DELETE":  6,
		"TRACE":   7,
		"CONNECT": 8,
		"PATCH":   9,
	}
)

Enum value maps for Trace_HTTP_Method.

View Source
var File_apollo_trace_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ContextualizedQueryLatencyStats

type ContextualizedQueryLatencyStats struct {
	QueryLatencyStats *QueryLatencyStats `protobuf:"bytes,1,opt,name=query_latency_stats,json=queryLatencyStats,proto3" json:"query_latency_stats,omitempty"`
	Context           *StatsContext      `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

func (*ContextualizedQueryLatencyStats) Descriptor deprecated

func (*ContextualizedQueryLatencyStats) Descriptor() ([]byte, []int)

Deprecated: Use ContextualizedQueryLatencyStats.ProtoReflect.Descriptor instead.

func (*ContextualizedQueryLatencyStats) GetContext

func (*ContextualizedQueryLatencyStats) GetQueryLatencyStats

func (x *ContextualizedQueryLatencyStats) GetQueryLatencyStats() *QueryLatencyStats

func (*ContextualizedQueryLatencyStats) ProtoMessage

func (*ContextualizedQueryLatencyStats) ProtoMessage()

func (*ContextualizedQueryLatencyStats) ProtoReflect

func (*ContextualizedQueryLatencyStats) Reset

func (*ContextualizedQueryLatencyStats) String

type ContextualizedStats

type ContextualizedStats struct {
	Context           *StatsContext      `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	QueryLatencyStats *QueryLatencyStats `protobuf:"bytes,2,opt,name=query_latency_stats,json=queryLatencyStats,proto3" json:"query_latency_stats,omitempty"`
	// Key is type name. This structure provides data for the count and latency of individual
	// field executions and thus only reflects operations for which field-level tracing occurred.
	PerTypeStat map[string]*TypeStat `` /* 184-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ContextualizedStats) Descriptor deprecated

func (*ContextualizedStats) Descriptor() ([]byte, []int)

Deprecated: Use ContextualizedStats.ProtoReflect.Descriptor instead.

func (*ContextualizedStats) GetContext

func (x *ContextualizedStats) GetContext() *StatsContext

func (*ContextualizedStats) GetPerTypeStat

func (x *ContextualizedStats) GetPerTypeStat() map[string]*TypeStat

func (*ContextualizedStats) GetQueryLatencyStats

func (x *ContextualizedStats) GetQueryLatencyStats() *QueryLatencyStats

func (*ContextualizedStats) ProtoMessage

func (*ContextualizedStats) ProtoMessage()

func (*ContextualizedStats) ProtoReflect

func (x *ContextualizedStats) ProtoReflect() protoreflect.Message

func (*ContextualizedStats) Reset

func (x *ContextualizedStats) Reset()

func (*ContextualizedStats) String

func (x *ContextualizedStats) String() string

type ContextualizedTypeStats

type ContextualizedTypeStats struct {
	Context     *StatsContext        `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	PerTypeStat map[string]*TypeStat `` /* 184-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ContextualizedTypeStats) Descriptor deprecated

func (*ContextualizedTypeStats) Descriptor() ([]byte, []int)

Deprecated: Use ContextualizedTypeStats.ProtoReflect.Descriptor instead.

func (*ContextualizedTypeStats) GetContext

func (x *ContextualizedTypeStats) GetContext() *StatsContext

func (*ContextualizedTypeStats) GetPerTypeStat

func (x *ContextualizedTypeStats) GetPerTypeStat() map[string]*TypeStat

func (*ContextualizedTypeStats) ProtoMessage

func (*ContextualizedTypeStats) ProtoMessage()

func (*ContextualizedTypeStats) ProtoReflect

func (x *ContextualizedTypeStats) ProtoReflect() protoreflect.Message

func (*ContextualizedTypeStats) Reset

func (x *ContextualizedTypeStats) Reset()

func (*ContextualizedTypeStats) String

func (x *ContextualizedTypeStats) String() string

type FieldStat

type FieldStat struct {
	ReturnType string `protobuf:"bytes,3,opt,name=return_type,json=returnType,proto3" json:"return_type,omitempty"` // required; eg "String!" for User.email:String!
	// Number of errors whose path is this field. Note that we assume that error
	// tracking does *not* require field-level instrumentation so this *will*
	// include errors from requests that don't contribute to the
	// `observed_execution_count` field (and does not need to be scaled by
	// field_execution_weight).
	ErrorsCount uint64 `protobuf:"varint,4,opt,name=errors_count,json=errorsCount,proto3" json:"errors_count,omitempty"`
	// Number of times that the resolver for this field is directly observed being
	// executed.
	ObservedExecutionCount uint64 `` /* 130-byte string literal not displayed */
	// Same as `count` but potentially scaled upwards if the server was only
	// performing field-level instrumentation on a sampling of operations.  For
	// example, if the server randomly instruments 1% of requests for this
	// operation, this number will be 100 times greater than
	// `observed_execution_count`. (When aggregating a Trace into FieldStats,
	// this number goes up by the trace's `field_execution_weight` for each
	// observed field execution, while `observed_execution_count` above goes
	// up by 1.)
	EstimatedExecutionCount uint64 `` /* 134-byte string literal not displayed */
	// Number of times the resolver for this field is executed that resulted in
	// at least one error. "Request" is a misnomer here as this corresponds to
	// resolver calls, not overall operations. Like `errors_count` above, this
	// includes all requests rather than just requests with field-level
	// instrumentation.
	RequestsWithErrorsCount uint64 `` /* 135-byte string literal not displayed */
	// Duration histogram for the latency of this field. Note that it is scaled in
	// the same way as estimated_execution_count so its "total count" might be
	// greater than `observed_execution_count` and may not exactly equal
	// `estimated_execution_count` due to rounding.
	LatencyCount []int64 `protobuf:"zigzag64,9,rep,packed,name=latency_count,json=latencyCount,proto3" json:"latency_count,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldStat) Descriptor deprecated

func (*FieldStat) Descriptor() ([]byte, []int)

Deprecated: Use FieldStat.ProtoReflect.Descriptor instead.

func (*FieldStat) GetErrorsCount

func (x *FieldStat) GetErrorsCount() uint64

func (*FieldStat) GetEstimatedExecutionCount

func (x *FieldStat) GetEstimatedExecutionCount() uint64

func (*FieldStat) GetLatencyCount

func (x *FieldStat) GetLatencyCount() []int64

func (*FieldStat) GetObservedExecutionCount

func (x *FieldStat) GetObservedExecutionCount() uint64

func (*FieldStat) GetRequestsWithErrorsCount

func (x *FieldStat) GetRequestsWithErrorsCount() uint64

func (*FieldStat) GetReturnType

func (x *FieldStat) GetReturnType() string

func (*FieldStat) ProtoMessage

func (*FieldStat) ProtoMessage()

func (*FieldStat) ProtoReflect

func (x *FieldStat) ProtoReflect() protoreflect.Message

func (*FieldStat) Reset

func (x *FieldStat) Reset()

func (*FieldStat) String

func (x *FieldStat) String() string

type PathErrorStats

type PathErrorStats struct {
	Children                map[string]*PathErrorStats `` /* 157-byte string literal not displayed */
	ErrorsCount             uint64                     `protobuf:"varint,4,opt,name=errors_count,json=errorsCount,proto3" json:"errors_count,omitempty"`
	RequestsWithErrorsCount uint64                     `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PathErrorStats) Descriptor deprecated

func (*PathErrorStats) Descriptor() ([]byte, []int)

Deprecated: Use PathErrorStats.ProtoReflect.Descriptor instead.

func (*PathErrorStats) GetChildren

func (x *PathErrorStats) GetChildren() map[string]*PathErrorStats

func (*PathErrorStats) GetErrorsCount

func (x *PathErrorStats) GetErrorsCount() uint64

func (*PathErrorStats) GetRequestsWithErrorsCount

func (x *PathErrorStats) GetRequestsWithErrorsCount() uint64

func (*PathErrorStats) ProtoMessage

func (*PathErrorStats) ProtoMessage()

func (*PathErrorStats) ProtoReflect

func (x *PathErrorStats) ProtoReflect() protoreflect.Message

func (*PathErrorStats) Reset

func (x *PathErrorStats) Reset()

func (*PathErrorStats) String

func (x *PathErrorStats) String() string

type QueryLatencyStats

type QueryLatencyStats struct {
	LatencyCount             []int64         `protobuf:"zigzag64,13,rep,packed,name=latency_count,json=latencyCount,proto3" json:"latency_count,omitempty"`
	RequestCount             uint64          `protobuf:"varint,2,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"`
	CacheHits                uint64          `protobuf:"varint,3,opt,name=cache_hits,json=cacheHits,proto3" json:"cache_hits,omitempty"`
	PersistedQueryHits       uint64          `protobuf:"varint,4,opt,name=persisted_query_hits,json=persistedQueryHits,proto3" json:"persisted_query_hits,omitempty"`
	PersistedQueryMisses     uint64          `protobuf:"varint,5,opt,name=persisted_query_misses,json=persistedQueryMisses,proto3" json:"persisted_query_misses,omitempty"`
	CacheLatencyCount        []int64         `protobuf:"zigzag64,14,rep,packed,name=cache_latency_count,json=cacheLatencyCount,proto3" json:"cache_latency_count,omitempty"`
	RootErrorStats           *PathErrorStats `protobuf:"bytes,7,opt,name=root_error_stats,json=rootErrorStats,proto3" json:"root_error_stats,omitempty"`
	RequestsWithErrorsCount  uint64          `` /* 135-byte string literal not displayed */
	PublicCacheTtlCount      []int64         `` /* 133-byte string literal not displayed */
	PrivateCacheTtlCount     []int64         `` /* 136-byte string literal not displayed */
	RegisteredOperationCount uint64          `` /* 137-byte string literal not displayed */
	ForbiddenOperationCount  uint64          `` /* 134-byte string literal not displayed */
	// The number of requests that were executed without field-level
	// instrumentation (and thus do not contribute to `observed_execution_count`
	// fields on this message's cousin-twice-removed FieldStats).
	RequestsWithoutFieldInstrumentation uint64 `` /* 172-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*QueryLatencyStats) Descriptor deprecated

func (*QueryLatencyStats) Descriptor() ([]byte, []int)

Deprecated: Use QueryLatencyStats.ProtoReflect.Descriptor instead.

func (*QueryLatencyStats) GetCacheHits

func (x *QueryLatencyStats) GetCacheHits() uint64

func (*QueryLatencyStats) GetCacheLatencyCount

func (x *QueryLatencyStats) GetCacheLatencyCount() []int64

func (*QueryLatencyStats) GetForbiddenOperationCount

func (x *QueryLatencyStats) GetForbiddenOperationCount() uint64

func (*QueryLatencyStats) GetLatencyCount

func (x *QueryLatencyStats) GetLatencyCount() []int64

func (*QueryLatencyStats) GetPersistedQueryHits

func (x *QueryLatencyStats) GetPersistedQueryHits() uint64

func (*QueryLatencyStats) GetPersistedQueryMisses

func (x *QueryLatencyStats) GetPersistedQueryMisses() uint64

func (*QueryLatencyStats) GetPrivateCacheTtlCount

func (x *QueryLatencyStats) GetPrivateCacheTtlCount() []int64

func (*QueryLatencyStats) GetPublicCacheTtlCount

func (x *QueryLatencyStats) GetPublicCacheTtlCount() []int64

func (*QueryLatencyStats) GetRegisteredOperationCount

func (x *QueryLatencyStats) GetRegisteredOperationCount() uint64

func (*QueryLatencyStats) GetRequestCount

func (x *QueryLatencyStats) GetRequestCount() uint64

func (*QueryLatencyStats) GetRequestsWithErrorsCount

func (x *QueryLatencyStats) GetRequestsWithErrorsCount() uint64

func (*QueryLatencyStats) GetRequestsWithoutFieldInstrumentation

func (x *QueryLatencyStats) GetRequestsWithoutFieldInstrumentation() uint64

func (*QueryLatencyStats) GetRootErrorStats

func (x *QueryLatencyStats) GetRootErrorStats() *PathErrorStats

func (*QueryLatencyStats) ProtoMessage

func (*QueryLatencyStats) ProtoMessage()

func (*QueryLatencyStats) ProtoReflect

func (x *QueryLatencyStats) ProtoReflect() protoreflect.Message

func (*QueryLatencyStats) Reset

func (x *QueryLatencyStats) Reset()

func (*QueryLatencyStats) String

func (x *QueryLatencyStats) String() string

type ReferencedFieldsForType

type ReferencedFieldsForType struct {

	// Contains (eg) "email" for User.email:String!
	FieldNames []string `protobuf:"bytes,1,rep,name=field_names,json=fieldNames,proto3" json:"field_names,omitempty"`
	// True if this type is an interface.
	IsInterface bool `protobuf:"varint,2,opt,name=is_interface,json=isInterface,proto3" json:"is_interface,omitempty"`
	// contains filtered or unexported fields
}

func (*ReferencedFieldsForType) Descriptor deprecated

func (*ReferencedFieldsForType) Descriptor() ([]byte, []int)

Deprecated: Use ReferencedFieldsForType.ProtoReflect.Descriptor instead.

func (*ReferencedFieldsForType) GetFieldNames

func (x *ReferencedFieldsForType) GetFieldNames() []string

func (*ReferencedFieldsForType) GetIsInterface

func (x *ReferencedFieldsForType) GetIsInterface() bool

func (*ReferencedFieldsForType) ProtoMessage

func (*ReferencedFieldsForType) ProtoMessage()

func (*ReferencedFieldsForType) ProtoReflect

func (x *ReferencedFieldsForType) ProtoReflect() protoreflect.Message

func (*ReferencedFieldsForType) Reset

func (x *ReferencedFieldsForType) Reset()

func (*ReferencedFieldsForType) String

func (x *ReferencedFieldsForType) String() string

type Report

type Report struct {
	Header *ReportHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// key is statsReportKey (# operationName\nsignature) Note that the nested
	// traces will *not* have a signature or details.operationName (because the
	// key is adequate).
	//
	// We also assume that traces don't have
	// legacy_per_query_implicit_operation_name, and we don't require them to have
	// details.raw_query (which would consume a lot of space and has privacy/data
	// access issues, and isn't currently exposed by our app anyway).
	TracesPerQuery map[string]*TracesAndStats `` /* 193-byte string literal not displayed */
	// This is the time that the requests in this trace are considered to have taken place
	// If this field is not present the max of the end_time of each trace will be used instead.
	// If there are no traces and no end_time present the report will not be able to be processed.
	// Note: This will override the end_time from traces.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // required if no traces in this message
	// Total number of operations processed during this period.
	OperationCount uint64 `protobuf:"varint,6,opt,name=operation_count,json=operationCount,proto3" json:"operation_count,omitempty"`
	// contains filtered or unexported fields
}

This is the top-level message used by the new traces ingress. This is designed for the apollo-engine-reporting TypeScript agent and will eventually be documented as a public ingress API. This message consists solely of traces; the equivalent of the StatsReport is automatically generated server-side from this message. Agent should either send a trace or include it in the stats for every request in this report. Generally, buffering up until a large size has been reached (say, 4MB) or 5-10 seconds has passed is appropriate. This message used to be know as FullTracesReport, but got renamed since it isn't just for traces anymore

func (*Report) Descriptor deprecated

func (*Report) Descriptor() ([]byte, []int)

Deprecated: Use Report.ProtoReflect.Descriptor instead.

func (*Report) GetEndTime

func (x *Report) GetEndTime() *timestamppb.Timestamp

func (*Report) GetHeader

func (x *Report) GetHeader() *ReportHeader

func (*Report) GetOperationCount

func (x *Report) GetOperationCount() uint64

func (*Report) GetTracesPerQuery

func (x *Report) GetTracesPerQuery() map[string]*TracesAndStats

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) ProtoReflect

func (x *Report) ProtoReflect() protoreflect.Message

func (*Report) Reset

func (x *Report) Reset()

func (*Report) String

func (x *Report) String() string

type ReportHeader

type ReportHeader struct {

	// eg "mygraph@myvariant"
	GraphRef string `protobuf:"bytes,12,opt,name=graph_ref,json=graphRef,proto3" json:"graph_ref,omitempty"`
	// eg "host-01.example.com"
	Hostname string `protobuf:"bytes,5,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// eg "engineproxy 0.1.0"
	AgentVersion string `protobuf:"bytes,6,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"` // required
	// eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
	ServiceVersion string `protobuf:"bytes,7,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"`
	// eg "node v4.6.0"
	RuntimeVersion string `protobuf:"bytes,8,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"`
	// eg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"
	Uname string `protobuf:"bytes,9,opt,name=uname,proto3" json:"uname,omitempty"`
	// An id that is used to represent the schema to Apollo Graph Manager
	// Using this in place of what used to be schema_hash, since that is no longer
	// attached to a schema in the backend.
	ExecutableSchemaId string `protobuf:"bytes,11,opt,name=executable_schema_id,json=executableSchemaId,proto3" json:"executable_schema_id,omitempty"`
	// contains filtered or unexported fields
}

The `service` value embedded within the header key is not guaranteed to contain an actual service, and, in most cases, the service information is trusted to come from upstream processing. If the service _is_ specified in this header, then it is checked to match the context that is reporting it. Otherwise, the service information is deduced from the token context of the reporter and then sent along via other mechanisms (in Kafka, the `ReportKafkaKey). The other information (hostname, agent_version, etc.) is sent by the Apollo Engine Reporting agent, but we do not currently save that information to any of our persistent storage.

func (*ReportHeader) Descriptor deprecated

func (*ReportHeader) Descriptor() ([]byte, []int)

Deprecated: Use ReportHeader.ProtoReflect.Descriptor instead.

func (*ReportHeader) GetAgentVersion

func (x *ReportHeader) GetAgentVersion() string

func (*ReportHeader) GetExecutableSchemaId

func (x *ReportHeader) GetExecutableSchemaId() string

func (*ReportHeader) GetGraphRef

func (x *ReportHeader) GetGraphRef() string

func (*ReportHeader) GetHostname

func (x *ReportHeader) GetHostname() string

func (*ReportHeader) GetRuntimeVersion

func (x *ReportHeader) GetRuntimeVersion() string

func (*ReportHeader) GetServiceVersion

func (x *ReportHeader) GetServiceVersion() string

func (*ReportHeader) GetUname

func (x *ReportHeader) GetUname() string

func (*ReportHeader) ProtoMessage

func (*ReportHeader) ProtoMessage()

func (*ReportHeader) ProtoReflect

func (x *ReportHeader) ProtoReflect() protoreflect.Message

func (*ReportHeader) Reset

func (x *ReportHeader) Reset()

func (*ReportHeader) String

func (x *ReportHeader) String() string

type StatsContext

type StatsContext struct {
	ClientName    string `protobuf:"bytes,2,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"`
	ClientVersion string `protobuf:"bytes,3,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
	// contains filtered or unexported fields
}

func (*StatsContext) Descriptor deprecated

func (*StatsContext) Descriptor() ([]byte, []int)

Deprecated: Use StatsContext.ProtoReflect.Descriptor instead.

func (*StatsContext) GetClientName

func (x *StatsContext) GetClientName() string

func (*StatsContext) GetClientVersion

func (x *StatsContext) GetClientVersion() string

func (*StatsContext) ProtoMessage

func (*StatsContext) ProtoMessage()

func (*StatsContext) ProtoReflect

func (x *StatsContext) ProtoReflect() protoreflect.Message

func (*StatsContext) Reset

func (x *StatsContext) Reset()

func (*StatsContext) String

func (x *StatsContext) String() string

type Trace

type Trace struct {

	// Wallclock time when the trace began.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // required
	// Wallclock time when the trace ended.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // required
	// High precision duration of the trace; may not equal end_time-start_time
	// (eg, if your machine's clock changed during the trace).
	DurationNs uint64 `protobuf:"varint,11,opt,name=duration_ns,json=durationNs,proto3" json:"duration_ns,omitempty"` // required
	// A tree containing information about all resolvers run directly by this
	// service, including errors.
	Root *Trace_Node `protobuf:"bytes,14,opt,name=root,proto3" json:"root,omitempty"`
	// In addition to details.raw_query, we include a "signature" of the query,
	// which can be normalized: for example, you may want to discard aliases, drop
	// unused operations and fragments, sort fields, etc. The most important thing
	// here is that the signature match the signature in StatsReports. In
	// StatsReports signatures show up as the key in the per_query map (with the
	// operation name prepended).  The signature should be a valid GraphQL query.
	// All traces must have a signature; if this Trace is in a FullTracesReport
	// that signature is in the key of traces_per_query rather than in this field.
	// Engineproxy provides the signature in legacy_signature_needs_resigning
	// instead.
	Signature string `protobuf:"bytes,19,opt,name=signature,proto3" json:"signature,omitempty"`
	// Optional: when GraphQL parsing or validation against the GraphQL schema fails, these fields
	// can include reference to the operation being sent for users to dig into the set of operations
	// that are failing validation.
	UnexecutedOperationBody string             `protobuf:"bytes,27,opt,name=unexecutedOperationBody,proto3" json:"unexecutedOperationBody,omitempty"`
	UnexecutedOperationName string             `protobuf:"bytes,28,opt,name=unexecutedOperationName,proto3" json:"unexecutedOperationName,omitempty"`
	Details                 *Trace_Details     `protobuf:"bytes,6,opt,name=details,proto3" json:"details,omitempty"`
	ClientName              string             `protobuf:"bytes,7,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"`
	ClientVersion           string             `protobuf:"bytes,8,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
	Http                    *Trace_HTTP        `protobuf:"bytes,10,opt,name=http,proto3" json:"http,omitempty"`
	CachePolicy             *Trace_CachePolicy `protobuf:"bytes,18,opt,name=cache_policy,json=cachePolicy,proto3" json:"cache_policy,omitempty"`
	// If this Trace was created by a gateway, this is the query plan, including
	// sub-Traces for federated services. Note that the 'root' tree on the
	// top-level Trace won't contain any resolvers (though it could contain errors
	// that occurred in the gateway itself).
	QueryPlan *Trace_QueryPlanNode `protobuf:"bytes,26,opt,name=query_plan,json=queryPlan,proto3" json:"query_plan,omitempty"`
	// Was this response served from a full query response cache?  (In that case
	// the node tree will have no resolvers.)
	FullQueryCacheHit bool `protobuf:"varint,20,opt,name=full_query_cache_hit,json=fullQueryCacheHit,proto3" json:"full_query_cache_hit,omitempty"`
	// Was this query specified successfully as a persisted query hash?
	PersistedQueryHit bool `protobuf:"varint,21,opt,name=persisted_query_hit,json=persistedQueryHit,proto3" json:"persisted_query_hit,omitempty"`
	// Did this query contain both a full query string and a persisted query hash?
	// (This typically means that a previous request was rejected as an unknown
	// persisted query.)
	PersistedQueryRegister bool `` /* 131-byte string literal not displayed */
	// Was this operation registered and a part of the safelist?
	RegisteredOperation bool `protobuf:"varint,24,opt,name=registered_operation,json=registeredOperation,proto3" json:"registered_operation,omitempty"`
	// Was this operation forbidden due to lack of safelisting?
	ForbiddenOperation bool `protobuf:"varint,25,opt,name=forbidden_operation,json=forbiddenOperation,proto3" json:"forbidden_operation,omitempty"`
	// Some servers don't do field-level instrumentation for every request and assign
	// each request a "weight" for each request that they do instrument. When this
	// trace is aggregated into field usage stats, it should count as this value
	// towards the estimated_execution_count rather than just 1. This value should
	// typically be at least 1.
	//
	// 0 is treated as 1 for backwards compatibility.
	FieldExecutionWeight float64 `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Trace) Descriptor deprecated

func (*Trace) Descriptor() ([]byte, []int)

Deprecated: Use Trace.ProtoReflect.Descriptor instead.

func (*Trace) GetCachePolicy

func (x *Trace) GetCachePolicy() *Trace_CachePolicy

func (*Trace) GetClientName

func (x *Trace) GetClientName() string

func (*Trace) GetClientVersion

func (x *Trace) GetClientVersion() string

func (*Trace) GetDetails

func (x *Trace) GetDetails() *Trace_Details

func (*Trace) GetDurationNs

func (x *Trace) GetDurationNs() uint64

func (*Trace) GetEndTime

func (x *Trace) GetEndTime() *timestamppb.Timestamp

func (*Trace) GetFieldExecutionWeight

func (x *Trace) GetFieldExecutionWeight() float64

func (*Trace) GetForbiddenOperation

func (x *Trace) GetForbiddenOperation() bool

func (*Trace) GetFullQueryCacheHit

func (x *Trace) GetFullQueryCacheHit() bool

func (*Trace) GetHttp

func (x *Trace) GetHttp() *Trace_HTTP

func (*Trace) GetPersistedQueryHit

func (x *Trace) GetPersistedQueryHit() bool

func (*Trace) GetPersistedQueryRegister

func (x *Trace) GetPersistedQueryRegister() bool

func (*Trace) GetQueryPlan

func (x *Trace) GetQueryPlan() *Trace_QueryPlanNode

func (*Trace) GetRegisteredOperation

func (x *Trace) GetRegisteredOperation() bool

func (*Trace) GetRoot

func (x *Trace) GetRoot() *Trace_Node

func (*Trace) GetSignature

func (x *Trace) GetSignature() string

func (*Trace) GetStartTime

func (x *Trace) GetStartTime() *timestamppb.Timestamp

func (*Trace) GetUnexecutedOperationBody

func (x *Trace) GetUnexecutedOperationBody() string

func (*Trace) GetUnexecutedOperationName

func (x *Trace) GetUnexecutedOperationName() string

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) ProtoReflect

func (x *Trace) ProtoReflect() protoreflect.Message

func (*Trace) Reset

func (x *Trace) Reset()

func (*Trace) String

func (x *Trace) String() string

type Trace_CachePolicy

type Trace_CachePolicy struct {
	Scope    Trace_CachePolicy_Scope `protobuf:"varint,1,opt,name=scope,proto3,enum=Trace_CachePolicy_Scope" json:"scope,omitempty"`
	MaxAgeNs int64                   `protobuf:"varint,2,opt,name=max_age_ns,json=maxAgeNs,proto3" json:"max_age_ns,omitempty"` // use 0 for absent, -1 for 0
	// contains filtered or unexported fields
}

func (*Trace_CachePolicy) Descriptor deprecated

func (*Trace_CachePolicy) Descriptor() ([]byte, []int)

Deprecated: Use Trace_CachePolicy.ProtoReflect.Descriptor instead.

func (*Trace_CachePolicy) GetMaxAgeNs

func (x *Trace_CachePolicy) GetMaxAgeNs() int64

func (*Trace_CachePolicy) GetScope

func (*Trace_CachePolicy) ProtoMessage

func (*Trace_CachePolicy) ProtoMessage()

func (*Trace_CachePolicy) ProtoReflect

func (x *Trace_CachePolicy) ProtoReflect() protoreflect.Message

func (*Trace_CachePolicy) Reset

func (x *Trace_CachePolicy) Reset()

func (*Trace_CachePolicy) String

func (x *Trace_CachePolicy) String() string

type Trace_CachePolicy_Scope

type Trace_CachePolicy_Scope int32
const (
	Trace_CachePolicy_UNKNOWN Trace_CachePolicy_Scope = 0
	Trace_CachePolicy_PUBLIC  Trace_CachePolicy_Scope = 1
	Trace_CachePolicy_PRIVATE Trace_CachePolicy_Scope = 2
)

func (Trace_CachePolicy_Scope) Descriptor

func (Trace_CachePolicy_Scope) Enum

func (Trace_CachePolicy_Scope) EnumDescriptor deprecated

func (Trace_CachePolicy_Scope) EnumDescriptor() ([]byte, []int)

Deprecated: Use Trace_CachePolicy_Scope.Descriptor instead.

func (Trace_CachePolicy_Scope) Number

func (Trace_CachePolicy_Scope) String

func (x Trace_CachePolicy_Scope) String() string

func (Trace_CachePolicy_Scope) Type

type Trace_Details

type Trace_Details struct {

	// The variables associated with this query (unless the reporting agent is
	// configured to keep them all private). Values are JSON: ie, strings are
	// enclosed in double quotes, etc.  The value of a private variable is
	// the empty string.
	VariablesJson map[string]string `` /* 188-byte string literal not displayed */
	// This is deprecated and only used for legacy applications
	// don't include this in traces inside a FullTracesReport; the operation
	// name for these traces comes from the key of the traces_per_query map.
	OperationName string `protobuf:"bytes,3,opt,name=operation_name,json=operationName,proto3" json:"operation_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Trace_Details) Descriptor deprecated

func (*Trace_Details) Descriptor() ([]byte, []int)

Deprecated: Use Trace_Details.ProtoReflect.Descriptor instead.

func (*Trace_Details) GetOperationName

func (x *Trace_Details) GetOperationName() string

func (*Trace_Details) GetVariablesJson

func (x *Trace_Details) GetVariablesJson() map[string]string

func (*Trace_Details) ProtoMessage

func (*Trace_Details) ProtoMessage()

func (*Trace_Details) ProtoReflect

func (x *Trace_Details) ProtoReflect() protoreflect.Message

func (*Trace_Details) Reset

func (x *Trace_Details) Reset()

func (*Trace_Details) String

func (x *Trace_Details) String() string

type Trace_Error

type Trace_Error struct {
	Message  string            `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // required
	Location []*Trace_Location `protobuf:"bytes,2,rep,name=location,proto3" json:"location,omitempty"`
	TimeNs   uint64            `protobuf:"varint,3,opt,name=time_ns,json=timeNs,proto3" json:"time_ns,omitempty"`
	Json     string            `protobuf:"bytes,4,opt,name=json,proto3" json:"json,omitempty"`
	// contains filtered or unexported fields
}

func (*Trace_Error) Descriptor deprecated

func (*Trace_Error) Descriptor() ([]byte, []int)

Deprecated: Use Trace_Error.ProtoReflect.Descriptor instead.

func (*Trace_Error) GetJson

func (x *Trace_Error) GetJson() string

func (*Trace_Error) GetLocation

func (x *Trace_Error) GetLocation() []*Trace_Location

func (*Trace_Error) GetMessage

func (x *Trace_Error) GetMessage() string

func (*Trace_Error) GetTimeNs

func (x *Trace_Error) GetTimeNs() uint64

func (*Trace_Error) ProtoMessage

func (*Trace_Error) ProtoMessage()

func (*Trace_Error) ProtoReflect

func (x *Trace_Error) ProtoReflect() protoreflect.Message

func (*Trace_Error) Reset

func (x *Trace_Error) Reset()

func (*Trace_Error) String

func (x *Trace_Error) String() string

type Trace_HTTP

type Trace_HTTP struct {
	Method Trace_HTTP_Method `protobuf:"varint,1,opt,name=method,proto3,enum=Trace_HTTP_Method" json:"method,omitempty"`
	Host   string            `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Path   string            `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// Should exclude manual blacklist ("Auth" by default)
	RequestHeaders  map[string]*Trace_HTTP_Values `` /* 191-byte string literal not displayed */
	ResponseHeaders map[string]*Trace_HTTP_Values `` /* 194-byte string literal not displayed */
	StatusCode      uint32                        `protobuf:"varint,6,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	Secure          bool                          `protobuf:"varint,8,opt,name=secure,proto3" json:"secure,omitempty"`    // TLS was used
	Protocol        string                        `protobuf:"bytes,9,opt,name=protocol,proto3" json:"protocol,omitempty"` // by convention "HTTP/1.0", "HTTP/1.1", "HTTP/2" or "h2"
	// contains filtered or unexported fields
}

func (*Trace_HTTP) Descriptor deprecated

func (*Trace_HTTP) Descriptor() ([]byte, []int)

Deprecated: Use Trace_HTTP.ProtoReflect.Descriptor instead.

func (*Trace_HTTP) GetHost

func (x *Trace_HTTP) GetHost() string

func (*Trace_HTTP) GetMethod

func (x *Trace_HTTP) GetMethod() Trace_HTTP_Method

func (*Trace_HTTP) GetPath

func (x *Trace_HTTP) GetPath() string

func (*Trace_HTTP) GetProtocol

func (x *Trace_HTTP) GetProtocol() string

func (*Trace_HTTP) GetRequestHeaders

func (x *Trace_HTTP) GetRequestHeaders() map[string]*Trace_HTTP_Values

func (*Trace_HTTP) GetResponseHeaders

func (x *Trace_HTTP) GetResponseHeaders() map[string]*Trace_HTTP_Values

func (*Trace_HTTP) GetSecure

func (x *Trace_HTTP) GetSecure() bool

func (*Trace_HTTP) GetStatusCode

func (x *Trace_HTTP) GetStatusCode() uint32

func (*Trace_HTTP) ProtoMessage

func (*Trace_HTTP) ProtoMessage()

func (*Trace_HTTP) ProtoReflect

func (x *Trace_HTTP) ProtoReflect() protoreflect.Message

func (*Trace_HTTP) Reset

func (x *Trace_HTTP) Reset()

func (*Trace_HTTP) String

func (x *Trace_HTTP) String() string

type Trace_HTTP_Method

type Trace_HTTP_Method int32
const (
	Trace_HTTP_UNKNOWN Trace_HTTP_Method = 0
	Trace_HTTP_OPTIONS Trace_HTTP_Method = 1
	Trace_HTTP_GET     Trace_HTTP_Method = 2
	Trace_HTTP_HEAD    Trace_HTTP_Method = 3
	Trace_HTTP_POST    Trace_HTTP_Method = 4
	Trace_HTTP_PUT     Trace_HTTP_Method = 5
	Trace_HTTP_DELETE  Trace_HTTP_Method = 6
	Trace_HTTP_TRACE   Trace_HTTP_Method = 7
	Trace_HTTP_CONNECT Trace_HTTP_Method = 8
	Trace_HTTP_PATCH   Trace_HTTP_Method = 9
)

func (Trace_HTTP_Method) Descriptor

func (Trace_HTTP_Method) Enum

func (Trace_HTTP_Method) EnumDescriptor deprecated

func (Trace_HTTP_Method) EnumDescriptor() ([]byte, []int)

Deprecated: Use Trace_HTTP_Method.Descriptor instead.

func (Trace_HTTP_Method) Number

func (Trace_HTTP_Method) String

func (x Trace_HTTP_Method) String() string

func (Trace_HTTP_Method) Type

type Trace_HTTP_Values

type Trace_HTTP_Values struct {
	Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Trace_HTTP_Values) Descriptor deprecated

func (*Trace_HTTP_Values) Descriptor() ([]byte, []int)

Deprecated: Use Trace_HTTP_Values.ProtoReflect.Descriptor instead.

func (*Trace_HTTP_Values) GetValue

func (x *Trace_HTTP_Values) GetValue() []string

func (*Trace_HTTP_Values) ProtoMessage

func (*Trace_HTTP_Values) ProtoMessage()

func (*Trace_HTTP_Values) ProtoReflect

func (x *Trace_HTTP_Values) ProtoReflect() protoreflect.Message

func (*Trace_HTTP_Values) Reset

func (x *Trace_HTTP_Values) Reset()

func (*Trace_HTTP_Values) String

func (x *Trace_HTTP_Values) String() string

type Trace_Location

type Trace_Location struct {
	Line   uint32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`
	Column uint32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"`
	// contains filtered or unexported fields
}

func (*Trace_Location) Descriptor deprecated

func (*Trace_Location) Descriptor() ([]byte, []int)

Deprecated: Use Trace_Location.ProtoReflect.Descriptor instead.

func (*Trace_Location) GetColumn

func (x *Trace_Location) GetColumn() uint32

func (*Trace_Location) GetLine

func (x *Trace_Location) GetLine() uint32

func (*Trace_Location) ProtoMessage

func (*Trace_Location) ProtoMessage()

func (*Trace_Location) ProtoReflect

func (x *Trace_Location) ProtoReflect() protoreflect.Message

func (*Trace_Location) Reset

func (x *Trace_Location) Reset()

func (*Trace_Location) String

func (x *Trace_Location) String() string

type Trace_Node

type Trace_Node struct {

	// The name of the field (for Nodes representing a resolver call) or the
	// index in a list (for intermediate Nodes representing elements of a list).
	// field_name is the name of the field as it appears in the GraphQL
	// response: ie, it may be an alias.  (In that case, the original_field_name
	// field holds the actual field name from the schema.) In any context where
	// we're building up a path, we use the response_name rather than the
	// original_field_name.
	//
	// Types that are assignable to Id:
	//	*Trace_Node_ResponseName
	//	*Trace_Node_Index
	Id                isTrace_Node_Id `protobuf_oneof:"id"`
	OriginalFieldName string          `protobuf:"bytes,14,opt,name=original_field_name,json=originalFieldName,proto3" json:"original_field_name,omitempty"`
	// The field's return type; e.g. "String!" for User.email:String!
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// The field's parent type; e.g. "User" for User.email:String!
	ParentType  string             `protobuf:"bytes,13,opt,name=parent_type,json=parentType,proto3" json:"parent_type,omitempty"`
	CachePolicy *Trace_CachePolicy `protobuf:"bytes,5,opt,name=cache_policy,json=cachePolicy,proto3" json:"cache_policy,omitempty"`
	// relative to the trace's start_time, in ns
	StartTime uint64 `protobuf:"varint,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// relative to the trace's start_time, in ns
	EndTime uint64         `protobuf:"varint,9,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	Error   []*Trace_Error `protobuf:"bytes,11,rep,name=error,proto3" json:"error,omitempty"`
	Child   []*Trace_Node  `protobuf:"bytes,12,rep,name=child,proto3" json:"child,omitempty"`
	// contains filtered or unexported fields
}

We store information on each resolver execution as a Node on a tree. The structure of the tree corresponds to the structure of the GraphQL response; it does not indicate the order in which resolvers were invoked. Note that nodes representing indexes (and the root node) don't contain all Node fields (eg types and times).

func (*Trace_Node) Descriptor deprecated

func (*Trace_Node) Descriptor() ([]byte, []int)

Deprecated: Use Trace_Node.ProtoReflect.Descriptor instead.

func (*Trace_Node) GetCachePolicy

func (x *Trace_Node) GetCachePolicy() *Trace_CachePolicy

func (*Trace_Node) GetChild

func (x *Trace_Node) GetChild() []*Trace_Node

func (*Trace_Node) GetEndTime

func (x *Trace_Node) GetEndTime() uint64

func (*Trace_Node) GetError

func (x *Trace_Node) GetError() []*Trace_Error

func (*Trace_Node) GetId

func (m *Trace_Node) GetId() isTrace_Node_Id

func (*Trace_Node) GetIndex

func (x *Trace_Node) GetIndex() uint32

func (*Trace_Node) GetOriginalFieldName

func (x *Trace_Node) GetOriginalFieldName() string

func (*Trace_Node) GetParentType

func (x *Trace_Node) GetParentType() string

func (*Trace_Node) GetResponseName

func (x *Trace_Node) GetResponseName() string

func (*Trace_Node) GetStartTime

func (x *Trace_Node) GetStartTime() uint64

func (*Trace_Node) GetType

func (x *Trace_Node) GetType() string

func (*Trace_Node) ProtoMessage

func (*Trace_Node) ProtoMessage()

func (*Trace_Node) ProtoReflect

func (x *Trace_Node) ProtoReflect() protoreflect.Message

func (*Trace_Node) Reset

func (x *Trace_Node) Reset()

func (*Trace_Node) String

func (x *Trace_Node) String() string

type Trace_Node_Index

type Trace_Node_Index struct {
	Index uint32 `protobuf:"varint,2,opt,name=index,proto3,oneof"`
}

type Trace_Node_ResponseName

type Trace_Node_ResponseName struct {
	ResponseName string `protobuf:"bytes,1,opt,name=response_name,json=responseName,proto3,oneof"`
}

type Trace_QueryPlanNode

type Trace_QueryPlanNode struct {

	// Types that are assignable to Node:
	//	*Trace_QueryPlanNode_Sequence
	//	*Trace_QueryPlanNode_Parallel
	//	*Trace_QueryPlanNode_Fetch
	//	*Trace_QueryPlanNode_Flatten
	Node isTrace_QueryPlanNode_Node `protobuf_oneof:"node"`
	// contains filtered or unexported fields
}

represents a node in the query plan, under which there is a trace tree for that service fetch. In particular, each fetch node represents a call to an implementing service, and calls to implementing services may not be unique. See https://github.com/apollographql/apollo-server/blob/main/packages/apollo-gateway/src/QueryPlan.ts for more information and details.

func (*Trace_QueryPlanNode) Descriptor deprecated

func (*Trace_QueryPlanNode) Descriptor() ([]byte, []int)

Deprecated: Use Trace_QueryPlanNode.ProtoReflect.Descriptor instead.

func (*Trace_QueryPlanNode) GetFetch

func (*Trace_QueryPlanNode) GetFlatten

func (*Trace_QueryPlanNode) GetNode

func (m *Trace_QueryPlanNode) GetNode() isTrace_QueryPlanNode_Node

func (*Trace_QueryPlanNode) GetParallel

func (*Trace_QueryPlanNode) GetSequence

func (*Trace_QueryPlanNode) ProtoMessage

func (*Trace_QueryPlanNode) ProtoMessage()

func (*Trace_QueryPlanNode) ProtoReflect

func (x *Trace_QueryPlanNode) ProtoReflect() protoreflect.Message

func (*Trace_QueryPlanNode) Reset

func (x *Trace_QueryPlanNode) Reset()

func (*Trace_QueryPlanNode) String

func (x *Trace_QueryPlanNode) String() string

type Trace_QueryPlanNode_Fetch

type Trace_QueryPlanNode_Fetch struct {
	Fetch *Trace_QueryPlanNode_FetchNode `protobuf:"bytes,3,opt,name=fetch,proto3,oneof"`
}

type Trace_QueryPlanNode_FetchNode

type Trace_QueryPlanNode_FetchNode struct {

	// 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.
	ServiceName        string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	TraceParsingFailed bool   `protobuf:"varint,2,opt,name=trace_parsing_failed,json=traceParsingFailed,proto3" json:"trace_parsing_failed,omitempty"`
	// This Trace only contains start_time, end_time, duration_ns, and root;
	// all timings were calculated **on the federated service**, and clock skew
	// will be handled by the ingress server.
	Trace *Trace `protobuf:"bytes,3,opt,name=trace,proto3" json:"trace,omitempty"`
	// relative to the outer trace's start_time, in ns, measured in the gateway.
	SentTimeOffset uint64 `protobuf:"varint,4,opt,name=sent_time_offset,json=sentTimeOffset,proto3" json:"sent_time_offset,omitempty"`
	// Wallclock times measured in the gateway for when this operation was
	// sent and received.
	SentTime     *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=sent_time,json=sentTime,proto3" json:"sent_time,omitempty"`
	ReceivedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=received_time,json=receivedTime,proto3" json:"received_time,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Trace_QueryPlanNode_FetchNode) Descriptor deprecated

func (*Trace_QueryPlanNode_FetchNode) Descriptor() ([]byte, []int)

Deprecated: Use Trace_QueryPlanNode_FetchNode.ProtoReflect.Descriptor instead.

func (*Trace_QueryPlanNode_FetchNode) GetReceivedTime

func (x *Trace_QueryPlanNode_FetchNode) GetReceivedTime() *timestamppb.Timestamp

func (*Trace_QueryPlanNode_FetchNode) GetSentTime

func (*Trace_QueryPlanNode_FetchNode) GetSentTimeOffset

func (x *Trace_QueryPlanNode_FetchNode) GetSentTimeOffset() uint64

func (*Trace_QueryPlanNode_FetchNode) GetServiceName

func (x *Trace_QueryPlanNode_FetchNode) GetServiceName() string

func (*Trace_QueryPlanNode_FetchNode) GetTrace

func (x *Trace_QueryPlanNode_FetchNode) GetTrace() *Trace

func (*Trace_QueryPlanNode_FetchNode) GetTraceParsingFailed

func (x *Trace_QueryPlanNode_FetchNode) GetTraceParsingFailed() bool

func (*Trace_QueryPlanNode_FetchNode) ProtoMessage

func (*Trace_QueryPlanNode_FetchNode) ProtoMessage()

func (*Trace_QueryPlanNode_FetchNode) ProtoReflect

func (*Trace_QueryPlanNode_FetchNode) Reset

func (x *Trace_QueryPlanNode_FetchNode) Reset()

func (*Trace_QueryPlanNode_FetchNode) String

type Trace_QueryPlanNode_Flatten

type Trace_QueryPlanNode_Flatten struct {
	Flatten *Trace_QueryPlanNode_FlattenNode `protobuf:"bytes,4,opt,name=flatten,proto3,oneof"`
}

type Trace_QueryPlanNode_FlattenNode

type Trace_QueryPlanNode_FlattenNode struct {
	ResponsePath []*Trace_QueryPlanNode_ResponsePathElement `protobuf:"bytes,1,rep,name=response_path,json=responsePath,proto3" json:"response_path,omitempty"`
	Node         *Trace_QueryPlanNode                       `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	// contains filtered or unexported fields
}

This node represents a way to reach into the response path and attach related entities. XXX Flatten is really not the right name and this node may be renamed in the query planner.

func (*Trace_QueryPlanNode_FlattenNode) Descriptor deprecated

func (*Trace_QueryPlanNode_FlattenNode) Descriptor() ([]byte, []int)

Deprecated: Use Trace_QueryPlanNode_FlattenNode.ProtoReflect.Descriptor instead.

func (*Trace_QueryPlanNode_FlattenNode) GetNode

func (*Trace_QueryPlanNode_FlattenNode) GetResponsePath

func (*Trace_QueryPlanNode_FlattenNode) ProtoMessage

func (*Trace_QueryPlanNode_FlattenNode) ProtoMessage()

func (*Trace_QueryPlanNode_FlattenNode) ProtoReflect

func (*Trace_QueryPlanNode_FlattenNode) Reset

func (*Trace_QueryPlanNode_FlattenNode) String

type Trace_QueryPlanNode_Parallel

type Trace_QueryPlanNode_Parallel struct {
	Parallel *Trace_QueryPlanNode_ParallelNode `protobuf:"bytes,2,opt,name=parallel,proto3,oneof"`
}

type Trace_QueryPlanNode_ParallelNode

type Trace_QueryPlanNode_ParallelNode struct {
	Nodes []*Trace_QueryPlanNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// contains filtered or unexported fields
}

This represents a set of nodes to be executed in parallel by the Gateway executor

func (*Trace_QueryPlanNode_ParallelNode) Descriptor deprecated

func (*Trace_QueryPlanNode_ParallelNode) Descriptor() ([]byte, []int)

Deprecated: Use Trace_QueryPlanNode_ParallelNode.ProtoReflect.Descriptor instead.

func (*Trace_QueryPlanNode_ParallelNode) GetNodes

func (*Trace_QueryPlanNode_ParallelNode) ProtoMessage

func (*Trace_QueryPlanNode_ParallelNode) ProtoMessage()

func (*Trace_QueryPlanNode_ParallelNode) ProtoReflect

func (*Trace_QueryPlanNode_ParallelNode) Reset

func (*Trace_QueryPlanNode_ParallelNode) String

type Trace_QueryPlanNode_ResponsePathElement

type Trace_QueryPlanNode_ResponsePathElement struct {

	// Types that are assignable to Id:
	//	*Trace_QueryPlanNode_ResponsePathElement_FieldName
	//	*Trace_QueryPlanNode_ResponsePathElement_Index
	Id isTrace_QueryPlanNode_ResponsePathElement_Id `protobuf_oneof:"id"`
	// contains filtered or unexported fields
}

func (*Trace_QueryPlanNode_ResponsePathElement) Descriptor deprecated

func (*Trace_QueryPlanNode_ResponsePathElement) Descriptor() ([]byte, []int)

Deprecated: Use Trace_QueryPlanNode_ResponsePathElement.ProtoReflect.Descriptor instead.

func (*Trace_QueryPlanNode_ResponsePathElement) GetFieldName

func (*Trace_QueryPlanNode_ResponsePathElement) GetId

func (m *Trace_QueryPlanNode_ResponsePathElement) GetId() isTrace_QueryPlanNode_ResponsePathElement_Id

func (*Trace_QueryPlanNode_ResponsePathElement) GetIndex

func (*Trace_QueryPlanNode_ResponsePathElement) ProtoMessage

func (*Trace_QueryPlanNode_ResponsePathElement) ProtoReflect

func (*Trace_QueryPlanNode_ResponsePathElement) Reset

func (*Trace_QueryPlanNode_ResponsePathElement) String

type Trace_QueryPlanNode_ResponsePathElement_FieldName

type Trace_QueryPlanNode_ResponsePathElement_FieldName struct {
	FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3,oneof"`
}

type Trace_QueryPlanNode_ResponsePathElement_Index

type Trace_QueryPlanNode_ResponsePathElement_Index struct {
	Index uint32 `protobuf:"varint,2,opt,name=index,proto3,oneof"`
}

type Trace_QueryPlanNode_Sequence

type Trace_QueryPlanNode_Sequence struct {
	Sequence *Trace_QueryPlanNode_SequenceNode `protobuf:"bytes,1,opt,name=sequence,proto3,oneof"`
}

type Trace_QueryPlanNode_SequenceNode

type Trace_QueryPlanNode_SequenceNode struct {
	Nodes []*Trace_QueryPlanNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// contains filtered or unexported fields
}

This represents a set of nodes to be executed sequentially by the Gateway executor

func (*Trace_QueryPlanNode_SequenceNode) Descriptor deprecated

func (*Trace_QueryPlanNode_SequenceNode) Descriptor() ([]byte, []int)

Deprecated: Use Trace_QueryPlanNode_SequenceNode.ProtoReflect.Descriptor instead.

func (*Trace_QueryPlanNode_SequenceNode) GetNodes

func (*Trace_QueryPlanNode_SequenceNode) ProtoMessage

func (*Trace_QueryPlanNode_SequenceNode) ProtoMessage()

func (*Trace_QueryPlanNode_SequenceNode) ProtoReflect

func (*Trace_QueryPlanNode_SequenceNode) Reset

func (*Trace_QueryPlanNode_SequenceNode) String

type TracesAndStats

type TracesAndStats struct {
	Trace            []*Trace               `protobuf:"bytes,1,rep,name=trace,proto3" json:"trace,omitempty"`
	StatsWithContext []*ContextualizedStats `protobuf:"bytes,2,rep,name=stats_with_context,json=statsWithContext,proto3" json:"stats_with_context,omitempty"`
	// 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).
	ReferencedFieldsByType map[string]*ReferencedFieldsForType `` /* 219-byte string literal not displayed */
	// 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.
	InternalTracesContributingToStats []*Trace `` /* 166-byte string literal not displayed */
	// contains filtered or unexported fields
}

A sequence of traces and stats. An individual operation should either be described as a trace or as part of stats, but not both.

func (*TracesAndStats) Descriptor deprecated

func (*TracesAndStats) Descriptor() ([]byte, []int)

Deprecated: Use TracesAndStats.ProtoReflect.Descriptor instead.

func (*TracesAndStats) GetInternalTracesContributingToStats

func (x *TracesAndStats) GetInternalTracesContributingToStats() []*Trace

func (*TracesAndStats) GetReferencedFieldsByType

func (x *TracesAndStats) GetReferencedFieldsByType() map[string]*ReferencedFieldsForType

func (*TracesAndStats) GetStatsWithContext

func (x *TracesAndStats) GetStatsWithContext() []*ContextualizedStats

func (*TracesAndStats) GetTrace

func (x *TracesAndStats) GetTrace() []*Trace

func (*TracesAndStats) ProtoMessage

func (*TracesAndStats) ProtoMessage()

func (*TracesAndStats) ProtoReflect

func (x *TracesAndStats) ProtoReflect() protoreflect.Message

func (*TracesAndStats) Reset

func (x *TracesAndStats) Reset()

func (*TracesAndStats) String

func (x *TracesAndStats) String() string

type TypeStat

type TypeStat struct {

	// Key is (eg) "email" for User.email:String!
	PerFieldStat map[string]*FieldStat `` /* 187-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TypeStat) Descriptor deprecated

func (*TypeStat) Descriptor() ([]byte, []int)

Deprecated: Use TypeStat.ProtoReflect.Descriptor instead.

func (*TypeStat) GetPerFieldStat

func (x *TypeStat) GetPerFieldStat() map[string]*FieldStat

func (*TypeStat) ProtoMessage

func (*TypeStat) ProtoMessage()

func (*TypeStat) ProtoReflect

func (x *TypeStat) ProtoReflect() protoreflect.Message

func (*TypeStat) Reset

func (x *TypeStat) Reset()

func (*TypeStat) String

func (x *TypeStat) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL