mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
feat: add log
This commit is contained in:
parent
0fc99bf8a1
commit
38c98dbcb0
@ -24,6 +24,7 @@ var envAttributes = map[attribute.Key][]string{
|
|||||||
|
|
||||||
func EnvAttributes() []attribute.KeyValue {
|
func EnvAttributes() []attribute.KeyValue {
|
||||||
var attrs []attribute.KeyValue
|
var attrs []attribute.KeyValue
|
||||||
|
|
||||||
for k, keys := range envAttributes {
|
for k, keys := range envAttributes {
|
||||||
for _, key := range keys {
|
for _, key := range keys {
|
||||||
if v := os.Getenv(key); v != "" {
|
if v := os.Getenv(key); v != "" {
|
||||||
@ -32,6 +33,7 @@ func EnvAttributes() []attribute.KeyValue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return attrs
|
return attrs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user