Skip to content

Commit f0cea24

Browse files
committed
docs(metrics): update filepath
Signed-off-by: ahkui <[email protected]> #574
1 parent 5470970 commit f0cea24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/advanced/metrics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ We provide a default implementation using Prometheus, based on the official [Pro
1212

1313
The `components/metrics` package exports `PrometheusMetricsBuilder`, which provides convenience functions to wrap publishers, subscribers and handlers so that they update the relevant Prometheus registry:
1414

15-
{{% load-snippet-partial file="src-link/components/metrics/builder.go" first_line_contains="// PrometheusMetricsBuilder" last_line_contains="func (b PrometheusMetricsBuilder)" %}}
15+
{{% load-snippet-partial file="src-link/components/metrics/prometheus_builder.go" first_line_contains="// PrometheusMetricsBuilder" last_line_contains="func (b PrometheusMetricsBuilder)" %}}
1616

1717
## Wrapping publishers, subscribers and handlers
1818

1919
If you are using Watermill's [router](/docs/messages-router) (which is recommended in most cases), you can use a single convenience function `AddPrometheusRouterMetrics` to ensure that all the handlers added to this router are wrapped to update the Prometheus registry, together with their publishers and subscribers:
2020

21-
{{% load-snippet-partial file="src-link/components/metrics/builder.go" first_line_contains="// AddPrometheusRouterMetrics" last_line_contains="AddMiddleware" padding_after="1" %}}
21+
{{% load-snippet-partial file="src-link/components/metrics/prometheus_builder.go" first_line_contains="// AddPrometheusRouterMetrics" last_line_contains="AddMiddleware" padding_after="1" %}}
2222

2323
Example use of `AddPrometheusRouterMetrics`:
2424

0 commit comments

Comments
 (0)