Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Measure Retrieve data #1393

Merged
merged 5 commits into from
Feb 17, 2024
Merged

Conversation

luanfreitasdev
Copy link
Collaborator

⚡ PowerGrid - Pull Request

Welcome and thank you for your interest in contributing to our project!. You must use this template to submit a Pull Request or it will not be accepted.


Motivation

  • Bug fix
  • Enhancement
  • New feature
  • Breaking change

Description

This feature measures the data retrieval processing in milliseconds and queries that PowerGrid runs.

Note: The data reported in the MeasureRetrieveData classes must be used in conjunction with other metrics and must not be used to make a final decision about the overall processing size, as this may imply server capacity, visualization rendering time, etc.

// * Add a listener to the service provider to listen to the event.

Event::listen(MeasureRetrieveData::class, function (MeasureRetrieveData $measureRetrieveData) {
       ds($measureRetrieveData);
 });
image

Related Issue(s): #1297 , #1389 .

Documentation

This PR requires Documentation update?

  • Yes
  • No
  • I have already submitted a Documentation pull request.

@luanfreitasdev
Copy link
Collaborator Author

luanfreitasdev commented Feb 9, 2024

Added Laravel Pulse Card:

// config/pulse.php:
\PowerComponents\LivewirePowerGrid\Recorders\PowerGridRecorder::class => [
    'enabled' => true,
],

<livewire:powergrid-measurement-card />

image

@luanfreitasdev luanfreitasdev marked this pull request as ready for review February 17, 2024 13:24
@luanfreitasdev luanfreitasdev merged commit 2643640 into 5.x Feb 17, 2024
45 checks passed
@luanfreitasdev luanfreitasdev deleted the feature/measure-retrieve-data branch February 17, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant