Skip to content

[WARNING] Looking for Plug_Cowboy when using Bandit #276

@ndrean

Description

@ndrean

Describe the bug
Firstly, thks for this work. Just a compilation warning.
I am using Bandit, not Cowboy and metrics_server: :disabled and PromEx is looking for plug_cowboy.

==> prom_ex
Compiling 40 files (.ex)
     warning: Plug.Cowboy.child_spec/1 is undefined (module Plug.Cowboy is not available or is yet to be defined)
     │
 556 │       Plug.Cowboy.child_spec(
     │                   ~
     │
     └─ lib/prom_ex.ex:556:19: PromEx.metrics_server_child_spec/4

To Reproduce
Steps to reproduce the behavior:

Use Bandit, not PlugCowboy in the dependencies.

Expected behavior
No warning.

Environment

  • Elixir version: 1.18
  • Erlang/OTP version: 28
  • Grafana version:
  • Prometheus version:

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions