Class InsertId
java.lang.Object
eu.mulk.quarkus.googlecloud.jsonlogging.InsertId
A unique identifier for a log entry.
Prevents the duplicate insertion of log entries. Also serves as a discriminator to order log entries that carry the same time stamp.
Will be generated by Google Cloud Logging if not provided.
Instances of InsertId can be passed as log parameters to the *f family of
logging functions on Logger.
Example:
logger.logf("Request rejected: unauthorized.", InsertId.of("123"));
Result:
{
"textPayload": "Request rejected: unauthorized.",
"logging.googleapis.com/insertId": "123"
}
- See Also:
-
Method Summary