Debian Codegraph @

pdata/xpdata/pref/gate.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 package pref // import "go.opentelemetry.io/collector/pdata/xpdata/pref"
5
6 import (
7 "go.opentelemetry.io/collector/featuregate"
8 "go.opentelemetry.io/collector/pdata/internal"
9 )
10
11 // UseProtoPooling temporary expose public to allow testing.
12 var UseProtoPooling = internal.UseProtoPooling
13
14 var EnableRefCounting = featuregate.GlobalRegistry().MustRegister(
15 "pdata.enableRefCounting",
16 featuregate.StageBeta,
17 featuregate.WithRegisterDescription("When enabled, enables using ref counting to know when pdata memory can be freed up. This featuregate is here only to protect if unexpected bugs happens because of ref counting logic."),
18 featuregate.WithRegisterReferenceURL("https://github.com/open-telemetry/opentelemetry-collector/issues/13631"),
19 featuregate.WithRegisterFromVersion("v0.133.0"),
20 )