Skip to content

Commit d16f819

Browse files
authored
fix(node-experimental): Require parent span for pg spans (#8993)
1 parent 5a42bd9 commit d16f819

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/node-experimental/src/integrations/postgres.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export class Postgres extends NodePerformanceIntegration<void> implements Integr
3030
public setupInstrumentation(): void | Instrumentation[] {
3131
return [
3232
new PgInstrumentation({
33+
requireParentSpan: true,
3334
requestHook(span) {
3435
addOriginToOtelSpan(span, 'auto.db.otel.postgres');
3536
},

0 commit comments

Comments
 (0)