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
I always get an error when I try to create an exposer. My code looks like this:
#include <prometheus/counter.h>
#include <prometheus/exposer.h>
#include <prometheus/registry.h>
int main() {
using namespace prometheus;
// create an http server running on port 8080
Exposer exposer{"127.0.0.1:8080"};
// The rest of the tutorial code was commented out to see what the problem is...
return 0;
}
The code compiles without problems and only throws this error while it is running:
"Unhandled exception at 0x00007FFB5901CD29 in example.exe: Microsoft C++ exception: std::bad_alloc at location 0x000082F297F770."
Hello Together,
I always get an error when I try to create an exposer. My code looks like this:
The code compiles without problems and only throws this error while it is running:
"Unhandled exception at 0x00007FFB5901CD29 in example.exe: Microsoft C++ exception: std::bad_alloc at location 0x000082F297F770."
My main Cmake file looks like this:
Cmake file in example looks like this:
I have installed this library with anaconda and follewed these instructions here
Can anyone help me? Thanks in advance!
The text was updated successfully, but these errors were encountered: