tracing

package
v0.0.0-...-0000b31 Latest Latest
Warning

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

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

Documentation

Overview

Package tracing provides utilities for creating a tracer to use within Mixer commands (mixc, mixs). It provides basic methods for configuring export options for generated traces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracer

func NewTracer(serviceName string, options ...Option) (opentracing.Tracer, io.Closer, error)

NewTracer returns a new tracer for use with Mixer, based on the supplied options. The closer returned is used to ensure flushing of all existing span data during Mixer shutdown.

Types

type Option

type Option func(*tracingOpts)

Option is a function that configures Mixer self-tracing options.

func WithJaegerHTTPCollector

func WithJaegerHTTPCollector(addr string) Option

WithJaegerHTTPCollector configures Mixer tracing to export span data to a jaeger HTTP collector at the supplied URL using HTTP Basic Authentication.

func WithLogger

func WithLogger() Option

WithLogger configures Mixer tracing to log span data to the console.

func WithZipkinCollector

func WithZipkinCollector(addr string) Option

WithZipkinCollector configures Mixer tracing to export span data to a zipkin collector at the supplied URL.

Jump to

Keyboard shortcuts

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