Treblle / treblle-laravel

The official Treblle SDK for Laravel. Seamlessly integrate Treblle to manage communication with your dashboard, send errors, and secure sensitive data.
https://www.treblle.com/
MIT License
129 stars 24 forks source link

feature request: collect metrics using job queues #84

Closed alphaolomi closed 1 month ago

alphaolomi commented 1 year ago

Description

Performance Span from Sentry

treblle Screenshot 2023-09-22 072923

Proposal

Understanding there Terminable Middleware as used at https://github.com/Treblle/treblle-laravel/blob/71267cc3970fbf1624546b401d2b4a4cd8599b8b/src/Middlewares/TreblleMiddleware.php#L55-L66

Proposing an opt-in feature to use queues for Collecting API Metrics

Notes

N/A

JustSteveKing commented 1 year ago

Hey @alphaolomi the biggest problem with Job Queues is that we cannot guarantee that everyone is using them. So for those not using them will see quite an impact on their implementation if using the sync driver in Laravel.

I am, of course, open to options on this. We are currently assessing our SDKs and looking at how we are going to manage them moving forwards etc. All ideas are great!