package internal
import "go.opentelemetry.io/otel/sdk/internal"
Index ¶
- Variables
- func ConvertCode(code otelcodes.Code) grpccodes.Code
- func MonotonicEndTime(start time.Time) time.Time
- func Sanitize(s string) string
Variables ¶
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 ¶
ConvertCode converts an OpenTelemetry Code into the equivalent gRPC code.
func MonotonicEndTime ¶
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 ¶
Sanitize returns a string that is trunacated to 100 characters if it's too long, and replaces non-alphanumeric characters to underscores.
Source Files ¶
codes.go internal.go sanitize.go
- Version
- v0.11.0
- Published
- Aug 25, 2020
- Platform
- windows/amd64
- Imports
- 7 packages
- Last checked
- 20 minutes ago –
Tools for package owners.