|
1 | 1 | # Kusto Instrumentation for OpenTelemetry |
2 | 2 |
|
3 | | -| Status | | |
4 | | -| ----------- | --------- | |
| 3 | +| Status | | |
| 4 | +| ----------- | ------------------------------ | |
5 | 5 | | Stability | [Alpha](../../README.md#alpha) | |
6 | 6 |
|
7 | 7 | [](https://www.nuget.org/packages/OpenTelemetry.Instrumentation.Kusto) |
@@ -81,12 +81,12 @@ The instrumentation is implemented based on [metrics semantic |
81 | 81 | conventions](https://github.com/open-telemetry/semantic-conventions/blob/v1.36.0/docs/database/database-metrics.md). |
82 | 82 | Currently, the instrumentation supports the following metric: |
83 | 83 |
|
84 | | -| Name | Instrument Type | Unit | Description | Attributes | |
85 | | -|--------------------------------|-----------------|------|-----------------------------------------|------------| |
86 | | -| `db.client.operation.duration` | Histogram | `s` | Duration of database client operations. | `db.system`, `db.operation.name`, `db.namespace`, `db.query.summary`¹, `server.address`, `server.port`, `error.type`² | |
| 84 | +| Name | Instrument Type | Unit | Description | Attributes | |
| 85 | +|--------------------------------|-----------------|------|-----------------------------------------|----------------------------------------------------------------------------------------------------------------------------| |
| 86 | +| `db.client.operation.duration` | Histogram | `s` | Duration of database client operations. | `db.system`, `db.operation.name`, `db.namespace`, `db.query.summary` (1), `server.address`, `server.port`, `error.type`(2) | |
87 | 87 |
|
88 | | -¹ `db.query.summary` is only included when `RecordQuerySummary` is enabled (default: `true`) |
89 | | -² `error.type` is only included when an error occurs |
| 88 | +1 `db.query.summary` is only included when `RecordQuerySummary` is enabled |
| 89 | +2 `error.type` is only included when an error occurs |
90 | 90 |
|
91 | 91 | ## Advanced configuration |
92 | 92 |
|
@@ -142,8 +142,8 @@ using var tracerProvider = Sdk.CreateTracerProviderBuilder() |
142 | 142 | .AddKustoInstrumentation(opt => opt.Enrich = (activity, record) => |
143 | 143 | { |
144 | 144 | // Add custom tags based on the TraceRecord |
145 | | - activity.SetTag("kusto.activity_id", record.Activity.ActivityId); |
146 | | - activity.SetTag("kusto.activity_type", record.Activity.ActivityType); |
| 145 | + activity.SetTag("azure.kusto.activity_id", record.Activity.ActivityId); |
| 146 | + activity.SetTag("azure.kusto.activity_type", record.Activity.ActivityType); |
147 | 147 | }) |
148 | 148 | .Build(); |
149 | 149 | ``` |
@@ -205,7 +205,8 @@ Users |
205 | 205 | | take 100 |
206 | 206 | ``` |
207 | 207 |
|
208 | | -Would result in an activity with the summary and display name set to `"Get active users"`. |
| 208 | +Would result in an activity with the summary and display name |
| 209 | +set to `"Get active users"`. |
209 | 210 |
|
210 | 211 | ## References |
211 | 212 |
|
|
0 commit comments