package x
Import Path
go.opentelemetry.io/otel/sdk/internal/x (on go.dev)
Dependency Relation
imports 2 packages, and imported by one package
Involved Source Files
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.
Package-Level Type Names (only one)
Type Parameters:
T: any
Feature is an experimental feature control flag. It provides a uniform way
to interact with these feature flags and parse their values.
Enabled reports whether the feature is enabled.
Key returns the environment variable key that needs to be set to enable the
feature.
Lookup returns the user configured value for the feature and true if the
user has enabled the feature. Otherwise, if the feature is not enabled, a
zero-value and false are returned.
Package-Level Variables (only one)
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).
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |