Exception while exporting metrics invalid literal for int() with base 10: 'None' #35633
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor - Exporter
Monitor OpenTelemetry Exporter
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Describe the bug
Crash during export metrics
As you can see the Exception is here:
https://github.com/Azure/azure-sdk-for-python/blob/ac47fa8cf5e5976e5e7308a0e76ee4adf06a31db/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/metrics/_exporter.py#L276C1-L277C68
The exception is due to status_code can be
'None'
In urllib the status code is pack in str
https://github.com/open-telemetry/opentelemetry-python-contrib/blob/460fc335836c395db8472ecf464e7ecd94c08925/instrumentation/opentelemetry-instrumentation-urllib/src/opentelemetry/instrumentation/urllib/__init__.py#L247C1-L248C69
The status code can be None when urllib open File. (In my case weasyprint + file:///style.css)
The text was updated successfully, but these errors were encountered: