elastic / fleet-server

The Fleet server allows managing a fleet of Elastic Agents.
Other
11 stars 81 forks source link

[8.x](backport #4142) Fix server.address field in HTTP logs #4148

Open mergify[bot] opened 23 hours ago

mergify[bot] commented 23 hours ago

What is the problem this PR solves?

server.address is empty in HTTP request logs.

How does this PR solve the problem?

Populate server.address using the interface associated with http.LocalAddrContextKey.

How to test this PR locally

start a fleet-server and make an HTTP request.

Design Checklist

Checklist

elastic-sonarqube[bot] commented 22 hours ago

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube