mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Update Reject Hosts / Add mirror support for Hosts Source
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user