cloudotel

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package cloudotel provides primitives for OpenTelemetry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorLogger

func NewErrorLogger(logger *zap.Logger, level zapcore.Level, message string) otel.ErrorHandler

NewErrorLogger returns a new otel.ErrorHandler that logs errors using the provided logger, level and message.

func NewResource

func NewResource(ctx context.Context) (*resource.Resource, error)

NewResource creates and detects attributes for a new OpenTelemetry resource.

Types

This section is empty.

Jump to

Keyboard shortcuts

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