-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
azure.monitor.opentelemetry - monitor - exporter - configure_azure_monitor hangs #33441
azure.monitor.opentelemetry - monitor - exporter - configure_azure_monitor hangs #33441
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jeremydvoss @lzchen. |
I'm experiencing the same issue |
@xiangyan99 is anybody from Microsoft working on this? |
@mathrb does this affect every version or just some? |
I am unable to reproduce this issue. That script works fine for me locally. As the message says, whatever error is taking place is ignored and should not cause an issue. You can see that code here. My guess is there is something else causing OpenTelemetry setup to repeat. Are you using any OpenTelemetry environment variables to configure? |
Hello @jeremydvoss
|
I also encountered this issue and I think the root cause is how OpenTelemetry handles resource detection, where it uses ThreadPoolExecutor with The Azure VM resource detection tries to retrieve data from endpoint The workaround for me now is setting environment variable
I tried set it to an empty string but that breaks the code. After reading the code here, I think it's safe to set the value to |
The issue stems from an unclear timeout in the OTel SDK. My fix will be in the next release. In order to not trigger the 5 second timeout, the VM Resource Detector now sets its own timeout to 4s. Please update to opentelemetry-resource-detector-azure=0.1.3 |
Describe the bug
configure_azure_monitor
blocks the code and diplays some exception messages:Exception in detector <opentelemetry.resource.detector.azure.vm.AzureVMResourceDetector object at 0x7f9698b12170>, ignoring
To Reproduce
Steps to reproduce the behavior:
Exception in detector <opentelemetry.resource.detector.azure.vm.AzureVMResourceDetector object at 0x7f9698b3d5a0>, ignoring
Here are the endpoints in the connection string:
IngestionEndpoint=https://francecentral-1.in.applicationinsights.azure.com/;LiveEndpoint=https://francecentral.livediagnostics.monitor.azure.com/
Expected behavior
Configuration ends normally.
The text was updated successfully, but these errors were encountered: