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.
@@ -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.111';
1
+ export const CLI_VERSION = '0.1.112';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.1.111",
3
+ "version": "0.1.112",
4
4
  "description": "Create and control run.cloud remote mobile simulators and cloud sandboxes",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
Binary file
Binary file