linagora / james-project

Mirror of Apache James Project
Apache License 2.0
72 stars 62 forks source link

[Postgres] Create metrics for PostgresExecutor #5157

Closed hungphan227 closed 6 months ago

hungphan227 commented 6 months ago

Why

PostgresExecutor is used to execute all postgresql queries. Metrics for this class is needed to test performance

How

Use MetricFactory in PostgresExecutor (metricFactory.decoratePublisherWithTimerMetric)

chibenwa commented 6 months ago

Lacks a description

hungphan227 commented 6 months ago

pr https://github.com/apache/james-project/pull/2195