feat: add log

This commit is contained in:
Kevin Franklin Kim 2025-10-10 15:10:33 +02:00
parent 0fc99bf8a1
commit 38c98dbcb0
No known key found for this signature in database

View File

@ -24,6 +24,7 @@ var envAttributes = map[attribute.Key][]string{
func EnvAttributes() []attribute.KeyValue {
var attrs []attribute.KeyValue
for k, keys := range envAttributes {
for _, key := range keys {
if v := os.Getenv(key); v != "" {
@ -32,6 +33,7 @@ func EnvAttributes() []attribute.KeyValue {
}
}
}
return attrs
}