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
This library includes OpenTelemetry instrumentation that wraps background database queries in activities, making them more easily identified and grouped in your collected telemetry.
81
-
81
+
a
82
82
### Setup
83
83
84
-
To enable OpenTelemetry collection of these trace spans, add the source to your tracing configuration:
84
+
To enable OpenTelemetry collection of these trace spans and metrics, add the source and meter to your configuration:
The library also provides metrics to help monitor the health and performance of the SQL Server backplane:
110
+
111
+
-`signalr.sqlserver.poll_delay` - Histogram showing the distribution of polling delay intervals, useful for understanding backoff patterns and system health
112
+
-`signalr.sqlserver.query_duration` - Histogram tracking the duration of SQL Server query execution for reading messages
113
+
-`signalr.sqlserver.rows_read_total` - Counter tracking the total number of message rows read from SQL Server
114
+
-`signalr.sqlserver.rows_written_total` - Counter tracking the total number of message rows written to SQL Server
115
+
116
+
These metrics help you understand polling patterns, database performance, message throughput, and can be useful for tuning performance or identifying when Service Broker fallback to polling occurs.
117
+
103
118
### Filtering Noise
104
119
105
120
Since the SQL Server backplane performs frequent polling operations, you may want to filter out successful, fast queries to reduce trace noise.
0 commit comments