type RPCStats … type Begin … // IsClient indicates if the stats information is from client side. func (s *Begin) IsClient() bool { … } func (s *Begin) isRPCStats() { … } type PickerUpdated … // IsClient indicates if the stats information is from client side. Only Client // Side interfaces with a Picker, thus always returns true. func (*PickerUpdated) IsClient() bool { … } func (*PickerUpdated) isRPCStats() { … } type InPayload … // IsClient indicates if the stats information is from client side. func (s *InPayload) IsClient() bool { … } func (s *InPayload) isRPCStats() { … } type InHeader … // IsClient indicates if the stats information is from client side. func (s *InHeader) IsClient() bool { … } func (s *InHeader) isRPCStats() { … } type InTrailer … // IsClient indicates if the stats information is from client side. func (s *InTrailer) IsClient() bool { … } func (s *InTrailer) isRPCStats() { … } type OutPayload … // IsClient indicates if this stats information is from client side. func (s *OutPayload) IsClient() bool { … } func (s *OutPayload) isRPCStats() { … } type OutHeader … // IsClient indicates if this stats information is from client side. func (s *OutHeader) IsClient() bool { … } func (s *OutHeader) isRPCStats() { … } type OutTrailer … // IsClient indicates if this stats information is from client side. func (s *OutTrailer) IsClient() bool { … } func (s *OutTrailer) isRPCStats() { … } type End … // IsClient indicates if this is from client side. func (s *End) IsClient() bool { … } func (s *End) isRPCStats() { … } type ConnStats … type ConnBegin … // IsClient indicates if this is from client side. func (s *ConnBegin) IsClient() bool { … } func (s *ConnBegin) isConnStats() { … } type ConnEnd … // IsClient indicates if this is from client side. func (s *ConnEnd) IsClient() bool { … } func (s *ConnEnd) isConnStats() { … } type incomingTagsKey … type outgoingTagsKey … // SetTags attaches stats tagging data to the context, which will be sent in // the outgoing RPC with the header grpc-tags-bin. Subsequent calls to // SetTags will overwrite the values from earlier calls. // // NOTE: this is provided only for backward compatibility with existing clients // and will likely be removed in an upcoming release. New uses should transmit // this type of data using metadata with a different, non-reserved (i.e. does // not begin with "grpc-") header name. func SetTags(ctx context.Context, b []byte) context.Context { … } // Tags returns the tags from the context for the inbound RPC. // // NOTE: this is provided only for backward compatibility with existing clients // and will likely be removed in an upcoming release. New uses should transmit // this type of data using metadata with a different, non-reserved (i.e. does // not begin with "grpc-") header name. func Tags(ctx context.Context) []byte { … } // SetIncomingTags attaches stats tagging data to the context, to be read by // the application (not sent in outgoing RPCs). // // This is intended for gRPC-internal use ONLY. func SetIncomingTags(ctx context.Context, b []byte) context.Context { … } // OutgoingTags returns the tags from the context for the outbound RPC. // // This is intended for gRPC-internal use ONLY. func OutgoingTags(ctx context.Context) []byte { … } type incomingTraceKey … type outgoingTraceKey … // SetTrace attaches stats tagging data to the context, which will be sent in // the outgoing RPC with the header grpc-trace-bin. Subsequent calls to // SetTrace will overwrite the values from earlier calls. // // NOTE: this is provided only for backward compatibility with existing clients // and will likely be removed in an upcoming release. New uses should transmit // this type of data using metadata with a different, non-reserved (i.e. does // not begin with "grpc-") header name. func SetTrace(ctx context.Context, b []byte) context.Context { … } // Trace returns the trace from the context for the inbound RPC. // // NOTE: this is provided only for backward compatibility with existing clients // and will likely be removed in an upcoming release. New uses should transmit // this type of data using metadata with a different, non-reserved (i.e. does // not begin with "grpc-") header name. func Trace(ctx context.Context) []byte { … } // SetIncomingTrace attaches stats tagging data to the context, to be read by // the application (not sent in outgoing RPCs). It is intended for // gRPC-internal use. func SetIncomingTrace(ctx context.Context, b []byte) context.Context { … } // OutgoingTrace returns the trace from the context for the outbound RPC. It is // intended for gRPC-internal use. func OutgoingTrace(ctx context.Context) []byte { … }