( motel: SuiteMotel | null, appBaseUrl: string, )
| 60 | * OTLP tracer (same-origin /v1/traces, proxied by the dev server — motel |
| 61 | * serves no CORS headers). */ |
| 62 | export const motelExporterEnv = ( |
| 63 | motel: SuiteMotel | null, |
| 64 | appBaseUrl: string, |
| 65 | ): Record<string, string> => |
| 66 | motel |
| 67 | ? { |
| 68 | AXIOM_TRACES_URL: `${motel.url}/v1/traces`, |
| 69 | AXIOM_TOKEN: "motel-local", |
| 70 | AXIOM_DATASET: "executor-e2e", |
| 71 | VITE_PUBLIC_OTLP_TRACES_URL: `${appBaseUrl}/v1/traces`, |
| 72 | MOTEL_URL: motel.url, |
| 73 | } |
| 74 | : {}; |