Skip to content

Commit

Permalink
rename funciton
Browse files Browse the repository at this point in the history
  • Loading branch information
arafatkatze committed Nov 20, 2024
1 parent d46b975 commit fe5d754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vscode/src/services/open-telemetry/CodyTraceExportWeb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -195,7 +195,7 @@ function getRootSpan(spanMap: Map<string, ReadableSpan>, span: ReadableSpan): Re
}
}

function isRootSampled(rootSpan: ReadableSpan): boolean {
function isSampled(rootSpan: ReadableSpan): boolean {
return rootSpan.attributes.sampled === true
}

Expand Down

0 comments on commit fe5d754

Please sign in to comment.