prom_ex icon indicating copy to clipboard operation
prom_ex copied to clipboard

Phoenix Plugin: Correctly support multiple endpoints

Open joshk opened this issue 1 year ago • 0 comments

Change description

The current logic for the keep_endpoint_metrics function doesn't work for cases where multiple endpoints are configured using the endpoints: key.

This change normalizes the endpoints config to work with module in phoenix_endpoints

What problem does this solve?

The events defined in the endpoint_info function weren't working as expected, as the keep_function_filter returned false. This started happening after I tested out the config for multiple endpoints.

Checklist

  • [x] My changes have passed unit tests and have been tested E2E in an example project.

joshk avatar Sep 15 '24 07:09 joshk