You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-08-10 22:31:50 +02:00
Deprecate the attribute.Any function (#2181)
* Deprecate the attribute.Any func * Update CHANGELOG.md
This commit is contained in:
@@ -97,6 +97,8 @@ func Array(k string, v interface{}) KeyValue {
|
||||
|
||||
// Any creates a new key-value pair instance with a passed name and
|
||||
// automatic type inference. This is slower, and not type-safe.
|
||||
//
|
||||
// Deprecated: Use the typed functions instead.
|
||||
func Any(k string, value interface{}) KeyValue {
|
||||
if value == nil {
|
||||
return String(k, "<nil>")
|
||||
|
Reference in New Issue
Block a user