Documentation ¶
Index ¶
- Variables
- func RegisterTraceServiceServer(s grpc.ServiceRegistrar, srv TraceServiceServer)
- type CloseTraceRequest
- func (*CloseTraceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloseTraceRequest) GetParentSpanId() string
- func (x *CloseTraceRequest) GetResponseBody() string
- func (x *CloseTraceRequest) GetResponseCode() int32
- func (x *CloseTraceRequest) GetTraceId() string
- func (*CloseTraceRequest) ProtoMessage()
- func (x *CloseTraceRequest) ProtoReflect() protoreflect.Message
- func (x *CloseTraceRequest) Reset()
- func (x *CloseTraceRequest) String() string
- type DatabaseSpan
- func (*DatabaseSpan) Descriptor() ([]byte, []int)deprecated
- func (x *DatabaseSpan) GetCommon() *TraceCommon
- func (x *DatabaseSpan) GetQuery() string
- func (x *DatabaseSpan) GetResultJson() string
- func (*DatabaseSpan) ProtoMessage()
- func (x *DatabaseSpan) ProtoReflect() protoreflect.Message
- func (x *DatabaseSpan) Reset()
- func (x *DatabaseSpan) String() string
- type DatabaseSpanRequest
- func (*DatabaseSpanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DatabaseSpanRequest) GetAction() string
- func (x *DatabaseSpanRequest) GetParentSpanId() string
- func (x *DatabaseSpanRequest) GetQuery() string
- func (x *DatabaseSpanRequest) GetResultJson() string
- func (x *DatabaseSpanRequest) GetTraceId() string
- func (*DatabaseSpanRequest) ProtoMessage()
- func (x *DatabaseSpanRequest) ProtoReflect() protoreflect.Message
- func (x *DatabaseSpanRequest) Reset()
- func (x *DatabaseSpanRequest) String() string
- type Empty
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckResponse) GetStatus() bool
- func (*HealthCheckResponse) ProtoMessage()
- func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
- func (x *HealthCheckResponse) Reset()
- func (x *HealthCheckResponse) String() string
- type Span
- func (*Span) Descriptor() ([]byte, []int)deprecated
- func (x *Span) GetAction() string
- func (x *Span) GetCommon() *TraceCommon
- func (x *Span) GetRequestBody() string
- func (x *Span) GetResponseBody() string
- func (*Span) ProtoMessage()
- func (x *Span) ProtoReflect() protoreflect.Message
- func (x *Span) Reset()
- func (x *Span) String() string
- type SpanRequest
- func (*SpanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SpanRequest) GetAction() string
- func (x *SpanRequest) GetParentSpanId() string
- func (x *SpanRequest) GetRequestBody() string
- func (x *SpanRequest) GetResponseBody() string
- func (x *SpanRequest) GetTraceId() string
- func (*SpanRequest) ProtoMessage()
- func (x *SpanRequest) ProtoReflect() protoreflect.Message
- func (x *SpanRequest) Reset()
- func (x *SpanRequest) String() string
- type StartSpanRequest
- type StartTraceRequest
- func (*StartTraceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartTraceRequest) GetHost() string
- func (x *StartTraceRequest) GetMethod() string
- func (x *StartTraceRequest) GetOperation() string
- func (x *StartTraceRequest) GetRemoteAddress() string
- func (x *StartTraceRequest) GetRootQuery() string
- func (x *StartTraceRequest) GetUrl() string
- func (*StartTraceRequest) ProtoMessage()
- func (x *StartTraceRequest) ProtoReflect() protoreflect.Message
- func (x *StartTraceRequest) Reset()
- func (x *StartTraceRequest) String() string
- type Trace
- func (*Trace) Descriptor() ([]byte, []int)deprecated
- func (x *Trace) GetCommon() *TraceCommon
- func (x *Trace) GetHost() string
- func (x *Trace) GetMethod() string
- func (x *Trace) GetUrl() string
- func (*Trace) ProtoMessage()
- func (x *Trace) ProtoReflect() protoreflect.Message
- func (x *Trace) Reset()
- func (x *Trace) String() string
- type TraceCommon
- func (*TraceCommon) Descriptor() ([]byte, []int)deprecated
- func (x *TraceCommon) GetItemType() string
- func (x *TraceCommon) GetNamespace() string
- func (x *TraceCommon) GetParentSpanId() string
- func (x *TraceCommon) GetPodName() string
- func (x *TraceCommon) GetSpanId() string
- func (x *TraceCommon) GetTimestamp() string
- func (*TraceCommon) ProtoMessage()
- func (x *TraceCommon) ProtoReflect() protoreflect.Message
- func (x *TraceCommon) Reset()
- func (x *TraceCommon) String() string
- type TraceRequest
- func (*TraceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TraceRequest) GetHost() string
- func (x *TraceRequest) GetMethod() string
- func (x *TraceRequest) GetParentSpanId() string
- func (x *TraceRequest) GetTraceId() string
- func (x *TraceRequest) GetUrl() string
- func (*TraceRequest) ProtoMessage()
- func (x *TraceRequest) ProtoReflect() protoreflect.Message
- func (x *TraceRequest) Reset()
- func (x *TraceRequest) String() string
- type TraceResponse
- type TraceServiceClient
- type TraceServiceServer
- type TraceStart
- func (*TraceStart) Descriptor() ([]byte, []int)deprecated
- func (x *TraceStart) GetCommon() *TraceCommon
- func (x *TraceStart) GetHost() string
- func (x *TraceStart) GetMethod() string
- func (x *TraceStart) GetOperation() string
- func (x *TraceStart) GetRemoteAddress() string
- func (x *TraceStart) GetRootQuery() string
- func (x *TraceStart) GetUrl() string
- func (*TraceStart) ProtoMessage()
- func (x *TraceStart) ProtoReflect() protoreflect.Message
- func (x *TraceStart) Reset()
- func (x *TraceStart) String() string
- type TraceStop
- type UnimplementedTraceServiceServer
- func (UnimplementedTraceServiceServer) CloseTrace(context.Context, *CloseTraceRequest) (*TraceResponse, error)
- func (UnimplementedTraceServiceServer) DatabaseSpan(context.Context, *DatabaseSpanRequest) (*TraceResponse, error)
- func (UnimplementedTraceServiceServer) HealthCheck(context.Context, *Empty) (*HealthCheckResponse, error)
- func (UnimplementedTraceServiceServer) Span(context.Context, *SpanRequest) (*TraceResponse, error)
- func (UnimplementedTraceServiceServer) StartNewSpan(context.Context, *StartSpanRequest) (*TraceResponse, error)
- func (UnimplementedTraceServiceServer) StartTrace(context.Context, *StartTraceRequest) (*TraceResponse, error)
- func (UnimplementedTraceServiceServer) Trace(context.Context, *TraceRequest) (*TraceResponse, error)
- type UnsafeTraceServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_aristophanes_proto protoreflect.FileDescriptor
var TraceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.TraceService", HandlerType: (*TraceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "StartTrace", Handler: _TraceService_StartTrace_Handler, }, { MethodName: "Trace", Handler: _TraceService_Trace_Handler, }, { MethodName: "StartNewSpan", Handler: _TraceService_StartNewSpan_Handler, }, { MethodName: "Span", Handler: _TraceService_Span_Handler, }, { MethodName: "DatabaseSpan", Handler: _TraceService_DatabaseSpan_Handler, }, { MethodName: "CloseTrace", Handler: _TraceService_CloseTrace_Handler, }, { MethodName: "HealthCheck", Handler: _TraceService_HealthCheck_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/aristophanes.proto", }
TraceService_ServiceDesc is the grpc.ServiceDesc for TraceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTraceServiceServer ¶
func RegisterTraceServiceServer(s grpc.ServiceRegistrar, srv TraceServiceServer)
Types ¶
type CloseTraceRequest ¶
type CloseTraceRequest struct { TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // Root trace_id which where item will be added ParentSpanId string `protobuf:"bytes,2,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"` // The root parent_span_id ResponseBody string `protobuf:"bytes,3,opt,name=response_body,json=responseBody,proto3" json:"response_body,omitempty"` // Optional: Response body data ResponseCode int32 `protobuf:"varint,4,opt,name=response_code,json=responseCode,proto3" json:"response_code,omitempty"` // contains filtered or unexported fields }
func (*CloseTraceRequest) Descriptor
deprecated
func (*CloseTraceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloseTraceRequest.ProtoReflect.Descriptor instead.
func (*CloseTraceRequest) GetParentSpanId ¶
func (x *CloseTraceRequest) GetParentSpanId() string
func (*CloseTraceRequest) GetResponseBody ¶
func (x *CloseTraceRequest) GetResponseBody() string
func (*CloseTraceRequest) GetResponseCode ¶
func (x *CloseTraceRequest) GetResponseCode() int32
func (*CloseTraceRequest) GetTraceId ¶
func (x *CloseTraceRequest) GetTraceId() string
func (*CloseTraceRequest) ProtoMessage ¶
func (*CloseTraceRequest) ProtoMessage()
func (*CloseTraceRequest) ProtoReflect ¶
func (x *CloseTraceRequest) ProtoReflect() protoreflect.Message
func (*CloseTraceRequest) Reset ¶
func (x *CloseTraceRequest) Reset()
func (*CloseTraceRequest) String ¶
func (x *CloseTraceRequest) String() string
type DatabaseSpan ¶
type DatabaseSpan struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // Database query statement ResultJson string `protobuf:"bytes,2,opt,name=result_json,json=resultJson,proto3" json:"result_json,omitempty"` // Query result data as JSON string // Reuse TraceCommon for common fields Common *TraceCommon `protobuf:"bytes,3,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*DatabaseSpan) Descriptor
deprecated
func (*DatabaseSpan) Descriptor() ([]byte, []int)
Deprecated: Use DatabaseSpan.ProtoReflect.Descriptor instead.
func (*DatabaseSpan) GetCommon ¶
func (x *DatabaseSpan) GetCommon() *TraceCommon
func (*DatabaseSpan) GetQuery ¶
func (x *DatabaseSpan) GetQuery() string
func (*DatabaseSpan) GetResultJson ¶
func (x *DatabaseSpan) GetResultJson() string
func (*DatabaseSpan) ProtoMessage ¶
func (*DatabaseSpan) ProtoMessage()
func (*DatabaseSpan) ProtoReflect ¶
func (x *DatabaseSpan) ProtoReflect() protoreflect.Message
func (*DatabaseSpan) Reset ¶
func (x *DatabaseSpan) Reset()
func (*DatabaseSpan) String ¶
func (x *DatabaseSpan) String() string
type DatabaseSpanRequest ¶
type DatabaseSpanRequest struct { TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` ParentSpanId string `protobuf:"bytes,2,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"` // The root parent_span_id Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` // Action performed in the span Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` // Database query statement ResultJson string `protobuf:"bytes,5,opt,name=result_json,json=resultJson,proto3" json:"result_json,omitempty"` // Query result data as JSON string // contains filtered or unexported fields }
func (*DatabaseSpanRequest) Descriptor
deprecated
func (*DatabaseSpanRequest) Descriptor() ([]byte, []int)
Deprecated: Use DatabaseSpanRequest.ProtoReflect.Descriptor instead.
func (*DatabaseSpanRequest) GetAction ¶
func (x *DatabaseSpanRequest) GetAction() string
func (*DatabaseSpanRequest) GetParentSpanId ¶
func (x *DatabaseSpanRequest) GetParentSpanId() string
func (*DatabaseSpanRequest) GetQuery ¶
func (x *DatabaseSpanRequest) GetQuery() string
func (*DatabaseSpanRequest) GetResultJson ¶
func (x *DatabaseSpanRequest) GetResultJson() string
func (*DatabaseSpanRequest) GetTraceId ¶
func (x *DatabaseSpanRequest) GetTraceId() string
func (*DatabaseSpanRequest) ProtoMessage ¶
func (*DatabaseSpanRequest) ProtoMessage()
func (*DatabaseSpanRequest) ProtoReflect ¶
func (x *DatabaseSpanRequest) ProtoReflect() protoreflect.Message
func (*DatabaseSpanRequest) Reset ¶
func (x *DatabaseSpanRequest) Reset()
func (*DatabaseSpanRequest) String ¶
func (x *DatabaseSpanRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type HealthCheckResponse ¶
type HealthCheckResponse struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*HealthCheckResponse) Descriptor
deprecated
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse) GetStatus ¶
func (x *HealthCheckResponse) GetStatus() bool
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) ProtoReflect ¶
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
func (*HealthCheckResponse) Reset ¶
func (x *HealthCheckResponse) Reset()
func (*HealthCheckResponse) String ¶
func (x *HealthCheckResponse) String() string
type Span ¶
type Span struct { Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"` // Action performed in the span RequestBody string `protobuf:"bytes,2,opt,name=request_body,json=requestBody,proto3" json:"request_body,omitempty"` // Optional: Request body data ResponseBody string `protobuf:"bytes,3,opt,name=response_body,json=responseBody,proto3" json:"response_body,omitempty"` // Optional: Response body data // Reuse TraceCommon for common fields Common *TraceCommon `protobuf:"bytes,4,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*Span) Descriptor
deprecated
func (*Span) GetCommon ¶
func (x *Span) GetCommon() *TraceCommon
func (*Span) GetRequestBody ¶
func (*Span) GetResponseBody ¶
func (*Span) ProtoMessage ¶
func (*Span) ProtoMessage()
func (*Span) ProtoReflect ¶
func (x *Span) ProtoReflect() protoreflect.Message
type SpanRequest ¶
type SpanRequest struct { TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // Root trace_id which where item will be added ParentSpanId string `protobuf:"bytes,2,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"` // The root parent_span_id Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` // Action performed in the span RequestBody string `protobuf:"bytes,4,opt,name=request_body,json=requestBody,proto3" json:"request_body,omitempty"` // Optional: Request body data ResponseBody string `protobuf:"bytes,5,opt,name=response_body,json=responseBody,proto3" json:"response_body,omitempty"` // Optional: Response body data // contains filtered or unexported fields }
func (*SpanRequest) Descriptor
deprecated
func (*SpanRequest) Descriptor() ([]byte, []int)
Deprecated: Use SpanRequest.ProtoReflect.Descriptor instead.
func (*SpanRequest) GetAction ¶
func (x *SpanRequest) GetAction() string
func (*SpanRequest) GetParentSpanId ¶
func (x *SpanRequest) GetParentSpanId() string
func (*SpanRequest) GetRequestBody ¶
func (x *SpanRequest) GetRequestBody() string
func (*SpanRequest) GetResponseBody ¶
func (x *SpanRequest) GetResponseBody() string
func (*SpanRequest) GetTraceId ¶
func (x *SpanRequest) GetTraceId() string
func (*SpanRequest) ProtoMessage ¶
func (*SpanRequest) ProtoMessage()
func (*SpanRequest) ProtoReflect ¶
func (x *SpanRequest) ProtoReflect() protoreflect.Message
func (*SpanRequest) Reset ¶
func (x *SpanRequest) Reset()
func (*SpanRequest) String ¶
func (x *SpanRequest) String() string
type StartSpanRequest ¶
type StartSpanRequest struct { TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // Root trace_id which where item will be added // contains filtered or unexported fields }
func (*StartSpanRequest) Descriptor
deprecated
func (*StartSpanRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartSpanRequest.ProtoReflect.Descriptor instead.
func (*StartSpanRequest) GetTraceId ¶
func (x *StartSpanRequest) GetTraceId() string
func (*StartSpanRequest) ProtoMessage ¶
func (*StartSpanRequest) ProtoMessage()
func (*StartSpanRequest) ProtoReflect ¶
func (x *StartSpanRequest) ProtoReflect() protoreflect.Message
func (*StartSpanRequest) Reset ¶
func (x *StartSpanRequest) Reset()
func (*StartSpanRequest) String ¶
func (x *StartSpanRequest) String() string
type StartTraceRequest ¶
type StartTraceRequest struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // GET POST PUT, etc. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // The URL called by a client Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` // The host that generated the trace RemoteAddress string `protobuf:"bytes,4,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"` // Remote address of the client Operation string `protobuf:"bytes,5,opt,name=operation,proto3" json:"operation,omitempty"` // Graphql operation that generated Trace start RootQuery string `protobuf:"bytes,6,opt,name=root_query,json=rootQuery,proto3" json:"root_query,omitempty"` // Graphql Root Query // contains filtered or unexported fields }
func (*StartTraceRequest) Descriptor
deprecated
func (*StartTraceRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartTraceRequest.ProtoReflect.Descriptor instead.
func (*StartTraceRequest) GetHost ¶
func (x *StartTraceRequest) GetHost() string
func (*StartTraceRequest) GetMethod ¶
func (x *StartTraceRequest) GetMethod() string
func (*StartTraceRequest) GetOperation ¶
func (x *StartTraceRequest) GetOperation() string
func (*StartTraceRequest) GetRemoteAddress ¶
func (x *StartTraceRequest) GetRemoteAddress() string
func (*StartTraceRequest) GetRootQuery ¶
func (x *StartTraceRequest) GetRootQuery() string
func (*StartTraceRequest) GetUrl ¶
func (x *StartTraceRequest) GetUrl() string
func (*StartTraceRequest) ProtoMessage ¶
func (*StartTraceRequest) ProtoMessage()
func (*StartTraceRequest) ProtoReflect ¶
func (x *StartTraceRequest) ProtoReflect() protoreflect.Message
func (*StartTraceRequest) Reset ¶
func (x *StartTraceRequest) Reset()
func (*StartTraceRequest) String ¶
func (x *StartTraceRequest) String() string
type Trace ¶
type Trace struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // GET POST PUT, etc. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // The URL called by a client Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` // The host that generated the trace // Reuse TraceCommon for common fields Common *TraceCommon `protobuf:"bytes,4,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*Trace) Descriptor
deprecated
func (*Trace) GetCommon ¶
func (x *Trace) GetCommon() *TraceCommon
func (*Trace) ProtoMessage ¶
func (*Trace) ProtoMessage()
func (*Trace) ProtoReflect ¶
func (x *Trace) ProtoReflect() protoreflect.Message
type TraceCommon ¶
type TraceCommon struct { SpanId string `protobuf:"bytes,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` // The span_id will be generated automatically ParentSpanId string `protobuf:"bytes,2,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"` // The root parent_span_id Timestamp string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp will be set automatically PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` // Pod that generated Trace Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"` // Namespace that generated Trace ItemType string `protobuf:"bytes,6,opt,name=item_type,json=itemType,proto3" json:"item_type,omitempty"` // TRACE, SPAN, etc. // contains filtered or unexported fields }
Common message used in various trace-related messages
func (*TraceCommon) Descriptor
deprecated
func (*TraceCommon) Descriptor() ([]byte, []int)
Deprecated: Use TraceCommon.ProtoReflect.Descriptor instead.
func (*TraceCommon) GetItemType ¶
func (x *TraceCommon) GetItemType() string
func (*TraceCommon) GetNamespace ¶
func (x *TraceCommon) GetNamespace() string
func (*TraceCommon) GetParentSpanId ¶
func (x *TraceCommon) GetParentSpanId() string
func (*TraceCommon) GetPodName ¶
func (x *TraceCommon) GetPodName() string
func (*TraceCommon) GetSpanId ¶
func (x *TraceCommon) GetSpanId() string
func (*TraceCommon) GetTimestamp ¶
func (x *TraceCommon) GetTimestamp() string
func (*TraceCommon) ProtoMessage ¶
func (*TraceCommon) ProtoMessage()
func (*TraceCommon) ProtoReflect ¶
func (x *TraceCommon) ProtoReflect() protoreflect.Message
func (*TraceCommon) Reset ¶
func (x *TraceCommon) Reset()
func (*TraceCommon) String ¶
func (x *TraceCommon) String() string
type TraceRequest ¶
type TraceRequest struct { TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // Root trace_id which where item will be added ParentSpanId string `protobuf:"bytes,2,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"` // The root parent_span_id Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` // GET POST PUT, etc. Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // The URL called by a client Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` // The host that generated the trace // contains filtered or unexported fields }
func (*TraceRequest) Descriptor
deprecated
func (*TraceRequest) Descriptor() ([]byte, []int)
Deprecated: Use TraceRequest.ProtoReflect.Descriptor instead.
func (*TraceRequest) GetHost ¶
func (x *TraceRequest) GetHost() string
func (*TraceRequest) GetMethod ¶
func (x *TraceRequest) GetMethod() string
func (*TraceRequest) GetParentSpanId ¶
func (x *TraceRequest) GetParentSpanId() string
func (*TraceRequest) GetTraceId ¶
func (x *TraceRequest) GetTraceId() string
func (*TraceRequest) GetUrl ¶
func (x *TraceRequest) GetUrl() string
func (*TraceRequest) ProtoMessage ¶
func (*TraceRequest) ProtoMessage()
func (*TraceRequest) ProtoReflect ¶
func (x *TraceRequest) ProtoReflect() protoreflect.Message
func (*TraceRequest) Reset ¶
func (x *TraceRequest) Reset()
func (*TraceRequest) String ¶
func (x *TraceRequest) String() string
type TraceResponse ¶
type TraceResponse struct { CombinedId string `protobuf:"bytes,1,opt,name=combined_id,json=combinedId,proto3" json:"combined_id,omitempty"` // Combination of the trace_id, parent_span_id and sampling bool for example: 841a4f73-ba5b-4c38-9237-e1ad91459028+70b993de1e2f879d+1 // contains filtered or unexported fields }
func (*TraceResponse) Descriptor
deprecated
func (*TraceResponse) Descriptor() ([]byte, []int)
Deprecated: Use TraceResponse.ProtoReflect.Descriptor instead.
func (*TraceResponse) GetCombinedId ¶
func (x *TraceResponse) GetCombinedId() string
func (*TraceResponse) ProtoMessage ¶
func (*TraceResponse) ProtoMessage()
func (*TraceResponse) ProtoReflect ¶
func (x *TraceResponse) ProtoReflect() protoreflect.Message
func (*TraceResponse) Reset ¶
func (x *TraceResponse) Reset()
func (*TraceResponse) String ¶
func (x *TraceResponse) String() string
type TraceServiceClient ¶
type TraceServiceClient interface { // Start a new trace. StartTrace(ctx context.Context, in *StartTraceRequest, opts ...grpc.CallOption) (*TraceResponse, error) // Record a new trace within an existing trace. Trace(ctx context.Context, in *TraceRequest, opts ...grpc.CallOption) (*TraceResponse, error) // Start a new span within an existing trace. StartNewSpan(ctx context.Context, in *StartSpanRequest, opts ...grpc.CallOption) (*TraceResponse, error) // Record a span with details of an action performed. Span(ctx context.Context, in *SpanRequest, opts ...grpc.CallOption) (*TraceResponse, error) // Record a span related to a database query. DatabaseSpan(ctx context.Context, in *DatabaseSpanRequest, opts ...grpc.CallOption) (*TraceResponse, error) // Close an existing trace. CloseTrace(ctx context.Context, in *CloseTraceRequest, opts ...grpc.CallOption) (*TraceResponse, error) HealthCheck(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) }
TraceServiceClient is the client API for TraceService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTraceServiceClient ¶
func NewTraceServiceClient(cc grpc.ClientConnInterface) TraceServiceClient
type TraceServiceServer ¶
type TraceServiceServer interface { // Start a new trace. StartTrace(context.Context, *StartTraceRequest) (*TraceResponse, error) // Record a new trace within an existing trace. Trace(context.Context, *TraceRequest) (*TraceResponse, error) // Start a new span within an existing trace. StartNewSpan(context.Context, *StartSpanRequest) (*TraceResponse, error) // Record a span with details of an action performed. Span(context.Context, *SpanRequest) (*TraceResponse, error) // Record a span related to a database query. DatabaseSpan(context.Context, *DatabaseSpanRequest) (*TraceResponse, error) // Close an existing trace. CloseTrace(context.Context, *CloseTraceRequest) (*TraceResponse, error) HealthCheck(context.Context, *Empty) (*HealthCheckResponse, error) // contains filtered or unexported methods }
TraceServiceServer is the server API for TraceService service. All implementations must embed UnimplementedTraceServiceServer for forward compatibility
type TraceStart ¶
type TraceStart struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // GET POST PUT, etc. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // The URL called by a client Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` // The host that generated the trace RemoteAddress string `protobuf:"bytes,4,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"` // Remote address of the client Operation string `protobuf:"bytes,5,opt,name=operation,proto3" json:"operation,omitempty"` // Graphql operation that generated Trace start RootQuery string `protobuf:"bytes,6,opt,name=root_query,json=rootQuery,proto3" json:"root_query,omitempty"` // Graphql Root Query // Reuse TraceCommon for common fields Common *TraceCommon `protobuf:"bytes,7,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*TraceStart) Descriptor
deprecated
func (*TraceStart) Descriptor() ([]byte, []int)
Deprecated: Use TraceStart.ProtoReflect.Descriptor instead.
func (*TraceStart) GetCommon ¶
func (x *TraceStart) GetCommon() *TraceCommon
func (*TraceStart) GetHost ¶
func (x *TraceStart) GetHost() string
func (*TraceStart) GetMethod ¶
func (x *TraceStart) GetMethod() string
func (*TraceStart) GetOperation ¶
func (x *TraceStart) GetOperation() string
func (*TraceStart) GetRemoteAddress ¶
func (x *TraceStart) GetRemoteAddress() string
func (*TraceStart) GetRootQuery ¶
func (x *TraceStart) GetRootQuery() string
func (*TraceStart) GetUrl ¶
func (x *TraceStart) GetUrl() string
func (*TraceStart) ProtoMessage ¶
func (*TraceStart) ProtoMessage()
func (*TraceStart) ProtoReflect ¶
func (x *TraceStart) ProtoReflect() protoreflect.Message
func (*TraceStart) Reset ¶
func (x *TraceStart) Reset()
func (*TraceStart) String ¶
func (x *TraceStart) String() string
type TraceStop ¶
type TraceStop struct { ResponseBody string `protobuf:"bytes,1,opt,name=response_body,json=responseBody,proto3" json:"response_body,omitempty"` // The response generated when a 200 is returned // Reuse TraceCommon for common fields Common *TraceCommon `protobuf:"bytes,2,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*TraceStop) Descriptor
deprecated
func (*TraceStop) GetCommon ¶
func (x *TraceStop) GetCommon() *TraceCommon
func (*TraceStop) GetResponseBody ¶
func (*TraceStop) ProtoMessage ¶
func (*TraceStop) ProtoMessage()
func (*TraceStop) ProtoReflect ¶
func (x *TraceStop) ProtoReflect() protoreflect.Message
type UnimplementedTraceServiceServer ¶
type UnimplementedTraceServiceServer struct { }
UnimplementedTraceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTraceServiceServer) CloseTrace ¶
func (UnimplementedTraceServiceServer) CloseTrace(context.Context, *CloseTraceRequest) (*TraceResponse, error)
func (UnimplementedTraceServiceServer) DatabaseSpan ¶
func (UnimplementedTraceServiceServer) DatabaseSpan(context.Context, *DatabaseSpanRequest) (*TraceResponse, error)
func (UnimplementedTraceServiceServer) HealthCheck ¶
func (UnimplementedTraceServiceServer) HealthCheck(context.Context, *Empty) (*HealthCheckResponse, error)
func (UnimplementedTraceServiceServer) Span ¶
func (UnimplementedTraceServiceServer) Span(context.Context, *SpanRequest) (*TraceResponse, error)
func (UnimplementedTraceServiceServer) StartNewSpan ¶
func (UnimplementedTraceServiceServer) StartNewSpan(context.Context, *StartSpanRequest) (*TraceResponse, error)
func (UnimplementedTraceServiceServer) StartTrace ¶
func (UnimplementedTraceServiceServer) StartTrace(context.Context, *StartTraceRequest) (*TraceResponse, error)
func (UnimplementedTraceServiceServer) Trace ¶
func (UnimplementedTraceServiceServer) Trace(context.Context, *TraceRequest) (*TraceResponse, error)
type UnsafeTraceServiceServer ¶
type UnsafeTraceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTraceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TraceServiceServer will result in compilation errors.