runcloud 0.1.111 → 0.1.112
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/dist/sessionDiagnostics.js +6 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/runcloud-0.1.112.tgz +0 -0
- package/runcloud-0.1.111.tgz +0 -0
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { mkdir, writeFile } from 'node:fs/promises';
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
|
+
export function cloudTraceExplorerUrl(env) {
|
|
4
|
+
const project = env === 'prod' ? 'newly-v3-prod' : 'newly-v3-dev';
|
|
5
|
+
return `https://console.cloud.google.com/traces/explorer?project=${project}`;
|
|
6
|
+
}
|
|
3
7
|
const STATUS_TEXT = {
|
|
4
8
|
ok: 'OK',
|
|
5
9
|
failed: 'FAIL',
|
|
@@ -117,6 +121,7 @@ ${report.query.evidenceUntil ? `- Historical evidence cutoff: \`${report.query.e
|
|
|
117
121
|
- Deployed commit: ${report.links.githubCommit ? `[\`${report.deploy.git_sha}\`](${report.links.githubCommit})` : 'unknown'}
|
|
118
122
|
- Venue: \`${report.session.venueRef ?? report.session.venue ?? 'not recorded'}\`
|
|
119
123
|
- [Correlated Cloud Run logs](${report.links.cloudLogs})
|
|
124
|
+
- [Cloud Trace Explorer](${cloudTraceExplorerUrl(report.env)}) — filter span attribute \`newly.session_id = ${report.session.id}\` (see \`docs/debugging-with-traces.md\`)
|
|
120
125
|
${report.links.venueLogsCommand ? `- Retained venue logs: \`${report.links.venueLogsCommand}\`` : ''}
|
|
121
126
|
|
|
122
127
|
## Failure Diagram
|
|
@@ -156,6 +161,7 @@ export function renderSessionDiagnosticTerminal(report) {
|
|
|
156
161
|
lines.push(` ${source.url}`);
|
|
157
162
|
}
|
|
158
163
|
lines.push('', `Cloud logs: ${report.links.cloudLogs}`);
|
|
164
|
+
lines.push(`Traces: ${cloudTraceExplorerUrl(report.env)} — filter span attribute newly.session_id = ${report.session.id}`);
|
|
159
165
|
if (report.links.venueLogsCommand) {
|
|
160
166
|
lines.push(`Venue logs: ${report.links.venueLogsCommand}`);
|
|
161
167
|
}
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = '0.1.
|
|
1
|
+
export const CLI_VERSION = '0.1.112';
|
package/package.json
CHANGED
|
Binary file
|
package/runcloud-0.1.111.tgz
DELETED
|
Binary file
|