(ctx context.Context)
| 47 | } |
| 48 | |
| 49 | func contextAttributes(ctx context.Context) map[string]string { |
| 50 | attrs, _ := ctx.Value(kagentSpanAttributesKey{}).(map[string]string) |
| 51 | if len(attrs) == 0 { |
| 52 | return nil |
| 53 | } |
| 54 | return attrs |
| 55 | } |
| 56 | |
| 57 | func mergeAttributes(existing, updates map[string]string) map[string]string { |
| 58 | if len(existing) == 0 && len(updates) == 0 { |
no test coverage detected