elastic / fleet-server

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

[8.16](backport #4142) Fix server.address field in HTTP logs #4147

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