Documentation
¶
Overview ¶
Package zpages implements a collection of HTML pages that display telemetry stats.
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
deprecated
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.