Documentation ¶
Overview ¶
Package x contains support for OTel metric SDK experimental features.
This package should only be used for features defined in the specification. It should not be used for experiments or new project ideas.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Exemplars is an experimental feature flag that defines if exemplars // should be recorded for metric data-points. // // To enable this feature set the OTEL_GO_X_EXEMPLAR environment variable // to the case-insensitive string value of "true" (i.e. "True" and "TRUE" // will also enable this). Exemplars = newFeature("EXEMPLAR", func(v string) (string, bool) { if strings.ToLower(v) == "true" { return v, true } return "", false }) // CardinalityLimit is an experimental feature flag that defines if // cardinality limits should be applied to the recorded metric data-points. // // To enable this feature set the OTEL_GO_X_CARDINALITY_LIMIT environment // variable to the integer limit value you want to use. // // Setting OTEL_GO_X_CARDINALITY_LIMIT to a value less than or equal to 0 // will disable the cardinality limits. CardinalityLimit = newFeature("CARDINALITY_LIMIT", func(v string) (int, bool) { n, err := strconv.Atoi(v) if err != nil { return 0, false } return n, true }) )
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature[T any] struct { // contains filtered or unexported fields }
Feature is an experimental feature control flag. It provides a uniform way to interact with these feature flags and parse their values.
Click to show internal directories.
Click to hide internal directories.