-
Notifications
You must be signed in to change notification settings - Fork 626
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
Resource Detectors produce blank Exception() after 5 seconds #3644
Labels
bug
Something isn't working
Comments
This was referenced Jan 22, 2024
Closed
Update azure resource detector timeout to 4 seconds
open-telemetry/opentelemetry-python-contrib#2136
Merged
Reopening since #3645 did not fully fix this issue. |
This seems similar to #3309 when processors or exporters block, we have no way to cancel them. |
Some options for adding a timeout inside resource detectors:
|
A couple more issues:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe your environment
Resource Detector only get 5 seconds by default to run. However, instead of ending the process after 5 seconds, a blank "Exception()" is creating resulting in the follow warning:
Exception in detector <opentelemetry.resource.detector.<RESOURCE DETECTOR CLASS> object at 0x000002B955D43D60>, ignoring
Note that the Exception string is blank resulting in 2 whitespaces:
Exception__in...
This blank exception is causing confusion among Azure customers. And perhaps more importantly, the process still hangs.
Steps to reproduce
export OTEL_EXPERIMENTAL_RESOURCE_DETECTORS=sleeping
Resource.create()
This will eventually call get_aggregated_resourcesWhat is the expected behavior?
The "concurrent future" setup should gracefully exit the process and not print out a confusing blank warning.
What is the actual behavior?
Process hangs and confusing warning message with blank error.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: