Skip to content

Commit

Permalink
Update docs for OTEL to match efcore#34267.
Browse files Browse the repository at this point in the history
  • Loading branch information
cincuranet committed Jul 22, 2024
1 parent 9e64ce6 commit fc5bfc0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions entity-framework/core/logging-events-diagnostics/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ EF Core reports metrics via the standard <xref:System.Diagnostics.Metrics?displa
* [`microsoft.entityframeworkcore.active_dbcontexts`](#metric-microsoftentityframeworkcoreactive_dbcontexts)
* [`microsoft.entityframeworkcore.queries`](#metric-microsoftentityframeworkcorequeries)
* [`microsoft.entityframeworkcore.savechanges`](#metric-microsoftentityframeworkcoresavechanges)
* [`microsoft.entityframeworkcore.compiled_query_cache_hit_rate`](#metric-microsoftentityframeworkcorecompiled_query_cache_hit_rate)
* [`microsoft.entityframeworkcore.compiled_query_cache_hits`](#metric-microsoftentityframeworkcorecompiled_query_cache_hits)
* [`microsoft.entityframeworkcore.compiled_query_cache_misses`](#metric-microsoftentityframeworkcorecompiled_query_cache_misses)
* [`microsoft.entityframeworkcore.execution_strategy_operation_failures`](#metric-microsoftentityframeworkcoreexecution_strategy_operation_failures)
* [`microsoft.entityframeworkcore.optimistic_concurrency_failures`](#metric-microsoftentityframeworkcoreoptimistic_concurrency_failures)

Expand Down Expand Up @@ -54,11 +55,19 @@ Available starting in: Entity Framework Core 9.0.

Available starting in: Entity Framework Core 9.0.

#### Metric: `microsoft.entityframeworkcore.compiled_query_cache_hit_rate`
#### Metric: `microsoft.entityframeworkcore.compiled_query_cache_hits`

| Name | Instrument Type | Unit (UCUM) | Description |
| -------- | --------------- | ----------- | -------------- |
| `microsoft.entityframeworkcore.compiled_query_cache_hit_rate` | ObservableGauge | `%` | Hit rate - since last observation - for the compiled query cache. |
| `microsoft.entityframeworkcore.compiled_query_cache_hits` | ObservableCounter | `{hits}` | Cumulative count of hits for the compiled query cache. |

Available starting in: Entity Framework Core 9.0.

#### Metric: `microsoft.entityframeworkcore.compiled_query_cache_misses`

| Name | Instrument Type | Unit (UCUM) | Description |
| -------- | --------------- | ----------- | -------------- |
| `microsoft.entityframeworkcore.compiled_query_cache_misses` | ObservableCounter | `{misses}` | Cumulative count of misses for the compiled query cache. |

Available starting in: Entity Framework Core 9.0.

Expand Down

0 comments on commit fc5bfc0

Please sign in to comment.