kokoro

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 6 Imported by: 0

README

kokoro

Kokoro is an opinionated package for instrumenting go services with telemetry.

Structure

This library is designed to enable convenient telemetry instrumentation for go services.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEnvLoadFailed        error = errors.New("failed to load config from environment")
	ErrInitializationFailed error = errors.New("failed to initialize kokoro")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	logs.Logs
	metrics.Metrics
	traces.Traces
}

type Done

type Done func()

func Init

func Init(opts ...Option) (context.Context, Done, error)

type Option

type Option func(*options)

func WithConfig

func WithConfig(config Config) Option

func WithContext

func WithContext(ctx context.Context) Option

Directories

Path Synopsis
Package env implements pulling environment variables into a struct.
Package env implements pulling environment variables into a struct.
telemetry

Jump to

Keyboard shortcuts

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