Skip to content

Commit 66c8298

Browse files
committed
fix: include trace-id in org-scoped error hint
The USAGE_TARGET_RE replacement for the org-scoped error case was dropping the trace ID from the disambiguation example.
1 parent 450819a commit 66c8298

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/trace-target.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export async function resolveTraceOrgProject(
300300

301301
case "org-scoped":
302302
throw new ContextError("Specific project", usageHint, [
303-
`Use: ${usageHint.replace(USAGE_TARGET_RE, `${parsed.org}/<project>/`)}`,
303+
`Use: ${usageHint.replace(USAGE_TARGET_RE, `${parsed.org}/<project>/${parsed.traceId}`)}`,
304304
`List projects: sentry project list ${parsed.org}/`,
305305
]);
306306

0 commit comments

Comments
 (0)