Documentation ¶
Index ¶
- func NewLogFromFromSpanItemLog(log *SpanItemLog) model.Log
- func NewLogsFromFromSpanItemLogs(spanItemLogs []*SpanItemLog) []model.Log
- func NewOperationFromOperationItem(operationItem *OperationItem) spanstore.Operation
- func NewProcessFromSpanItemProcess(spanItemProcess *SpanItemProcess) *model.Process
- func NewReferenceFromFromSpanItemReference(spanItemReference *SpanItemReference) (*model.SpanRef, error)
- func NewReferencesFromFromSpanItemReferences(spanItemReferences []*SpanItemReference) ([]model.SpanRef, error)
- func NewServiceFromServiceItem(serviceItem *ServiceItem) string
- func NewSpanFromSpanItem(spanItem *SpanItem) (*model.Span, error)
- type DynamoDBAPI
- type OperationItem
- 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 ServiceItem
- type SpanItem
- type SpanItemLog
- type SpanItemProcess
- type SpanItemReference
- type TraceIDResult
- type TraceIDSet
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogFromFromSpanItemLog ¶
func NewLogFromFromSpanItemLog(log *SpanItemLog) model.Log
func NewLogsFromFromSpanItemLogs ¶
func NewLogsFromFromSpanItemLogs(spanItemLogs []*SpanItemLog) []model.Log
func NewOperationFromOperationItem ¶
func NewOperationFromOperationItem(operationItem *OperationItem) spanstore.Operation
func NewProcessFromSpanItemProcess ¶
func NewProcessFromSpanItemProcess(spanItemProcess *SpanItemProcess) *model.Process
func NewReferenceFromFromSpanItemReference ¶
func NewReferenceFromFromSpanItemReference(spanItemReference *SpanItemReference) (*model.SpanRef, error)
func NewReferencesFromFromSpanItemReferences ¶
func NewReferencesFromFromSpanItemReferences(spanItemReferences []*SpanItemReference) ([]model.SpanRef, error)
func NewServiceFromServiceItem ¶
func NewServiceFromServiceItem(serviceItem *ServiceItem) string
Types ¶
type DynamoDBAPI ¶
type DynamoDBAPI interface {
PutItem(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error)
}
type OperationItem ¶
func NewOperationItemFromSpan ¶
func NewOperationItemFromSpan(span *model.Span) *OperationItem
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 ¶
func (s *Reader) GetOperations(ctx context.Context, query spanstore.OperationQueryParameters) ([]spanstore.Operation, error)
TODO beggningOfTime might not be a good idea, maybe make a system property that the image is run with?
func (*Reader) GetServices ¶
TODO beggningOfTime might not be a good idea, maybe make a system property that the image is run with?
type ServiceItem ¶
func NewServiceItemFromSpan ¶
func NewServiceItemFromSpan(span *model.Span) *ServiceItem
type SpanItem ¶
type SpanItem struct { TraceID string SpanID string OperationName string References []*SpanItemReference Flags model.Flags StartTime int64 Duration int64 Tags []model.KeyValue SearchableTags map[string]string Logs []*SpanItemLog Process *SpanItemProcess ServiceName string ProcessID string Warnings []string ExpiresAfter int64 // Used for querying with a sharded GSI // https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-indexes-gsi-sharding.html ServiceNameBucket string }
func NewSpanItemFromSpan ¶
type SpanItemLog ¶
func NewSpanItemLogFromLog ¶
func NewSpanItemLogFromLog(log *model.Log) *SpanItemLog
func NewSpanItemLogsFromLogs ¶
func NewSpanItemLogsFromLogs(logs []model.Log) []*SpanItemLog
type SpanItemProcess ¶
func NewSpanItemProcessFromProcess ¶
func NewSpanItemProcessFromProcess(process *model.Process) *SpanItemProcess
type SpanItemReference ¶
type SpanItemReference struct { TraceID string SpanID string RefType model.SpanRefType }
func NewSpanItemReferenceFromReference ¶
func NewSpanItemReferenceFromReference(reference model.SpanRef) *SpanItemReference
func NewSpanItemReferencesFromReferences ¶
func NewSpanItemReferencesFromReferences(references []model.SpanRef) []*SpanItemReference
type TraceIDResult ¶
type TraceIDResult struct {
TraceID string
}
type TraceIDSet ¶ added in v0.0.10
func NewTraceIDSet ¶ added in v0.0.10
func NewTraceIDSet() *TraceIDSet
func (*TraceIDSet) Add ¶ added in v0.0.10
func (s *TraceIDSet) Add(item string)
func (*TraceIDSet) Items ¶ added in v0.0.10
func (s *TraceIDSet) Items() []string
func (*TraceIDSet) Len ¶ added in v0.0.10
func (s *TraceIDSet) Len() int
Click to show internal directories.
Click to hide internal directories.