Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-ogm
Commit: 5ea6b534730105f3a04197f9a460854d81a49cc8
https://github.com/hibernate/hibernate-ogm/commit/5ea6b534730105f3a04197f...
Author: Jeff Yemin <jeff.yemin(a)mongodb.com>
Date: 2024-09-06 (Fri, 06 Sep 2024)
Changed paths:
M
mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/impl/MongoDBDatastoreProvider.java
Log Message:
-----------
OGM-1589: Add hibernate-ogm metadata to MongoClient construction
This change allows users to track which connections are coming
from hibernate-ogm by examining the MongoDB server logs, by
looking for log statements like this:
{
"t": {
"$date": "2024-09-05T11:52:33.248-04:00"
},
"s": "D2",
"c": "COMMAND",
"id": 21965,
"ctx": "conn304",
"commandArgs": {
"isMaster": 1,
"helloOk": true,
"client": {
"driver": {
"name": "mongo-java-driver|legacy|hibernate-ogm",
"version": "4.11.3|5.4.2"
},
"os": {
"type": "Darwin",
"name": "Mac OS X",
"architecture": "x86_64",
"version": "14.6.1"
},
"platform": "Java/Amazon.com Inc./1.8.0_422-b05"
},
"$db": "admin"
}
}
Note the driver name and version refer to both the underlying MongoDB Java driver and
hibernate-ogm.
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-ogm/settings/notifications