Documentation ¶
Index ¶
- Constants
- func CreateCombinedId(trace *pb.TraceBare) string
- func GenerateSpanID() string
- func TraceFromCtx(ctx context.Context) *pb.TraceBare
- type Adapter
- type ClientTracer
- type MapCommand
- type MapResponse
- type TraceService
- type TraceServiceClient
- type TraceServiceImpl
- func (t *TraceServiceImpl) Chorus(stream pb.TraceService_ChorusServer) error
- func (t *TraceServiceImpl) CloseTrace(close *pb.ParabasisRequest_CloseTrace, traceID, ParentSpanID string)
- func (t *TraceServiceImpl) DatabaseSpan(in *pb.ParabasisRequest_DatabaseSpan, traceID, ParentSpanID string)
- func (t *TraceServiceImpl) HealthCheck(ctx context.Context, start *pb.Empty) (*pb.HealthCheckResponse, error)
- func (t *TraceServiceImpl) ManageStartTimeMap()
- func (t *TraceServiceImpl) Span(in *pb.ParabasisRequest_Span, traceID, ParentSpanID string)
- func (t *TraceServiceImpl) StartTrace(start *pb.ParabasisRequest_StartTrace, traceID, ParentSpanID string)
- func (t *TraceServiceImpl) Trace(in *pb.ParabasisRequest_Trace, traceID, ParentSpanID, spanID string)
- func (t *TraceServiceImpl) UpdateDocumentWithRetry(traceID, itemName string, data []byte) (string, error)
Constants ¶
View Source
const ( TRACE string = "trace" SPAN string = "span" TRACESTART string = "trace_start" TRACECLOSE string = "trace_close" DATABASESPAN string = "database_span" ITEMS string = "items" )
View Source
const (
DefaultAddress string = "localhost:50052"
)
Variables ¶
This section is empty.
Functions ¶
func CreateCombinedId ¶ added in v0.5.0
func GenerateSpanID ¶ added in v0.5.0
func GenerateSpanID() string
Types ¶
type Adapter ¶ added in v0.5.0
type Adapter func(http.HandlerFunc) http.HandlerFunc
func Trace ¶ added in v0.5.0
func Trace(tracer pb.TraceService_ChorusClient) Adapter
func TraceWithLogAndSpan ¶ added in v0.5.7
func TraceWithLogAndSpan(tracer pb.TraceService_ChorusClient) Adapter
type ClientTracer ¶
type ClientTracer struct {
// contains filtered or unexported fields
}
func NewClientTracer ¶
func NewClientTracer(serviceAddress string) (*ClientTracer, error)
func (*ClientTracer) Chorus ¶ added in v0.5.0
func (c *ClientTracer) Chorus(ctx context.Context) (pb.TraceService_ChorusClient, error)
func (*ClientTracer) HealthCheck ¶
func (c *ClientTracer) HealthCheck(ctx context.Context, request *pb.Empty) (*pb.HealthCheckResponse, error)
func (*ClientTracer) WaitForHealthyState ¶
func (c *ClientTracer) WaitForHealthyState() bool
type MapCommand ¶ added in v0.5.0
type MapCommand struct { Action string TraceID string Time time.Time Response chan<- MapResponse }
type MapResponse ¶ added in v0.5.0
type TraceService ¶
type TraceServiceClient ¶
type TraceServiceClient struct {
Impl TraceService
}
type TraceServiceImpl ¶
type TraceServiceImpl struct { PodName string Namespace string Index string Elastic aristoteles.Client Metrics *sophokles.ClientMetrics GatherMetrics bool pb.UnimplementedTraceServiceServer // contains filtered or unexported fields }
func NewTraceServiceImpl ¶
func NewTraceServiceImpl() (*TraceServiceImpl, error)
func (*TraceServiceImpl) Chorus ¶ added in v0.5.0
func (t *TraceServiceImpl) Chorus(stream pb.TraceService_ChorusServer) error
func (*TraceServiceImpl) CloseTrace ¶
func (t *TraceServiceImpl) CloseTrace(close *pb.ParabasisRequest_CloseTrace, traceID, ParentSpanID string)
func (*TraceServiceImpl) DatabaseSpan ¶
func (t *TraceServiceImpl) DatabaseSpan(in *pb.ParabasisRequest_DatabaseSpan, traceID, ParentSpanID string)
func (*TraceServiceImpl) HealthCheck ¶
func (t *TraceServiceImpl) HealthCheck(ctx context.Context, start *pb.Empty) (*pb.HealthCheckResponse, error)
func (*TraceServiceImpl) ManageStartTimeMap ¶ added in v0.5.0
func (t *TraceServiceImpl) ManageStartTimeMap()
func (*TraceServiceImpl) Span ¶
func (t *TraceServiceImpl) Span(in *pb.ParabasisRequest_Span, traceID, ParentSpanID string)
func (*TraceServiceImpl) StartTrace ¶
func (t *TraceServiceImpl) StartTrace(start *pb.ParabasisRequest_StartTrace, traceID, ParentSpanID string)
func (*TraceServiceImpl) Trace ¶
func (t *TraceServiceImpl) Trace(in *pb.ParabasisRequest_Trace, traceID, ParentSpanID, spanID string)
func (*TraceServiceImpl) UpdateDocumentWithRetry ¶
func (t *TraceServiceImpl) UpdateDocumentWithRetry(traceID, itemName string, data []byte) (string, error)
Click to show internal directories.
Click to hide internal directories.