package attribute
import "go.opentelemetry.io/otel/attribute/internal"
Package attribute provide several helper functions for some commonly used logic of processing attributes.
Index ¶
Functions ¶
func AsSlice ¶
func AsSlice[T sliceElem](v any) []T
AsSlice converts an array into a slice with the same elements.
func SliceValue ¶
func SliceValue[T sliceElem](v []T) any
SliceValue converts a slice into an array with the same elements.
Source Files ¶
attribute.go
Directories ¶
| Path | Synopsis |
|---|---|
| attribute/internal/xxhash | Package xxhash provides a wrapper around the xxhash library for attribute hashing. |
- Version
- v1.43.0 (latest)
- Published
- Apr 3, 2026
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 8 minutes ago –
Tools for package owners.