Add .NET runtime information to /info actuator endpoint#1640
Conversation
Summary - All Code Coverage (ubuntu-latest)
|
…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.
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.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.