-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: LogHttpDependency() should allow status codes within 100-599 range #515
Conversation
✅ Deploy Preview for arcus-observability canceled.
|
The maintainers of this repository would appreciate it if you could provide more information. |
src/Arcus.Observability.Telemetry.AspNetCore/Extensions/ILoggerHttpDependencyExtensions.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Thx for your contribution, @mic-hnk ! Greatly appreciated.
Some things we have to change:
- Provide new
LogHttpDependency
overloads withint
as status code. - Add new tests that uses this new
int
variant.
We can help you of course along the way!
💡 A tip for GitHub contributions: it is better to work on separate feature branches instead of on your main, otherwise conflicts and other sync problems will occur.
src/Arcus.Observability.Telemetry.AspNetCore/Extensions/ILoggerHttpDependencyExtensions.cs
Outdated
Show resolved
Hide resolved
I don't necessarily agree with the first point @stijnmoreels , see also my comment in the issue :) |
Ok, that's fine by me. Removed it. 👍 |
I'm on it |
I pushed some changes. |
To be honest, I think the docs are sufficient as is. In my opinion, a developer will be able to detect this overload by using intellisense. |
Just looked, you might be right 🤔 . We can leave it like this. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for taking this up! 🥇
Some small comments but were getting there.
src/Arcus.Observability.Telemetry.AspNetCore/Extensions/ILoggerHttpDependencyExtensions.cs
Outdated
Show resolved
Hide resolved
src/Arcus.Observability.Telemetry.Core/Extensions/ILoggerHttpDependencyExtensions.cs
Outdated
Show resolved
Hide resolved
src/Arcus.Observability.Telemetry.AspNetCore/Extensions/ILoggerHttpDependencyExtensions.cs
Show resolved
Hide resolved
src/Arcus.Observability.Telemetry.Core/Extensions/ILoggerHttpDependencyExtensions.cs
Show resolved
Hide resolved
src/Arcus.Observability.Tests.Unit/Telemetry/Logging/HttpDependencyLoggingTests.cs
Show resolved
Hide resolved
src/Arcus.Observability.Tests.Unit/Telemetry/Logging/HttpDependencyLoggingTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think that this new variant you added also needs some unit tests. But otherwise this is good to go! 💯
Great job re-using the common code practices and helping us bringing higher value! Greatly appreciated. 💗
I added some more tests :) |
Thanks for this contribution. |
Thank you :) |
LogHttpDependency() - allow status codes within the range of 100 to 599 - #516