internal

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAgent = fmt.Sprintf("opentelemetry-go/%s", opentelemetry.Version())

UserAgent is the user agent to be added to the outgoing requests from the exporters.

Functions

func ConvertCode added in v0.11.0

func ConvertCode(code otelcodes.Code) grpccodes.Code

ConvertCode converts an OpenTelemetry Code into the equivalent gRPC code.

func MonotonicEndTime

func MonotonicEndTime(start time.Time) time.Time

MonotonicEndTime returns the end time at present but offset from start, monotonically.

The monotonic clock is used in subtractions hence the duration since start added back to start gives end as a monotonic time. See https://golang.org/pkg/time/#hdr-Monotonic_Clocks

func Sanitize

func Sanitize(s string) string

Sanitize returns a string that is trunacated to 100 characters if it's too long, and replaces non-alphanumeric characters to underscores.

Types

This section is empty.

Jump to

Keyboard shortcuts

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