Documentation
¶
Index ¶
- func DecodeLogs(raw []byte) ([]model.Log, error)
- func DecodeSpanID(raw []byte) model.SpanID
- func DecodeSpanRefs(data []byte) ([]model.SpanRef, error)
- func DecodeTags(input []byte) ([]model.KeyValue, error)
- func DecodeTraceID(raw []byte) model.TraceID
- func EncodeInterval(duration time.Duration) pgtype.Interval
- func EncodeLogs(logs []model.Log) ([]byte, error)
- func EncodeSpanID(spanID model.SpanID) []byte
- func EncodeSpanKind(modelKind trace.SpanKind) sql.Spankind
- func EncodeSpanRefs(spanrefs []model.SpanRef) ([]byte, error)
- func EncodeTags(input []model.KeyValue) ([]byte, error)
- func EncodeTimestamp(t time.Time) pgtype.Timestamp
- func EncodeTraceID(traceID model.TraceID) []byte
- func TruncateTime(ts time.Time) time.Time
- type InstrumentedReader
- func (r *InstrumentedReader) FindTraceIDs(ctx context.Context, query *spanstore.TraceQueryParameters) ([]model.TraceID, error)
- func (r *InstrumentedReader) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)
- func (r *InstrumentedReader) GetTrace(ctx context.Context, traceID model.TraceID) (*model.Trace, error)
- type InstrumentedWriter
- type Reader
- func (r *Reader) FindTraceIDs(ctx context.Context, query *spanstore.TraceQueryParameters) ([]model.TraceID, error)
- func (r *Reader) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)
- func (r *Reader) GetDependencies(ctx context.Context, endTs time.Time, lookback time.Duration) ([]model.DependencyLink, error)
- func (r *Reader) GetOperations(ctx context.Context, param spanstore.OperationQueryParameters) ([]spanstore.Operation, error)
- func (r *Reader) GetServices(ctx context.Context) ([]string, error)
- func (r *Reader) GetTrace(ctx context.Context, traceID model.TraceID) (*model.Trace, error)
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSpanID ¶
DecodeSpanID decodes a span id form a byte slice.
func DecodeTraceID ¶
DecodeTraceID converts a slice of raw bytes into a trace id.
func EncodeSpanID ¶
EncodeSpanID encodes a span id into a slice of bytes.
func EncodeTraceID ¶
EncodeTraceID converts a trace id to a slice of raw bytes.
Types ¶
type InstrumentedReader ¶ added in v1.0.0
InstrumentedReader is a reader that has been instrumented.
func NewInstrumentedReader ¶ added in v1.0.0
func NewInstrumentedReader(embedded spanstore.Reader, logger *slog.Logger) *InstrumentedReader
NewInstrumentedReader returns a new spanstore.Reader that is instrumented.
func (*InstrumentedReader) FindTraceIDs ¶ added in v1.0.0
func (r *InstrumentedReader) FindTraceIDs(ctx context.Context, query *spanstore.TraceQueryParameters) ([]model.TraceID, error)
FindTraceIDs retrieve traceIDs that match the traceQuery
func (*InstrumentedReader) FindTraces ¶ added in v1.0.0
func (r *InstrumentedReader) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)
FindTraces retrieve traces that match the traceQuery
type InstrumentedWriter ¶ added in v1.0.0
InstrumentedWriter is a writer that has been instrumented.
func NewInstrumentedWriter ¶ added in v1.0.0
func NewInstrumentedWriter(embedded spanstore.Writer, logger *slog.Logger) *InstrumentedWriter
NewInstrumentedWriter returns a new spanstore.Writer that is instrumented.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader can query for and load traces from PostgreSQL v2.x.
func (*Reader) FindTraceIDs ¶
func (r *Reader) FindTraceIDs(ctx context.Context, query *spanstore.TraceQueryParameters) ([]model.TraceID, error)
FindTraceIDs retrieve traceIDs that match the traceQuery
func (*Reader) FindTraces ¶
func (r *Reader) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)
FindTraces retrieve traces that match the traceQuery
func (*Reader) GetDependencies ¶
func (r *Reader) GetDependencies(ctx context.Context, endTs time.Time, lookback time.Duration) ([]model.DependencyLink, error)
GetDependencies returns all inter-service dependencies
func (*Reader) GetOperations ¶
func (r *Reader) GetOperations(ctx context.Context, param spanstore.OperationQueryParameters) ([]spanstore.Operation, error)
GetOperations returns all operations for a specific service traced by Jaeger
func (*Reader) GetServices ¶
GetServices returns all services traced by Jaeger