@testdriverai/runner 7.8.0-test.63 → 7.8.0-test.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
- package/sandbox-agent.js +4 -1
package/index.js
CHANGED
|
@@ -56,7 +56,7 @@ const IS_MACOS = process.platform === 'darwin';
|
|
|
56
56
|
// ─── Configuration ───────────────────────────────────────────────────────────
|
|
57
57
|
|
|
58
58
|
const API_KEY = process.env.TD_API_KEY;
|
|
59
|
-
const envName = process.env.TD_ENV || 'stable';
|
|
59
|
+
const envName = process.env.TD_CHANNEL || process.env.TD_ENV || 'stable';
|
|
60
60
|
const envConfig = environments[envName] || environments.stable;
|
|
61
61
|
const API_ROOT = process.env.TD_API_ROOT || process.env.API_ROOT || envConfig.apiRoot;
|
|
62
62
|
const RUNNER_ID = process.env.TD_RUNNER_ID;
|
package/package.json
CHANGED
package/sandbox-agent.js
CHANGED
|
@@ -205,10 +205,13 @@ async function main() {
|
|
|
205
205
|
// Sample all runner-initiated traces (shouldn't happen often)
|
|
206
206
|
return 1.0;
|
|
207
207
|
},
|
|
208
|
-
environment: process.env.
|
|
208
|
+
environment: config.sentryEnvironment || process.env.TD_ENV || 'production',
|
|
209
209
|
release: version,
|
|
210
210
|
serverName: os.hostname(),
|
|
211
211
|
});
|
|
212
|
+
if (config.sentryChannel || process.env.TD_CHANNEL) {
|
|
213
|
+
Sentry.setTag('channel', config.sentryChannel || process.env.TD_CHANNEL);
|
|
214
|
+
}
|
|
212
215
|
log('Sentry initialized');
|
|
213
216
|
}
|
|
214
217
|
log(`Sandbox ID: ${config.sandboxId}`);
|