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: 0 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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