We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69d25a3 commit 2dc84dbCopy full SHA for 2dc84db
1 file changed
contrib/openai-agents/src/workflow/trace-interceptor.ts
@@ -58,7 +58,7 @@ function tracingRandom(): number {
58
// Workflow Task path, so distinct Queries collide on the spanId/PRNG seed.
59
function resolveQueryKey(input: QueryInput): string {
60
if (input.queryId !== 'legacy_query') return input.queryId;
61
- // Nanosecond wall-clock; Date.now() is constant within a Workflow Task, so two Queries answered in one Task would collide on the spanId.
+ // Legacy queries arrive one at a time with a hardcoded id.
62
return `${input.queryName}:${getActivator().getTimeOfDay()}`;
63
}
64
0 commit comments