responses

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindSpans

func FindSpans(td ptrace.Traces, name string) []ptrace.Span

func FindSpansFunc

func FindSpansFunc(td ptrace.Traces, pred func(*ptrace.Span) bool) ([]ptrace.Span, map[string]any)

func FindSpansWithAttributes

func FindSpansWithAttributes(td ptrace.Traces, name string) ([]ptrace.Span, map[string]any)

func MatchTraceAttribute

func MatchTraceAttribute(attributes pcommon.Map, attrType pcommon.ValueType, key, value string) error

func ParseTraceDetails

func ParseTraceDetails(body []byte) (ptrace.Traces, error)

Types

type AttributeMatch

type AttributeMatch struct {
	Key   string
	Value string
	Type  pcommon.ValueType
}

type TempoSearchResult

type TempoSearchResult struct {
	Traces []Trace `json:"traces"`
}

func ParseTempoSearchResult

func ParseTempoSearchResult(body []byte) (TempoSearchResult, error)

type Trace

type Trace struct {
	TraceID           string `json:"traceID"`
	RootServiceName   string `json:"rootServiceName"`
	RootTraceName     string `json:"rootTraceName"`
	StartTimeUnixNano string `json:"startTimeUnixNano"`
	DurationMs        int    `json:"durationMs"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL