-
Notifications
You must be signed in to change notification settings - Fork 171
Add .NET runtime information to /info actuator endpoint #1640
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
Conversation
Summary - All Code Coverage (ubuntu-latest)
|
src/Management/test/Endpoint.Test/Actuators/Info/Contributors/RuntimeInfoContributorTest.cs
Outdated
Show resolved
Hide resolved
…fo endpoint Co-authored-by: TimHess <3947063+TimHess@users.noreply.github.com>
…ble JSON parsing Co-authored-by: TimHess <3947063+TimHess@users.noreply.github.com>
…fo included Co-authored-by: TimHess <3947063+TimHess@users.noreply.github.com>
a1a29cc to
d9f5aa7
Compare
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
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.
Pull request overview
This PR adds .NET runtime information to the /info actuator endpoint by introducing a new RuntimeInfoContributor class that reports the runtime name, version, and runtime identifier.
Changes:
- Added
RuntimeInfoContributorclass to collect and report .NET runtime information - Registered
RuntimeInfoContributoras a default contributor in the DI container - Added comprehensive unit tests for the new contributor
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
RuntimeInfoContributor.cs |
New contributor class that collects runtime information using RuntimeInformation and Environment APIs |
EndpointServiceCollectionExtensions.cs |
Registers RuntimeInfoContributor as a default info contributor |
RuntimeInfoContributorTest.cs |
Unit tests validating runtime information contribution and null parameter handling |
InfoActuatorTest.cs |
Updated integration test to validate runtime information in the actuator endpoint response |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/Management/test/Endpoint.Test/Actuators/Info/Contributors/RuntimeInfoContributorTest.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
src/Management/src/Endpoint/Actuators/Info/EndpointServiceCollectionExtensions.cs
Show resolved
Hide resolved
src/Management/src/Endpoint/Actuators/Info/Contributors/RuntimeInfoContributor.cs
Outdated
Show resolved
Hide resolved
src/Management/test/Endpoint.Test/Actuators/Info/Contributors/RuntimeInfoContributorTest.cs
Outdated
Show resolved
Hide resolved
src/Management/test/Endpoint.Test/Actuators/Info/Contributors/RuntimeInfoContributorTest.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: TimHess <3947063+TimHess@users.noreply.github.com>
|



✅ All feedback addressed
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.