Skip to content

Commit

Permalink
MdcKeys javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
prdoyle committed Jul 7, 2024
1 parent 8707d0b commit d8523d1
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions bosk-core/src/main/java/works/bosk/logging/MdcKeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,25 @@
* For now, only bosk-mongo uses these.
*/
public final class MdcKeys {
public static final String BOSK_NAME = "bosk.name";
/**
* The value of {@link Bosk#name()}.
*/
public static final String BOSK_NAME = "bosk.name";

/**
* The value of {@link Bosk#instanceID()}.
*/
public static final String BOSK_INSTANCE_ID = "bosk.instanceID";
public static final String EVENT = "bosk.MongoDriver.event";
public static final String TRANSACTION = "bosk.MongoDriver.transaction";

/**
* A unique string generated for each MongoDB change event received by a particular bosk.
*/
public static final String EVENT = "bosk.MongoDriver.event";

/**
* A unique string generated for each MongoDB {@link ClientSession}.
* Technically, not every session is a transaction, but we do use them for
* transactions, and this name seemed to convey the intent better than "session".
*/
public static final String TRANSACTION = "bosk.MongoDriver.transaction";
}

0 comments on commit d8523d1

Please sign in to comment.