Package + Version
Version:
Description
When using pg together with pg-copy-streams the tracing code breaks the operation.
orig.call(...).then is not a function
https://github.com/getsentry/sentry-javascript/blob/master/packages/tracing/src/integrations/postgres.ts#L66
importpgfrom"pg"import{to}from"pg-copy-streams"constclient=newpg.Client()constquery=`COPY (SELECT xxx FROM yyy to STDOUT (DELIMITER ';', FORMAT CSV, ENCODING 'UTF8')`constdataStream: Readable=client.query(to(query))>>>fails
Package + Version
@sentry/browser@sentry/node@sentry/tracingraven-jsraven-node(raven for node)Version:
Description
When using
pgtogether withpg-copy-streamsthe tracing code breaks the operation.orig.call(...).then is not a functionhttps://github.com/getsentry/sentry-javascript/blob/master/packages/tracing/src/integrations/postgres.ts#L66