-
Notifications
You must be signed in to change notification settings - Fork 661
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
Metrics SDK produces ValueError sometimes #4093
Comments
Since the protobuf field is However, the metric |
@pmcollins any way you can check the output of |
Just running it at the python console from my Intel Mac I get
So maybe a psutil issue (?), but also maybe an issue in the SDK with how we handle too big of numbers. |
Ya that seems unexpected on the psutil side. For reference, on my ARM Mac: $ python3 -c 'import psutil; import os; print(psutil.Process(os.getpid()).num_ctx_switches())'
pctxsw(voluntary=33, involuntary=0) |
Same here ARM Mac
|
I'd like to work on improving the logging for this scenario. I've removed the bug label because I'm not sure it is one. |
Would you like to be assigned to the issue? |
Describe your environment
OS: Intel Mac
Python version: 3.8
SDK version: latest main
API version: latest main
What happened?
When I use
opentelemetry-instrument
on a script that sends a single span, the metrics SDK throws a ValueError on around half the runs. The script just gets a tracer and does a singlestart_as_current_span
, but I believeopentelemetry-system-metrics
is what runs in the background collecting and sending metrics.Steps to Reproduce
Use
opentelemetry-instrument
to run a script containing something like the followingExpected Result
No ValueError exceptions.
Actual Result
Additional context
On one run, I was able to print the metric before the ValueError and got:
The value that caused the error in this case was
10484362086929426074
, which is about 10^19.Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: