Add MongoDB handshake client metadata for connection identification
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 6
- Forks
- 4
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Description
Currently MongoDB connections created through utopia-php/mongo
appear as anonymous PHP driver connections.
This makes it difficult to identify which connections belong to
applications using this package (such as Appwrite) when debugging
slow queries, connection spikes, or server logs.
According to MongoDB handshake specifications, wrapping libraries
should provide client metadata using the client field during the
initial handshake (hello / isMaster).
Proposal:
- Add configurable application name support
- Send driver metadata during handshake
- Allow downstream applications like Appwrite to set appName
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating where this PHP package creates MongoDB connections and configures the initial hello/isMaster handshake. Review MongoDB handshake specifications and the existing connection options before deciding how application names and driver metadata should be exposed. Done means downstream applications can configure an appName and connections identify the package in MongoDB logs and diagnostics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mongodb, php
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100