There should be a way of creating mixed case instrumentation names when using the configure_azure_monitor() convenience method. #34465
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
Workflow: 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
Workflow: This issue is responsible by Azure service team.
Describe the bug
configure_azure_monitor()
doesn't support a way of providing or later adding Metrics Views. This means that metrics change their names when moving from OpenCensus to OpenTelemetry if the old names were mixed cases with spaces.The Python Open telemetry SDK converts all meter (gauge, counter, etc) names to lowercase.
See: open-telemetry/opentelemetry-python#3207 Experimentation shows that it fails if there are spaces in the metrics names.
The Azure OpenCensus API supported mixed case names with spaces via the view functionality.
It looks like Azure OpenTelemetry API may support mixed case via Views. It is hard to tell because there are zero examples of mixed case or spaces. This page https://learn.microsoft.com/en-us/python/api/overview/azure/monitor-opentelemetry-exporter-readme?view=azure-python-preview#metric-custom-views shows that it is possible to add views via the
Meter Provider
azure.monitor.opentelmetry._confgure invokes
_setupmetrics()
That method does not accept or configure views. Views cannot be added once the Provider is configured.To Reproduce
Steps to reproduce the behavior:
1.
Expected behavior
The convenience method
configure_azure_monitor()
should accept Views or there should be a way to inject them. Or documentation should be added to say that the convenience method cannot be used for views.Documentation should show or say whether or not the names in the views can be mixed case and include spaces as they did in the past with OpenCensus.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: