pkg/tracing: rename func that shadowed builtin, rm makeSpanName

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-06-14 11:32:19 +02:00
parent e49d3fd1bc
commit e2e09b384a
3 changed files with 8 additions and 14 deletions

View File

@@ -60,7 +60,7 @@ func (h *LogrusHook) Fire(entry *logrus.Entry) error {
func logrusDataToAttrs(data logrus.Fields) []attribute.KeyValue {
attrs := make([]attribute.KeyValue, 0, len(data))
for k, v := range data {
attrs = append(attrs, any(k, v))
attrs = append(attrs, keyValue(k, v))
}
return attrs
}