Documentation
¶
Overview ¶
Package x contains support for OTel 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 Resource = newFeature("RESOURCE", func(v string) (string, bool) { if strings.ToLower(v) == "true" { return v, true } return "", false })
Resource is an experimental feature flag that defines if resource detectors should be included experimental semantic conventions.
To enable this feature set the OTEL_GO_X_RESOURCE environment variable to the case-insensitive string value of "true" (i.e. "True" and "TRUE" will also enable this).
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.