Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing ")" in some sections of creating-gauges.md #21

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/basic-usage/creating-gauges.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can add as many gauges as you want. Here's an example where we export the us

```php
Prometheus::addGauge('User count')
->value(fn() => User::count();
->value(fn() => User::count());
```

## Adding a help text
Expand All @@ -26,7 +26,7 @@ You can add a help text to your metric by chaining the `helpText` method.
```php
Prometheus::addGauge('User count')
->helpText('This is the number of users in our app')
->value(fn() => User::count();
->value(fn() => User::count());
```

## Setting a namespace
Expand All @@ -40,7 +40,7 @@ To change the namespace of a specific gauge, you can chain the `namespace` metho
```php
Prometheus::addGauge('User count')
->namespace('My custom namespace')
->value(fn() => User::count();
->value(fn() => User::count());
```

The above gauge will be exported as `my_custom_namespace_user_count`.
Expand Down