Documentation ¶
Index ¶
- Constants
- func DecodeSpanPayload(payload string) (*model.Span, error)
- func EmptyBucket(ctx context.Context, svc S3API, bucketName string) error
- func EncodeSpanPayload(span *model.Span) (string, error)
- func RandStringBytes(n int) string
- func S3ParquetKey(prefix, suffix string, datehour string) string
- func S3PartitionKey(t time.Time) string
- type ParquetRef
- type Reader
- func (r *Reader) DefaultMaxTime() time.Time
- func (r *Reader) DefaultMinTime() time.Time
- 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 (r *Reader) GetDependencies(ctx context.Context, endTs time.Time, lookback time.Duration) ([]model.DependencyLink, 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 PARTION_FORMAT = "2006/01/02/15" )
View Source
const (
ATHENA_TIMEFORMAT = "2006-01-02 15:04:05.999"
)
Variables ¶
This section is empty.
Functions ¶
func DecodeSpanPayload ¶ added in v0.1.0
func EmptyBucket ¶ added in v0.1.0
func RandStringBytes ¶ added in v0.0.9
func S3ParquetKey ¶ added in v0.0.13
func S3PartitionKey ¶ added in v0.1.4
Types ¶
type ParquetRef ¶ added in v0.1.4
type ParquetRef struct {
// contains filtered or unexported fields
}
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) DefaultMaxTime ¶ added in v0.1.4
func (*Reader) DefaultMinTime ¶ added in v0.1.4
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) GetDependencies ¶ added in v0.1.4
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) DeleteObject(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error) ListObjectsV2(ctx context.Context, params *s3.ListObjectsV2Input, optFns ...func(*s3.Options)) (*s3.ListObjectsV2Output, 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 int32 `parquet:"name=ref_type, type=INT32, convertedtype=INT_8"` }
func NewSpanRecordReferencesFromSpanReferences ¶ added in v0.0.2
func NewSpanRecordReferencesFromSpanReferences(span *model.Span) []SpanRecordReferences
Click to show internal directories.
Click to hide internal directories.