deploy: v0.12 fix 存档key名

This commit is contained in:
2026-06-24 03:09:02 +00:00
parent 7a08d49fe3
commit e0a5281119
58743 changed files with 7297269 additions and 39505 deletions
+17
View File
@@ -0,0 +1,17 @@
/** @internal */
export const make = (label, startTime) => ({
label,
startTime
});
/**
* Sanitize a given string by replacing spaces, equal signs, and double quotes with underscores.
*
* @internal
*/
export const formatLabel = key => key.replace(/[\s="]/g, "_");
/** @internal */
export const render = now => self => {
const label = formatLabel(self.label);
return `${label}=${now - self.startTime}ms`;
};
//# sourceMappingURL=logSpan.js.map