trace

package module
v0.0.0-...-3faf7bc Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, config *Config) (*trace.TracerProvider, error)

func OtelChiMiddleware

func OtelChiMiddleware(serverName, skipPath string) func(handler http.Handler) http.Handler

func ProcessTracingHandler

func ProcessTracingHandler(serverName string, next mimosasqs.Handler) mimosasqs.Handler

Types

type Config

type Config struct {
	Namespace   string
	ServiceName string
	Environment string
	ExporterType
}

func (*Config) GetFullServiceName

func (c *Config) GetFullServiceName() string

type ExporterType

type ExporterType int
const (
	ExporterTypeUndefined ExporterType = iota
	ExporterTypeNOP
	ExporterTypeStdout
	ExporterTypeDatadog
)

func ConvertExporterTypeFrom

func ConvertExporterTypeFrom(typeString string) (ExporterType, error)

func (ExporterType) String

func (t ExporterType) String() string

Jump to

Keyboard shortcuts

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