anypay / anypay

Invoice & Payments Platform for Web3
https://anypayx.com
Other
7 stars 12 forks source link

Measure http request response times with @promster/hapi #1227

Closed owenkellogg closed 9 months ago

owenkellogg commented 9 months ago

Pull Request: Measure HTTP Request Response Times with @promster/hapi

Overview

This pull request introduces the integration of @promster/hapi to measure and expose HTTP request response times within our Hapi.js application. Monitoring response times is crucial for understanding the performance of our server and identifying potential bottlenecks.

Changes Made

Why This Matters

How to Test

To validate the changes, follow these steps:

  1. Clone the Repository:

    git clone <repository-url>
    cd <repository-directory>
  2. Install Dependencies:

    npm install
  3. Run the Application:

    npm start
  4. Send HTTP Requests:

    Use tools like curl or your preferred API testing tool to send HTTP requests to the server.

  5. Check Metrics Endpoint:

    Visit the metrics endpoint (e.g., /metrics) to view the recorded response times.

Additional Notes

Related Issues

Closes: #

Checklist