From fe5d754e83faa2dfd0297af65b4d53979adfd2e8 Mon Sep 17 00:00:00 2001 From: arafatkatze Date: Wed, 20 Nov 2024 08:08:19 +0400 Subject: [PATCH] rename funciton --- vscode/src/services/open-telemetry/CodyTraceExportWeb.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vscode/src/services/open-telemetry/CodyTraceExportWeb.ts b/vscode/src/services/open-telemetry/CodyTraceExportWeb.ts index 3cc0b32254a3..598a4f69eb8f 100644 --- a/vscode/src/services/open-telemetry/CodyTraceExportWeb.ts +++ b/vscode/src/services/open-telemetry/CodyTraceExportWeb.ts @@ -92,7 +92,7 @@ export class CodyTraceExporterWeb extends OTLPTraceExporter { // Process each group of spans for (const [rootId, spanGroup] of spansByRoot.entries()) { const rootSpan = spanMap.get(rootId) - if (!rootSpan || !isRootSampled(rootSpan)) { + if (!rootSpan || !isSampled(rootSpan)) { continue } @@ -195,7 +195,7 @@ function getRootSpan(spanMap: Map, span: ReadableSpan): Re } } -function isRootSampled(rootSpan: ReadableSpan): boolean { +function isSampled(rootSpan: ReadableSpan): boolean { return rootSpan.attributes.sampled === true }