package module
v0.50.0 Latest Latest

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 7



Package zpages implements a collection of HTML pages that display telemetry stats.



This section is empty.


This section is empty.


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 deprecated added in v0.24.0

func SemVersion() string

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

Deprecated: Use Version instead.

func Version added in v0.24.0

func Version() string

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


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.


Path Synopsis

Jump to

Keyboard shortcuts

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