netbirdio / netbird

Connect your devices into a single secure private WireGuard®-based mesh network with SSO/MFA and simple access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
9.81k stars 426 forks source link

Propagate context through all methods in management #2145

Closed pascal-fischer closed 5 days ago

pascal-fischer commented 2 weeks ago

Describe your changes

This PR extends all occurrences of logrus in our management with log.WithContext(ctx) so that the logger will log the newly added context variables into the log messages. It then propagates the context through all method headers and method calls up to the root context.

Issue ticket number and link

Checklist

sonarcloud[bot] commented 5 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
49 Accepted issues

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

See analysis details on SonarCloud