-
Notifications
You must be signed in to change notification settings - Fork 47
Dependency issue on opentelemetry-exporter-gcp-monitoring #162
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
Comments
You're right that the packages have been split up. Unfortunately, OTel metrics are still a work in progress, so they were not released along with the 1.0 API/SDK but moved into a separate branch and released as 1.10a0 several months back. And yes, it appears to currently be impossible to install that exporter still with any other packages, because Thanks for pointing this out, I think this is a bug in the OTel packaging, I will bring it up with the Python group. |
I am curious though, have you written any custom metric instrumentation? It might be easiest to just remove this for now as the OTel metrics spec is getting mostly gutted right now. |
No I didn't write anything custom, relevant part of my current code using the "old"
|
This is what I meant by custom metric instrumentation. I have a fix upstream for your issue open-telemetry/opentelemetry-python#2012. Once that is released, you should be able to upgrade |
much appreciated @aabmass ! |
I tried to install the same way as above and it's ok now. |
for reference the packages used:
|
The OTel python SIG is reworking metrics from scratch and I don't expect any more releases with metrics past the 1.10a version until we have a new working metrics prototype. If this is a big issue, I'd recommend creating an issue in the open-telemetry/opentelemetry-python repo to see if the old branch can be rebased and a release made. |
It's been a while.... Any update on this? Right now it seems that you can only use opentelemetry for either metrics or tracing. Judging how amazingly painful |
I'm working on updating the Cloud Monitoring exporter to work with the stable metrics SDK. Hopefully should have something working in the next week or so. |
Fixed with #204. The trace and monitoring exporters both now have the same wide dependency range:
Hoping to release this soon! |
I have this in myy pyproject.toml and I'd like to upgrade
So it seems like
opentelemetry-exporter-google-cloud
was split in several new packages.So I :
poetry remove opentelemetry-exporter-google-cloud opentelemetry-instrumentation-fastapi opentelemetry-instrumentation-asyncpg
poetry add opentelemetry-exporter-gcp-trace opentelemetry-exporter-gcp-monitoring
which works fine.poetry add opentelemetry-instrumentation-fastapi opentelemetry-instrumentation-asyncpg
I face this error:so this is quite clear that this is because of
opentelemetry-exporter-gcp-monitoring
:And because opentelemetry-exporter-gcp-monitoring (1.0.0a0) depends on opentelemetry-api (>=1.10a0,<2.0.0)
so i wonder if there is a typo in its setup here
opentelemetry-operations-python/opentelemetry-exporter-gcp-monitoring/setup.cfg
Line 29 in b342c80
1.0.0a0
vs1.10a0
at present.currently install
opentelemetry-exporter-gcp-monitoring
alongside any other package seems like impossible or I'm missing something ?The text was updated successfully, but these errors were encountered: