testdriverai 7.9.5-test → 7.9.7-test
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.
|
@@ -25,9 +25,10 @@
|
|
|
25
25
|
* @param {string} [opts.sentryChannel]
|
|
26
26
|
* @param {Object} opts.ablyToken - Ably token object
|
|
27
27
|
* @param {string} opts.channelName - Ably channel name
|
|
28
|
+
* @param {string} [opts.sessionId] - Session ID for distributed tracing (traceId = MD5(sessionId))
|
|
28
29
|
* @returns {Object} Agent config to serialize as JSON
|
|
29
30
|
*/
|
|
30
|
-
function buildAgentConfig({ sandboxId, apiRoot, apiKey, sentryDsn, sentryEnvironment, sentryChannel, ablyToken, channelName }) {
|
|
31
|
+
function buildAgentConfig({ sandboxId, apiRoot, apiKey, sentryDsn, sentryEnvironment, sentryChannel, ablyToken, channelName, sessionId }) {
|
|
31
32
|
return {
|
|
32
33
|
sandboxId,
|
|
33
34
|
apiRoot,
|
|
@@ -35,6 +36,7 @@ function buildAgentConfig({ sandboxId, apiRoot, apiKey, sentryDsn, sentryEnviron
|
|
|
35
36
|
sentryDsn: sentryDsn || undefined,
|
|
36
37
|
sentryEnvironment: sentryEnvironment || 'production',
|
|
37
38
|
sentryChannel: sentryChannel || undefined,
|
|
39
|
+
sessionId: sessionId || undefined,
|
|
38
40
|
ably: {
|
|
39
41
|
token: ablyToken,
|
|
40
42
|
channel: channelName,
|
package/lib/resolve-channel.js
CHANGED
|
@@ -64,10 +64,10 @@ const tdEnv = resolveTdEnv();
|
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Resolves the Sentry environment name.
|
|
67
|
-
* Uses the
|
|
67
|
+
* Uses the release channel (dev | test | canary | stable).
|
|
68
68
|
*/
|
|
69
69
|
function resolveSentryEnvironment() {
|
|
70
|
-
return
|
|
70
|
+
return active;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
const sentryEnvironment = resolveSentryEnvironment();
|
|
@@ -47,9 +47,7 @@ function resolveChannel(ver) {
|
|
|
47
47
|
return "stable";
|
|
48
48
|
}
|
|
49
49
|
function resolveSentryEnvironment(ver) {
|
|
50
|
-
|
|
51
|
-
return process.env.TD_ENV;
|
|
52
|
-
return CHANNEL_TO_ENV[resolveChannel(ver)] || "production";
|
|
50
|
+
return resolveChannel(ver);
|
|
53
51
|
}
|
|
54
52
|
const activeChannel = resolveChannel(version);
|
|
55
53
|
const sentryEnvironment = resolveSentryEnvironment(version);
|
package/mcp-server/src/server.ts
CHANGED
|
@@ -55,8 +55,7 @@ function resolveChannel(ver: string): string {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
function resolveSentryEnvironment(ver: string): string {
|
|
58
|
-
|
|
59
|
-
return CHANNEL_TO_ENV[resolveChannel(ver)] || "production";
|
|
58
|
+
return resolveChannel(ver);
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
const activeChannel = resolveChannel(version);
|