Skip to content

Commit b703860

Browse files
committed
Remove unused shortKey export from tracing
1 parent 31e386d commit b703860

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

workers/src/tracing.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,3 @@ export class RequestTracer {
162162
return this.fetches.length;
163163
}
164164
}
165-
166-
/** Shorten a cache/storage key for readable trace output. */
167-
export function shortKey(key: string): string {
168-
const parts = key.split("/");
169-
if (parts.length <= 2) return key;
170-
const mid = parts.slice(1, -1).map((p) => (p.length > 10 ? p.slice(0, 10) + "…" : p)).join("/");
171-
const last = parts[parts.length - 1]!;
172-
const shortLast = last.length > 12 ? last.slice(0, 12) + "…" : last;
173-
return `${parts[0]}/${mid}/${shortLast}`;
174-
}

0 commit comments

Comments
 (0)