Skip to content

Commit

Permalink
fix(node-experimental): Require parent span for pg spans (#8993)
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Sep 12, 2023
1 parent 5a42bd9 commit d16f819
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/node-experimental/src/integrations/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class Postgres extends NodePerformanceIntegration<void> implements Integr
public setupInstrumentation(): void | Instrumentation[] {
return [
new PgInstrumentation({
requireParentSpan: true,
requestHook(span) {
addOriginToOtelSpan(span, 'auto.db.otel.postgres');
},
Expand Down

0 comments on commit d16f819

Please sign in to comment.