@event-driven-io/emmett-postgresql 0.43.0-beta.19 → 0.43.0-beta.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -779,7 +779,8 @@ const getPostgreSQLEventStore = (connectionString, options = defaultPostgreSQLOp
779
779
  registrationType: "inline",
780
780
  context: {
781
781
  ...context,
782
- migrationOptions
782
+ migrationOptions,
783
+ observabilityScope: _event_driven_io_emmett.noopScope
783
784
  }
784
785
  });
785
786
  if (options.hooks?.onAfterSchemaCreated) await options.hooks.onAfterSchemaCreated(context);
@@ -813,7 +814,10 @@ const getPostgreSQLEventStore = (connectionString, options = defaultPostgreSQLOp
813
814
  await truncateTables(transaction.execute, truncateOptions);
814
815
  if (truncateOptions?.truncateProjections) {
815
816
  const projectionContext = await transactionToPostgreSQLProjectionHandlerContext(connectionString, pool, transaction);
816
- for (const projection of options?.projections ?? []) if (projection.projection.truncate) await projection.projection.truncate(projectionContext);
817
+ for (const projection of options?.projections ?? []) if (projection.projection.truncate) await projection.projection.truncate({
818
+ ...projectionContext,
819
+ observabilityScope: _event_driven_io_emmett.noopScope
820
+ });
817
821
  }
818
822
  }) }
819
823
  },
@@ -1011,7 +1015,8 @@ const transactionToPostgreSQLProjectionHandlerContext = async (connectionString,
1011
1015
  client: await transaction.connection.open(),
1012
1016
  transaction,
1013
1017
  pool
1014
- }
1018
+ },
1019
+ observabilityScope: _event_driven_io_emmett.noopScope
1015
1020
  });
1016
1021
  const handleProjections = async (options) => {
1017
1022
  const { projections: allProjections, events, connection: { pool, transaction, connectionString }, partition = defaultTag } = options;
@@ -1033,7 +1038,8 @@ const handleProjections = async (options) => {
1033
1038
  client,
1034
1039
  transaction
1035
1040
  },
1036
- execute: transaction.execute
1041
+ execute: transaction.execute,
1042
+ observabilityScope: _event_driven_io_emmett.noopScope
1037
1043
  });
1038
1044
  }
1039
1045
  };
@@ -3078,7 +3084,8 @@ const postgreSQLProcessingScope = (options) => {
3078
3084
  client,
3079
3085
  transaction,
3080
3086
  messageStore: getPostgreSQLEventStore(connectionString, { connectionOptions: { client } })
3081
- }
3087
+ },
3088
+ observabilityScope: partialContext?.observabilityScope ?? _event_driven_io_emmett.noopScope
3082
3089
  });
3083
3090
  });
3084
3091
  };