> For the complete documentation index, see [llms.txt](https://docs.toggly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toggly.io/metrics/metrics-in-c-.net.md).

# Metrics in C# / .NET

Metrics allow you to gain useful additional information to give you a clearer picture of what's going on in your app.&#x20;

There are a lot of different types of metrics in Toggly. Some are tracked automatically, and some are up to you to define.

## Automatically tracked

### Feature checks

We automatically track how many times a feature was checked and returned on or off, and we separately track how many times each happened unique per request (useful when a feature is checked multiple times within a single request)

### Get Definitions

We track how many times you fetch definitions, and what the cache-hit ratio is

### Send Metrics

We track how often you send metrics / report usage

## Semi-Manually tracked

Some types of metrics are more useful when assisted by you, who knows the application best. For this, we have helpers to enable you to easily capture additional usage, business and performance metrics.

{% content-ref url="/spaces/XJOvGCWxW87BnQGD3kMr/pages/F9zXI57ECzfrhehUK0lx" %}
[Feature Usage](/metrics/metrics-in-c-.net/feature-usage.md)
{% endcontent-ref %}

{% content-ref url="/spaces/XJOvGCWxW87BnQGD3kMr/pages/QP3gpPHaAOumPBJshMy8" %}
[Business Metrics](/metrics/metrics-in-c-.net/business-metrics.md)
{% endcontent-ref %}

{% content-ref url="/spaces/XJOvGCWxW87BnQGD3kMr/pages/A7nbM3Axvb8K1M33VhDg" %}
[Performance Metrics](/metrics/metrics-in-c-.net/performance-metrics.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.toggly.io/metrics/metrics-in-c-.net.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
