utopia-php / utopia-php/mongo

Add MongoDB handshake client metadata for connection identification

Open
#39 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.