@testdriverai/runner 7.8.0-test.62 → 7.8.0-test.64

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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testdriverai/runner",
3
- "version": "7.8.0-test.62",
3
+ "version": "7.8.0-test.64",
4
4
  "description": "TestDriver Runner - Ably-based remote automation agent with Node.js automation",
5
5
  "main": "index.js",
6
6
  "bin": {
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.NODE_ENV || 'production',
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}`);