attribute
v1.47.0
go.opentelemetry.io/otel/attribute/internal
Documentation
pkg.go.dev ↗Package attribute provide several helper functions for some commonly used logic of processing attributes.
Functions
AsSlice
func AsSlice[T sliceElem](v any) []T
AsSlice converts an array into a slice with the same elements.
SliceValue
func SliceValue[T sliceElem](v []T) any
SliceValue converts a slice into an array with the same elements.