Documentation ¶
Index ¶
- Constants
- Variables
- func EncodeSpanPayload(span *model.Span) (string, error)
- func RandStringBytes(n int) string
- type Reader
- func (s *Reader) FindTraceIDs(ctx context.Context, query *spanstore.TraceQueryParameters) ([]model.TraceID, error)
- func (s *Reader) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)
- func (s *Reader) GetOperations(ctx context.Context, query spanstore.OperationQueryParameters) ([]spanstore.Operation, error)
- func (s *Reader) GetServices(ctx context.Context) ([]string, error)
- func (s *Reader) GetTrace(ctx context.Context, traceID model.TraceID) (*model.Trace, error)
- type S3API
- type SpanRecord
- type SpanRecordReferences
- type Writer
Constants ¶
View Source
const (
PARQUET_CONCURRENCY = 1
)
Variables ¶
View Source
var (
PARQUET_ROTATION_INTERVAL = 60 * time.Second
)
Functions ¶
func RandStringBytes ¶ added in v0.0.9
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) FindTraceIDs ¶
func (s *Reader) FindTraceIDs(ctx context.Context, query *spanstore.TraceQueryParameters) ([]model.TraceID, error)
This method is not used
func (*Reader) FindTraces ¶
func (*Reader) GetOperations ¶
type S3API ¶ added in v0.0.9
type S3API interface { PutObject(context.Context, *s3.PutObjectInput, ...func(*s3.Options)) (*s3.PutObjectOutput, error) UploadPart(context.Context, *s3.UploadPartInput, ...func(*s3.Options)) (*s3.UploadPartOutput, error) CreateMultipartUpload(context.Context, *s3.CreateMultipartUploadInput, ...func(*s3.Options)) (*s3.CreateMultipartUploadOutput, error) CompleteMultipartUpload(context.Context, *s3.CompleteMultipartUploadInput, ...func(*s3.Options)) (*s3.CompleteMultipartUploadOutput, error) AbortMultipartUpload(context.Context, *s3.AbortMultipartUploadInput, ...func(*s3.Options)) (*s3.AbortMultipartUploadOutput, error) GetObject(context.Context, *s3.GetObjectInput, ...func(*s3.Options)) (*s3.GetObjectOutput, error) HeadObject(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options)) (*s3.HeadObjectOutput, error) }
type SpanRecord ¶
type SpanRecord struct { TraceID string `parquet:"name=trace_id, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN"` SpanID string `parquet:"name=span_id, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN"` OperationName string `parquet:"name=operation_name, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` SpanKind string `parquet:"name=span_kind, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` StartTime int64 `parquet:"name=start_time, type=INT64"` Duration int64 `parquet:"name=duration, type=INT64"` Tags map[string]string `` /* 138-byte string literal not displayed */ ServiceName string `parquet:"name=service_name, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"` // TODO: Write binary SpanPayload string `parquet:"name=span_payload, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN"` References []*SpanRecordReferences `parquet:"name=references"` }
SpanRecord contains queryable properties from the span and the span as json payload
func NewSpanRecordFromSpan ¶
func NewSpanRecordFromSpan(span *model.Span) (*SpanRecord, error)
type SpanRecordReferences ¶ added in v0.0.2
type SpanRecordReferences struct { TraceID string `parquet:"name=trace_id, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN"` SpanID string `parquet:"name=span_id, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN"` RefType int64 `parquet:"name=ref_type, type=INT64"` }
func NewSpanRecordReferencesFromSpanReferences ¶ added in v0.0.2
func NewSpanRecordReferencesFromSpanReferences(span *model.Span) []*SpanRecordReferences
Click to show internal directories.
Click to hide internal directories.