From 69de8fdc8e95b02ac995647e0ec752e4faa66375 Mon Sep 17 00:00:00 2001 From: Kyle Wenholz Date: Fri, 13 Sep 2024 10:30:01 -0700 Subject: [PATCH] Add link to conditional plug invocation (#244) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ba44352..888f58d 100644 --- a/README.md +++ b/README.md @@ -270,6 +270,9 @@ There are a couple of solutions to this problem: maintain in order to only execute the `PromEx.Plug` plug when the incoming request fulfills your configured requirements (see the [PromEx.Plug HexDocs](https://hexdocs.pm/prom_ex/1.1.1/PromEx.Plug.html) for an example). +3. If Unplug doesn't suit your needs, you can invoke `PromEx.Plug` + [conditionally with your own logic](https://hexdocs.pm/plug/1.16.1/Plug.Builder.html#module-conditional-plugs). + ## Performance Concerns You may think to yourself that with all these metrics being collected and scraped, that the performance of your