(ctx context.Context, m map[string]interface{}, fieldKey Key)
| 160 | } |
| 161 | |
| 162 | func addFieldIfNotNil(ctx context.Context, m map[string]interface{}, fieldKey Key) { |
| 163 | val := ctx.Value(fieldKey) |
| 164 | if val != nil { |
| 165 | m[fieldKey.String()] = val |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | func addStringFieldWithDefaults(ctx context.Context, m map[string]string, fieldKey Key) { |
| 170 | val := ctx.Value(fieldKey) |