Update Reject Hosts / Add mirror support for Hosts Source

This commit is contained in:
SukkaW
2024-01-22 12:09:08 +08:00
parent 41b2f543f8
commit af8cce4f45
7 changed files with 88 additions and 57 deletions

View File

@@ -52,7 +52,7 @@ export const createSpan = (name: string, parentTraceResult?: TraceResult): Span
const stop = (time?: number) => {
if (status === SPAN_STATUS_END) {
throw new Error('span already stopped');
throw new Error(`span already stopped: ${name}`);
}
const end = time ?? Bun.nanoseconds();