mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-10 22:20:14 +00:00
fix(render): add end-to-end observability (#1248)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { redactTelemetryString } from "./telemetryRedaction.js";
|
||||
|
||||
describe("redactTelemetryString", () => {
|
||||
it("redacts macOS, Linux, Windows, file URLs, and URL query strings", () => {
|
||||
expect(
|
||||
redactTelemetryString(
|
||||
[
|
||||
"/Users/alice/project/video.mp4",
|
||||
"/home/ubuntu/project/video.mp4",
|
||||
"/workspace/app/video.mp4",
|
||||
"C:\\Users\\Alice\\project\\video.mp4",
|
||||
"file:///tmp/render/video.mp4",
|
||||
"https://example.com/video.mp4?token=secret",
|
||||
].join(" "),
|
||||
),
|
||||
).toBe("[path] [path] [path] [path] [file-url] https://example.com/video.mp4?…");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user