()
| 226 | } |
| 227 | |
| 228 | func (m *Metadata) envContext() map[string]any { |
| 229 | sentryCtx := map[string]any{ |
| 230 | "In Shell": m.InShell, |
| 231 | "In Cloud": m.InCloud, |
| 232 | "In Browser": m.InBrowser, |
| 233 | } |
| 234 | if m.CloudCache != "" { |
| 235 | sentryCtx["Cloud Cache"] = m.CloudCache |
| 236 | } |
| 237 | if m.CloudRegion != "" { |
| 238 | sentryCtx["Cloud Region"] = m.CloudRegion |
| 239 | } |
| 240 | return sentryCtx |
| 241 | } |
| 242 | |
| 243 | func (m *Metadata) featureContext() map[string]any { |
| 244 | if len(m.FeatureFlags) == 0 { |