fix: Fix opentelemetry dependencies issues (#1122)

Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com>
This commit is contained in:
Heba Elayoty
2023-06-15 18:23:16 -07:00
committed by GitHub
parent ad4739b7e4
commit 077ee93fa2
11 changed files with 270 additions and 483 deletions

View File

@@ -257,7 +257,7 @@ func makeAttribute(key string, val interface{}) (attr attribute.KeyValue) {
// return attribute.BoolSlice(key, v)
case error:
if v == nil {
attribute.String(key, "")
return attribute.String(key, "")
}
return attribute.String(key, v.Error())
default: