package internal

import "go.opentelemetry.io/otel/sdk/metric/internal"

Index

Functions

func ReuseSlice

func ReuseSlice[T any](slice []T, n int) []T

ReuseSlice returns a zeroed view of slice if its capacity is greater than or equal to n. Otherwise, it returns a new []T with capacity equal to n.

Source Files

reuse_slice.go

Directories

PathSynopsis
internal/aggregatePackage aggregate provides aggregate types used compute aggregations and cycle the state of metric measurements made by the SDK.
internal/exemplarPackage exemplar provides an implementation of the OpenTelemetry exemplar reservoir to be used in metric collection pipelines.
internal/xPackage x contains support for OTel metric SDK experimental features.
Version
v1.27.0
Published
May 21, 2024
Platform
linux/amd64
Last checked
1 hour ago

Tools for package owners.