-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom metadata in transaction #2964
Comments
Thanks for the suggestion. Do you really mean to add custom info and not to overwrite the |
Thanks for quick reply. My use case is : Audit log via Change data capture (CDC).
About add or overwrite, I think we are fine with some spring way via a provider interface with a default impl to let user to choose if they want overwrite the metadata totally or just add some custom info. |
This makes sense. But I want to add that overriding the |
I get it, we want add those metadata for the same reason. But I have to say, as a lib/framework, there is no way to prevent the developer to do anything. Anyways, you can provide a way to |
But for this you would need to get a handle on the transaction object that is currently in use by the Spring transaction. Which is by far less convenient than having a supplier that allows the overwrite of the app field. Just want to ensure that there is no way this might happen accidentally. |
Ya, this is why I open this issue. Hope we can have a convenient and reliable way to |
Now it's hard code the
UserAgent
onlyspring-data-neo4j/src/main/java/org/springframework/data/neo4j/core/transaction/Neo4jTransactionUtils.java
Line 116 in 1549e95
It will be more useful have some convent way to add custom info.
The text was updated successfully, but these errors were encountered: