azure-monitor-opentelemetry: 1.8.9
- Operating System: Ubuntu
- Python Version: 3.14
Describe the bug
The Azure Monitor OpenTelemetry Exporter does not recognize the current OpenTelemetry database semantic convention attributes when converting CLIENT spans to Application Insights dependencies.
For example, a Redis span using:
db.system.name = redis
db.operation.name = GET
db.query.text = GET ?
is exported with DependencyType = N/A.
Adding the deprecated attributes:
db.system = redis
db.operation = GET
db.statement = GET ?
causes the same span to be correctly exported with DependencyType = redis.
To Reproduce
-
Create an OpenTelemetry CLIENT span with:
db.system.name = redis
db.operation.name = GET
- optionally
db.query.text = GET ?
-
Export it using azure-monitor-opentelemetry.
-
Check the resulting AppDependencies telemetry in Application Insights.
-
Observe that the dependency type is N/A.
-
Add the deprecated db.system = redis attribute and repeat.
-
Observe that the dependency type is now redis.
Expected behavior
The exporter should support the current database semantic convention attributes such as db.system.name, db.operation.name, and db.query.text without requiring the deprecated db.system, db.operation, and db.statement attributes.
Additional context
The exporter currently appears to rely on the deprecated database semantic convention attributes when mapping database spans to Application Insights dependencies.
Related: #34246
azure-monitor-opentelemetry:1.8.9Describe the bug
The Azure Monitor OpenTelemetry Exporter does not recognize the current OpenTelemetry database semantic convention attributes when converting
CLIENTspans to Application Insights dependencies.For example, a Redis span using:
is exported with
DependencyType = N/A.Adding the deprecated attributes:
causes the same span to be correctly exported with
DependencyType = redis.To Reproduce
Create an OpenTelemetry
CLIENTspan with:db.system.name = redisdb.operation.name = GETdb.query.text = GET ?Export it using
azure-monitor-opentelemetry.Check the resulting
AppDependenciestelemetry in Application Insights.Observe that the dependency type is
N/A.Add the deprecated
db.system = redisattribute and repeat.Observe that the dependency type is now
redis.Expected behavior
The exporter should support the current database semantic convention attributes such as
db.system.name,db.operation.name, anddb.query.textwithout requiring the deprecateddb.system,db.operation, anddb.statementattributes.Additional context
The exporter currently appears to rely on the deprecated database semantic convention attributes when mapping database spans to Application Insights dependencies.
Related: #34246