trace

package
v0.0.0-...-79b970a Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Span1

type Span1 struct {
	Context      context.Context
	SpanID       string
	TraceID      string
	ParentSpanID string
	Status       string
	StarTime     time.Time
	EndTime      time.Time
}

func (*Span1) Start

func (s *Span1) Start(ctx context.Context) error

func (*Span1) Stop

func (c *Span1) Stop() error

type Trace

type Trace struct {
	Conn      *grpc.ClientConn
	Trailer   metadata.MD
	Writer    http.ResponseWriter
	Request   *http.Request
	StartTime time.Time
	TraceID   string
	SpanID    string
	Error     error
	Context   context.Context
	Service   string
}

type Trace1

type Trace1 struct {
	ID string
}

type TraceClient

type TraceClient struct {
	Conn *grpc.ClientConn
}

func NewTraceClient

func NewTraceClient(port int) *TraceClient

func (*TraceClient) NewSpanFromIncomingContext

func (c *TraceClient) NewSpanFromIncomingContext(ctx context.Context) *Span1

func (*TraceClient) NewSpanFromOutgoingContext

func (c *TraceClient) NewSpanFromOutgoingContext(ctx context.Context) *Span1

func (*TraceClient) NewTrace

func (c *TraceClient) NewTrace(traceId string) *Span1

func (*TraceClient) Set

func (c *TraceClient) Set(i interface{})

type TraceString

type TraceString string

Jump to

Keyboard shortcuts

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