Repository navigation
Enhance MapActuators with null validation and logging - #1757
shreepatilprashant-ctrl wants to merge 1 commit into
Conversation
refactor(management): inject explicit configuration validation loops and runtime catch protection to actuator endpoints
|
@shreepatilprashant-ctrl Can you please explain what problem this PR is supposed to solve? |
Hi Bart, |
|
Did you actually try to run it? Because looking at the code, it doesn't even work: If you want such an audit trail, it would make more sense to me to catch exceptions at the call site, where more information is available about the intent. When doing so, the exception stack trace provides useful information about where the call originated from. In this case, even if the try/catch block were entered, the code would still be unreachable. This is because Steeltoe calls it from https://github.com/SteeltoeOSS/Steeltoe/blob/main/src/Management/src/Endpoint/ApplicationBuilderExtensions.cs#L64: builder.UseRouter(routeBuilder => routeBuilder.MapActuators());As can be seen, the var routeBuilder = new RouteBuilder(builder);
action(routeBuilder);This shows that ASP.NET never passes |
refactor(management): inject explicit configuration validation loops and runtime catch protection to actuator endpoints
Description
{A detailed description}
Fixes #{bug number}
Quality checklist
If your change affects other repositories, such as Documentation and/or Samples, add linked PRs here.