-
Notifications
You must be signed in to change notification settings - Fork 99
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
Adds support for Pulse #40
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
taylorotwell
added a commit
that referenced
this pull request
Jan 25, 2024
* service provider work * formatting * formatting app provider * formatting * formatting * formatting * Fix code styling * formatting * wip * Fix code styling * move files * Fix code styling * formatting * fix autoloading * fix import * formatting * Fix code styling * formatting * formatting * Fix code styling * formatting * import class * Adds support for Pulse (#40) * wip * wip * wip * wip * remove dependency * schedule ingest * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * fix chart update * listen for received messages * wip * wip * wip * wip * formatting * wip * fix tests * wip * wip * wip * wip * wip --------- Co-authored-by: taylorotwell <[email protected]> Co-authored-by: Joe Dixon <[email protected]> Co-authored-by: Joe Dixon <[email protected]>
This was referenced Apr 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds a pulse card to Reverb for monitoring the number of connections and messages being sent through the server.
To facilitate this, a new
MessageSent
andMessageReceived
event have been introduced which are fired when a message is sent to a connection from the server or when a message is received by the server from the connection.This has useful side effect of being able to send messages to connections in an event listener.
A new "connections" endpoint has also been introduced which returns a count of all unique users currently connected.
The
Messages
recorder listens fo theMessageSent
andMessageReceived
events and keeps track of a count of all messages passing through.The
Connections
recorder listens for Pulse'sSharedBeat
and uses the Pusher SDK to make an authenticated request to the newconnections
endpoint.A new card should be added to the dashboard for each app passing the
appId
to scope the metrics to the correct app.