We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31e386d commit b703860Copy full SHA for b703860
1 file changed
workers/src/tracing.ts
@@ -162,13 +162,3 @@ export class RequestTracer {
162
return this.fetches.length;
163
}
164
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