@testdriverai/runner 7.9.0-test.4 → 7.9.0-test.41

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sandbox-agent.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testdriverai/runner",
3
- "version": "7.9.0-test.4",
3
+ "version": "7.9.0-test.41",
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
@@ -191,7 +191,9 @@ async function main() {
191
191
 
192
192
  // Initialize Sentry for distributed tracing
193
193
  const sentryDsn = process.env.SENTRY_DSN || config.sentryDsn || 'https://452bd5a00dbd83a38ee8813e11c57694@o4510262629236736.ingest.us.sentry.io/4510480443637760';
194
- if (sentryDsn) {
194
+ const runnerChannel = config.sentryChannel || process.env.TD_CHANNEL;
195
+ const isTestOrPreview = runnerChannel === 'test' || process.env.IS_PULL_REQUEST === 'true';
196
+ if (sentryDsn && !isTestOrPreview) {
195
197
  const { version } = require('./package.json');
196
198
  Sentry.init({
197
199
  dsn: sentryDsn,