tracing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(provider tracing.Provider, opts ...Option) middleware.Middleware

Client returns a client tracing middleware.

func Server

func Server(provider tracing.Provider, opts ...Option) middleware.Middleware

Server returns a server tracing middleware.

Types

type MDCarrier

type MDCarrier xrpc.MD

MDCarrier is a carrier for the TextMapPropagator.

func (MDCarrier) Get

func (c MDCarrier) Get(key string) string

Get returns the value associated with the passed key.

func (MDCarrier) Keys

func (c MDCarrier) Keys() []string

Keys lists the keys stored in this carrier.

func (MDCarrier) Set

func (c MDCarrier) Set(key, value string)

Set stores the key-value pair.

type Option

type Option func(*options)

Option is a function that configures the middleware.

func WithLogger

func WithLogger(logger xlog.Logger) Option

WithLogger returns a new Option that sets the logger.

Jump to

Keyboard shortcuts

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