Skip to content

Commit 2a509d0

Browse files
authored
docs(metrics): fix empty metric warning filter (#3660)
1 parent 8b5341c commit 2a509d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/core/metrics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ If you want to ensure at least one metric is always emitted, you can pass `raise
165165
```
166166

167167
???+ tip "Suppressing warning messages on empty metrics"
168-
If you expect your function to execute without publishing metrics every time, you can suppress the warning with **`warnings.filterwarnings("ignore", "No metrics to publish*")`**.
168+
If you expect your function to execute without publishing metrics every time, you can suppress the warning with **`warnings.filterwarnings("ignore", "No application metrics to publish*")`**.
169169

170170
### Capturing cold start metric
171171

docs/core/metrics/datadog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Use `raise_on_empty_metrics=True` if you want to ensure at least one metric is a
142142
```
143143

144144
???+ tip "Suppressing warning messages on empty metrics"
145-
If you expect your function to execute without publishing metrics every time, you can suppress the warning with **`warnings.filterwarnings("ignore", "No metrics to publish*")`**.
145+
If you expect your function to execute without publishing metrics every time, you can suppress the warning with **`warnings.filterwarnings("ignore", "No application metrics to publish*")`**.
146146

147147
### Capturing cold start metric
148148

0 commit comments

Comments
 (0)