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 AsBoolSlice

func AsBoolSlice(v any) []bool

AsBoolSlice converts a bool array into a slice into with same elements as array.

func AsFloat64Slice

func AsFloat64Slice(v any) []float64

AsFloat64Slice converts a float64 array into a slice into with same elements as array.

func AsInt64Slice

func AsInt64Slice(v any) []int64

AsInt64Slice converts an int64 array into a slice into with same elements as array.

func AsStringSlice

func AsStringSlice(v any) []string

AsStringSlice converts a string array into a slice into with same elements as array.

func BoolSliceValue

func BoolSliceValue(v []bool) any

BoolSliceValue converts a bool slice into an array with same elements as slice.

func Float64SliceValue

func Float64SliceValue(v []float64) any

Float64SliceValue converts a float64 slice into an array with same elements as slice.

func Int64SliceValue

func Int64SliceValue(v []int64) any

Int64SliceValue converts an int64 slice into an array with same elements as slice.

func StringSliceValue

func StringSliceValue(v []string) any

StringSliceValue converts a string slice into an array with same elements as slice.

Source Files

attribute.go

Directories

PathSynopsis
attribute/internal/xxhashPackage xxhash provides a wrapper around the xxhash library for attribute hashing.
Version
v1.40.0
Published
Feb 2, 2026
Platform
windows/amd64
Imports
1 packages
Last checked
1 hour ago

Tools for package owners.