mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-10-02 03:24:42 +08:00
fixes https://github.com/agent-substrate/substrate/pull/1952 security bump stuck by breaking changes. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
24 lines
684 B
Go
24 lines
684 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Package x documents experimental features for [go.opentelemetry.io/otel/sdk/log].
|
|
package x
|
|
|
|
import "strings"
|
|
|
|
// Observability is an experimental feature flag that determines if SDK
|
|
// observability metrics are enabled.
|
|
//
|
|
// To enable this feature set the OTEL_GO_X_OBSERVABILITY environment variable
|
|
// to the case-insensitive string value of "true" (i.e. "True" and "TRUE"
|
|
// will also enable this).
|
|
var Observability = newFeature(
|
|
[]string{"OBSERVABILITY", "SELF_OBSERVABILITY"},
|
|
func(v string) (string, bool) {
|
|
if strings.EqualFold(v, "true") {
|
|
return v, true
|
|
}
|
|
return "", false
|
|
},
|
|
)
|