otel: go.opentelemetry.io/otel/sdk/internal Index | Files

package internal

import "go.opentelemetry.io/otel/sdk/internal"


Package Files

internal.go sanitize.go


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

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

func MonotonicEndTime Uses

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 Uses

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.

Package internal imports 5 packages (graph) and is imported by 1 packages. Updated 2020-11-18. Refresh now. Tools for package owners.