Skip to content

Commit

Permalink
Set requireParentSpan to true.
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan committed Sep 19, 2024
1 parent 0c3445d commit 214c71d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/node/src/integrations/tracing/dataloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ import { generateInstrumentOnce } from '../../otel/instrument';

const INTEGRATION_NAME = 'Dataloader';

export const instrumentDataloader = generateInstrumentOnce(INTEGRATION_NAME, () => new DataloaderInstrumentation({}));
export const instrumentDataloader = generateInstrumentOnce(
INTEGRATION_NAME,
() =>
new DataloaderInstrumentation({
requireParentSpan: true,
}),
);

const _dataloaderIntegration = (() => {
return {
Expand Down

0 comments on commit 214c71d

Please sign in to comment.