You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Setting the QueryTextMode = QueryTextMode.All client configuration doesn't populate OpenTelemetry db.query.text attribute for queries unless you use the steam API for queries.
To Reproduce
Client options QueryTextMode= QueryTextMode.All
Used the console OTel exporter
Sample query code
QueryDefinitionquery=newQueryDefinition("SELECT TOP 5 * FROM c");FeedIterator<dynamic>resultSetIterator=container.GetItemQueryIterator<dynamic>(query,null);while(resultSetIterator.HasMoreResults){FeedResponse<dynamic>response=awaitresultSetIterator.ReadNextAsync();Console.WriteLine($"Items returned: {response.Count}, Trip request charge: {response.RequestCharge}, Trip execution time: {response.Diagnostics.GetClientElapsedTime()}");}
Expected behavior
Expect db.query.text= SELECT TOP 5 * FROM c to appear in OTel console output.
Actual behavior db.query.text attribute doesn't appear.
Environment summary
SDK Version: 3.44.1
Windows
The text was updated successfully, but these errors were encountered:
Describe the bug
Setting the
QueryTextMode = QueryTextMode.All
client configuration doesn't populate OpenTelemetrydb.query.text
attribute for queries unless you use the steam API for queries.To Reproduce
Client options
QueryTextMode= QueryTextMode.All
Used the console OTel exporter
Sample query code
Expected behavior
Expect
db.query.text= SELECT TOP 5 * FROM c
to appear in OTel console output.Actual behavior
db.query.text
attribute doesn't appear.Environment summary
SDK Version: 3.44.1
Windows
The text was updated successfully, but these errors were encountered: