registration

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package registration registers configured tracers for use with handlers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *config.TracingConfig) (trace.Tracer, func(), error)

Init initializes tracing and returns a function to flush the tracer. Flush should be called on server shutdown.

Types

type Flushers

type Flushers []func()

Flushers represents a slice of Flusher functions for the configured Tracers

func RegisterAll

func RegisterAll(cfg *config.TricksterConfig) (Flushers, error)

RegisterAll registers all Tracers in the provided configuration, and returns their Flushers

Jump to

Keyboard shortcuts

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