Skip to content

Commit d387044

Browse files
authored
docs(metrics): align headings of Metrics usage (#16059)
1 parent b57cf2d commit d387044

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

platform-includes/metrics/usage/php.laravel.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Metrics are enabled by default in the PHP SDK. After the SDK is initialized, you
22

33
The SDK buffers up to 1000 metric entries at a time. Once that limit is reached, it keeps only the most recent 1000. If you need to retain more than that, flush the metrics periodically before you exceed the buffer.
44

5-
## Emit a Counter
5+
### Emit a Counter
66

77
Counters are one of the more basic types of metrics and can be used to count certain event occurrences.
88

@@ -13,7 +13,7 @@ To emit a counter, do the following:
1313
\Sentry\trace_metrics()->count('button-click', 5, ['browser' => 'Firefox', 'app_version' => '1.0.0']);
1414
```
1515

16-
## Emit a Distribution
16+
### Emit a Distribution
1717

1818
Distributions help you get the most insights from your data by allowing you to obtain aggregations such as `p90`, `min`, `max`, and `avg`.
1919

@@ -26,7 +26,7 @@ use \Sentry\Metrics\Unit;
2626
\Sentry\trace_metrics()->distribution('page-load', 15.0, ['page' => '/home'], Unit::millisecond());
2727
```
2828

29-
## Emit a Gauge
29+
### Emit a Gauge
3030

3131
Gauges let you obtain aggregates like `min`, `max`, `avg`, `sum`, and `count`. Gauges can not be used to represent percentiles. If percentiles aren't important to you, we recommend using gauges.
3232

@@ -39,7 +39,7 @@ use \Sentry\Metrics\Unit;
3939
\Sentry\trace_metrics()->gauge('page-load', 15.0, ['page' => '/home'], Unit::millisecond());
4040
```
4141

42-
## Flush
42+
### Flush
4343

4444
Metrics are flushed and sent to Sentry at the end of each request or command.
4545

platform-includes/metrics/usage/php.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Metrics are enabled by default in the PHP SDK. After the SDK is initialized, you
22

33
The SDK buffers up to 1000 metric entries at a time. Once that limit is reached, it keeps only the most recent 1000. If you need to retain more than that, flush the metrics periodically before you exceed the buffer.
44

5-
## Emit a Counter
5+
### Emit a Counter
66

77
Counters are one of the more basic types of metrics and can be used to count certain event occurrences.
88

@@ -13,7 +13,7 @@ To emit a counter, do the following:
1313
\Sentry\trace_metrics()->count('button-click', 5, ['browser' => 'Firefox', 'app_version' => '1.0.0']);
1414
```
1515

16-
## Emit a Distribution
16+
### Emit a Distribution
1717

1818
Distributions help you get the most insights from your data by allowing you to obtain aggregations such as `p90`, `min`, `max`, and `avg`.
1919

@@ -26,7 +26,7 @@ use \Sentry\Metrics\Unit;
2626
\Sentry\trace_metrics()->distribution('page-load', 15.0, ['page' => '/home'], Unit::millisecond());
2727
```
2828

29-
## Emit a Gauge
29+
### Emit a Gauge
3030

3131
Gauges let you obtain aggregates like `min`, `max`, `avg`, `sum`, and `count`. Gauges can not be used to represent percentiles. If percentiles aren't important to you, we recommend using gauges.
3232

@@ -39,7 +39,7 @@ use \Sentry\Metrics\Unit;
3939
\Sentry\trace_metrics()->gauge('page-load', 15.0, ['page' => '/home'], Unit::millisecond());
4040
```
4141

42-
## Flush
42+
### Flush
4343

4444
Make sure to flush collected metrics at the end.
4545

platform-includes/metrics/usage/php.symfony.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Metrics are enabled by default in the Symfony SDK. After the SDK is initialized,
22

33
The SDK buffers up to 1000 metric entries at a time. Once that limit is reached, it keeps only the most recent 1000. If you need to retain more than that, flush the metrics periodically before you exceed the buffer.
44

5-
## Emit a Counter
5+
### Emit a Counter
66

77
Counters are one of the more basic types of metrics and can be used to count certain event occurrences.
88

@@ -13,7 +13,7 @@ To emit a counter, do the following:
1313
\Sentry\trace_metrics()->count('button-click', 5, ['browser' => 'Firefox', 'app_version' => '1.0.0']);
1414
```
1515

16-
## Emit a Distribution
16+
### Emit a Distribution
1717

1818
Distributions help you get the most insights from your data by allowing you to obtain aggregations such as `p90`, `min`, `max`, and `avg`.
1919

@@ -26,7 +26,7 @@ use \Sentry\Metrics\Unit;
2626
\Sentry\trace_metrics()->distribution('page-load', 15.0, ['page' => '/home'], Unit::millisecond());
2727
```
2828

29-
## Emit a Gauge
29+
### Emit a Gauge
3030

3131
Gauges let you obtain aggregates like `min`, `max`, `avg`, `sum`, and `count`. Gauges can not be used to represent percentiles. If percentiles aren't important to you, we recommend using gauges.
3232

@@ -39,7 +39,7 @@ use \Sentry\Metrics\Unit;
3939
\Sentry\trace_metrics()->gauge('page-load', 15.0, ['page' => '/home'], Unit::millisecond());
4040
```
4141

42-
## Flush
42+
### Flush
4343

4444
Metrics are flushed and sent to Sentry at the end of each request or command.
4545

platform-includes/metrics/usage/python.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Metrics are enabled by default. Once you initialize the SDK, you can send metric
22

33
The `metrics` namespace exposes three methods that you can use to capture different types of metric information: `count`, `gauge`, and `distribution`.
44

5-
## Emit a Counter
5+
### Emit a Counter
66

77
Counters are one of the more basic types of metrics and can be used to count certain event occurrences.
88

@@ -22,7 +22,7 @@ sentry_sdk.metrics.count(
2222
)
2323
```
2424

25-
## Emit a Distribution
25+
### Emit a Distribution
2626

2727
Distributions help you get the most insights from your data by allowing you to obtain aggregations such as `p90`, `min`, `max`, and `avg`.
2828

@@ -42,7 +42,7 @@ sentry_sdk.metrics.distribution(
4242
)
4343
```
4444

45-
## Emit a Gauge
45+
### Emit a Gauge
4646

4747
Gauges let you obtain aggregates like `min`, `max`, `avg`, `sum`, and `count`. They can be represented in a more space-efficient way than distributions, but they can't be used to get percentiles. If percentiles aren't important to you, we recommend using gauges.
4848

platform-includes/metrics/usage/ruby.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Metrics are enabled by default. Once you initialize the SDK, you can send metric
22

33
The `metrics` namespace exposes three methods that you can use to capture different types of metric information: `count`, `gauge`, and `distribution`.
44

5-
## Emit a Counter
5+
### Emit a Counter
66

77
Counters are one of the more basic types of metrics and can be used to count certain event occurrences.
88

@@ -17,7 +17,7 @@ Sentry.metrics.count(
1717
)
1818
```
1919

20-
## Emit a Distribution
20+
### Emit a Distribution
2121

2222
Distributions help you get the most insights from your data by allowing you to obtain aggregations such as `p90`, `min`, `max`, and `avg`.
2323

@@ -33,7 +33,7 @@ Sentry.metrics.distribution(
3333
)
3434
```
3535

36-
## Emit a Gauge
36+
### Emit a Gauge
3737

3838
Gauges let you obtain aggregates like `min`, `max`, `avg`, `sum`, and `count`. They can be represented in a more space-efficient way than distributions, but they can't be used to get percentiles. If percentiles aren't important to you, we recommend using gauges.
3939

0 commit comments

Comments
 (0)