package internal

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

Index

Variables

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

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

Functions

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

Source Files

internal.go

Directories

PathSynopsis
internal/env
Version
v1.5.0
Published
Mar 16, 2022
Platform
linux/amd64
Imports
3 packages
Last checked
14 seconds ago

Tools for package owners.