package attribute
import "go.opentelemetry.io/otel/internal/attribute"
Package attribute provide several helper functions for some commonly used logic of processing attributes.
Index ¶
- func AsSlice[T bool | int64 | float64 | string](v any) []T
- func SliceValue[T bool | int64 | float64 | string](v []T) any
Functions ¶
func AsSlice ¶
AsSlice convert an array into a slice into with same elements as array.
func SliceValue ¶
SliceValue convert a slice into an array with same elements as slice.
Source Files ¶
attribute.go
- Version
- v1.13.0
- Published
- Feb 7, 2023
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 41 minutes ago –
Tools for package owners.