xattribute

package
v0.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package xattribute provides some helpers to create OpenTelemetry attributes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringMap

func StringMap(k string, m map[string]string) attribute.KeyValue

StringMap creates a sorted string slice attribute from string map.

func StringerSlice

func StringerSlice[S ~[]E, E fmt.Stringer](k string, v S) attribute.KeyValue

StringerSlice creates a string slice attribute from slice of fmt.Stringer implementations.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL