zpages

package module
Version: v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 16 Imported by: 2

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.

func SemVersion added in v0.24.0

func SemVersion() string

SemVersion is the semantic version to be supplied to tracer/meter creation.

func Version added in v0.24.0

func Version() string

Version is the current release version of the zpages span processor.

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

ForceFlush does nothing.

func (*SpanProcessor) OnEnd

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

OnEnd processes all spans and reports them with zpages.

func (*SpanProcessor) OnStart

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

OnStart adds span as active and reports it with zpages.

func (*SpanProcessor) Shutdown

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

Shutdown does nothing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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