Documentation ¶
Overview ¶
This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license.
Index ¶
- Constants
- Variables
- func FindTagInfo(ctx context.Context, q *spanstore.TraceQueryParameters, conn pgxconn.PgxConn) (*tagsInfo, error)
- func ProtoFromTraces(traces ptrace.Traces) ([]*model.Batch, error)
- func ProtoToTraces(span *model.Span) (ptrace.Traces, error)
- func RegisterTelemetryMetrics(t telemetry.Engine) error
- func ScanRow(row pgxconn.PgxRows, traces *ptrace.Traces) error
- func Validate(cfg *Config) error
- type Builder
- type Config
- type Store
- func (p *Store) Close() error
- func (p *Store) DependencyReader() dependencystore.Reader
- func (p *Store) FindTraceIDs(ctx context.Context, query *spanstore.TraceQueryParameters) ([]model.TraceID, error)
- func (p *Store) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)
- func (p *Store) GetBuilder() *Builder
- func (p *Store) GetDependencies(ctx context.Context, endTs time.Time, lookback time.Duration) ([]model.DependencyLink, error)
- func (p *Store) GetOperations(ctx context.Context, query spanstore.OperationQueryParameters) ([]spanstore.Operation, error)
- func (p *Store) GetServices(ctx context.Context) ([]string, error)
- func (p *Store) GetTrace(ctx context.Context, traceID model.TraceID) (*model.Trace, error)
- func (p *Store) SpanReader() spanstore.Reader
- func (p *Store) SpanWriter() spanstore.Writer
- func (p *Store) StreamingSpanWriter() spanstore.Writer
- func (p *Store) WriteSpan(ctx context.Context, span *model.Span) error
Constants ¶
View Source
const ( // Keys used to represent OTLP constructs from Jaeger tags which are then dropped from the tag map. TagError = "error" TagHostname = "hostname" TagJaegerVersion = "jaeger.version" TagSpanKind = "span.kind" TagW3CTraceState = "w3c.tracestate" TagEventName = "event" )
View Source
const (
DefaultMaxTraceDuration = time.Hour
)
View Source
const MEDIA_TYPE_ENCODED_BINARY = "data:application/octet-stream; base64,"
View Source
const MEDIA_TYPE_ENCODED_BINARY_LEN = len(MEDIA_TYPE_ENCODED_BINARY)
Variables ¶
View Source
var DefaultConfig = Config{ MaxTraceDuration: DefaultMaxTraceDuration, StreamingSpanWriter: true, }
Functions ¶
func FindTagInfo ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func (*Builder) BuildTraceIDSubquery ¶
func (b *Builder) BuildTraceIDSubquery(q *spanstore.TraceQueryParameters, tInfo *tagsInfo) (string, []interface{})
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Close ¶
Close performs graceful shutdown of SpanWriter on Jaeger collector shutdown. In our case we have nothing to do Noop impl avoid getting GRPC error message when Jaeger collector shuts down.
func (*Store) DependencyReader ¶
func (p *Store) DependencyReader() dependencystore.Reader
func (*Store) FindTraceIDs ¶
func (*Store) FindTraces ¶
func (*Store) GetBuilder ¶
func (*Store) GetDependencies ¶
func (*Store) GetOperations ¶
func (*Store) SpanReader ¶
func (*Store) SpanWriter ¶
func (*Store) StreamingSpanWriter ¶
Click to show internal directories.
Click to hide internal directories.