autozpages

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package autozpages setups zPages handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterableTracerProvider

type RegisterableTracerProvider interface {
	// RegisterSpanProcessor adds the given SpanProcessor to the list of SpanProcessors.
	// https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace#TracerProvider.RegisterSpanProcessor.
	RegisterSpanProcessor(SpanProcessor sdktrace.SpanProcessor)

	// UnregisterSpanProcessor removes the given SpanProcessor from the list of SpanProcessors.
	// https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace#TracerProvider.UnregisterSpanProcessor.
	UnregisterSpanProcessor(SpanProcessor sdktrace.SpanProcessor)
}

RegisterableTracerProvider is a Tracer provider.

type ShutdownFunc

type ShutdownFunc func(ctx context.Context) error

ShutdownFunc is a function that shuts down the MeterProvider.

func NewZPages

func NewZPages(provider RegisterableTracerProvider) (_ ShutdownFunc, rerr error)

NewZPages registers zPages processor on given trace provider and runs HTTP server.

func Setup

func Setup(provider trace.TracerProvider) (ShutdownFunc, error)

Setup setups zPages.

Jump to

Keyboard shortcuts

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