localTraceExporter

package
v0.389.5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllTraces

func AllTraces() map[string][]*tracepb.Span

func GetTrace

func GetTrace(traceID string) []*tracepb.Span

func New

func New(ctx context.Context) (*otlptrace.Exporter, error)

New constructs a new Exporter and starts it.

func NewClient

func NewClient() otlptrace.Client

NewClient creates a client that stores the spans in memory.

func Summary

func Summary() map[string]*TraceSummary

Types

type TraceSummary

type TraceSummary struct {
	StartTime time.Time
	EndTime   time.Time
	HasError  bool
	Duration  time.Duration
	RootName  string
	Type      string
}

Jump to

Keyboard shortcuts

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