-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incompatibility with fastapi-versioning #31
Comments
I'm having the same problem - any solution yet? @trallnag |
Are we talking about this project? |
Not to answer for the op, but yes I think that is the github for the fastapi-version project |
Hi, I found a quick workaround, since fastpi-versioning mounts an api for each version, you can attach the metrics to each mounted api seperatly:
This of course generates one metrics endpoint per versioned-api (localhost:XXXX/v1/metrics), but its better than nothing. |
This was very helpful, I was still getting an error because some of the default metrics shared names between different versions, so I changed the default metrics names before instrumenting, like so:
Just putting it here for reference. :) |
Whenever I use the instrumentator and I use the
fastapi-versionin
lib, all my handlers match just my version. I think it's because of the prefix format here:I'm not sure this is fixable but I did want to report it here
The text was updated successfully, but these errors were encountered: