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. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Variables type Config type Done func Init(opts ...Option) (context.Context, Done, error) type Option func WithConfig(config Config) Option func WithContext(ctx context.Context) Option 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 Source Files ¶ View all Source files config.go errors.go kokoro.go Directories ¶ Show internal Expand all Path Synopsis env Package env implements pulling environment variables into a struct. Package env implements pulling environment variables into a struct. koko telemetry logs metrics metrics/export traces Click to show internal directories. Click to hide internal directories.