Provide operation and transaction ID pattern in the correlation options to force consumers to think about formatting #177
stijnmoreels
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
We could provide a pattern for the two ID's that you could pass along in the options (maybe also a method on the options to actually validate the input), so consumers can first of all provide some extra format that the correlation ID's should uphold + it lets them think about input validation and what's considered valid/invalid.
Describe the solution you'd like
The CorrelationInfoOptions.Transaction and CorrelationInfoOptions.Operation properties could both have a Pattern or Format property that's a string (maybe in the background checked for a valid regular expression).
An extra method on the options such as PassFormat, IsWithinFormat, MatchesPattern, ... can be added so the actual correlation implementation that uses this library can benefit from this.
Describe alternatives you've considered
Format validation can happen specifically on the correlation implemenation itself, or can complementair with is here proposed.
Original issue: #138
Beta Was this translation helpful? Give feedback.
All reactions