You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: close geoip providers database readers (#39379)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Adds a new `Close` method to the geoIP providers interface, so resources
can be freed during processor's shutdown.
<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes#38961
<!--Describe what testing was performed and which tests were added.-->
#### Testing
Flaky windows tests uncommented.
<!--Describe the documentation added.-->
#### Documentation
<!--Please delete paragraphs that you did not use before submitting.-->
---------
Co-authored-by: Andrzej Stencel <[email protected]>
Copy file name to clipboardExpand all lines: processor/geoipprocessor/internal/provider/geoipprovider.go
+3
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,9 @@ type Config interface {
25
25
typeGeoIPProviderinterface {
26
26
// Location returns a set of attributes representing the geographical location for the given IP address. It requires a context for managing request lifetime.
// cityAttributes returns a list of key-values containing geographical metadata associated to the provided IP. The key names are populated using the internal geo IP conventions package. If an invalid or nil IP is provided, an error is returned.
0 commit comments