zpages

package module
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 16 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracezHandler

func NewTracezHandler(sp *SpanProcessor) http.Handler

NewTracezHandler returns an http.Handler that can be used to serve HTTP requests for trace zpages.

Types

type SpanProcessor

type SpanProcessor struct {
	// contains filtered or unexported fields
}

SpanProcessor is an sdktrace.SpanProcessor implementation that exposes zpages functionality for opentelemetry-go.

It tracks all active spans, and stores samples of spans based on latency for non errored spans, and samples for errored spans.

func NewSpanProcessor

func NewSpanProcessor() *SpanProcessor

NewSpanProcessor returns a new SpanProcessor.

func (*SpanProcessor) ForceFlush

func (ssm *SpanProcessor) ForceFlush(context.Context) error

func (*SpanProcessor) OnEnd

func (ssm *SpanProcessor) OnEnd(span sdktrace.ReadOnlySpan)

func (*SpanProcessor) OnStart

func (ssm *SpanProcessor) OnStart(_ context.Context, span sdktrace.ReadWriteSpan)

func (*SpanProcessor) Shutdown

func (ssm *SpanProcessor) Shutdown(context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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