🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix: fix async instrumentation (#3094)
Max Deichmannd471be878307
diff --git a/packages/shared/src/server/instrumentation/index.ts b/packages/shared/src/server/instrumentation/index.tsindex 58b2568a19..6be64ab3a2 100644--- a/packages/shared/src/server/instrumentation/index.ts+++ b/packages/shared/src/server/instrumentation/index.ts@@ -22,9 +22,9 @@ export async function instrumentAsync<T>(root: ctx.rootSpan,kind: ctx.spanKind,},- (span) => {+ async (span) => {try {- const result = callback();+ const result = await callback();span.end();return result;} catch (ex) {