Skip to content
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

System Metrics instrumentation shows Exception messages #1206

Closed
codeboten opened this issue Oct 6, 2020 · 0 comments · Fixed by #1207
Closed

System Metrics instrumentation shows Exception messages #1206

codeboten opened this issue Oct 6, 2020 · 0 comments · Fixed by #1207
Assignees
Labels
bug Something isn't working

Comments

@codeboten
Copy link
Contributor

Describe your environment
Running the latest version of opentelemetry.instrumentation.system_metrics using Python 3.8 on MacOS

Steps to reproduce
Run the following

from opentelemetry.instrumentation.system_metrics import SystemMetrics
SystemMetrics(ConsoleMetricsExporter(), interval=1)
input("...\n")

What is the expected behavior?
Metrics are output to the console

What is the actual behavior?
The following exceptions are logged:

Exception while executing observer callback: 'sdiskio' object has no attribute 'read_merged_count'.
Exception while executing observer callback: 'scputimes' object has no attribute 'irq'.
Exception while executing observer callback: 'scputimes' object has no attribute 'irq'.
Exception while executing observer callback: 'svmem' object has no attribute 'cached'.
Exception while executing observer callback: 'svmem' object has no attribute 'cached'.
Exception while executing observer callback: psutil.AccessDenied (pid=91018).
@codeboten codeboten added the bug Something isn't working label Oct 6, 2020
@codeboten codeboten self-assigned this Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant