Skip to content

Commit a114351

Browse files
committed
Unconditionally import notebook.prometheus?
let's see if we end up in a loop, kinda?
1 parent 209386d commit a114351

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jupyter_server/prometheus/metrics.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
Read https://prometheus.io/docs/practices/naming/ for naming
55
conventions for metrics & labels.
66
"""
7+
# Do this to see if we end up in an import loop?
8+
from notebook.prometheus.metrics import (
9+
HTTP_REQUEST_DURATION_SECONDS,
10+
KERNEL_CURRENTLY_RUNNING_TOTAL,
11+
TERMINAL_CURRENTLY_RUNNING_TOTAL,
12+
)
713

814
try:
915
# Jupyter Notebook also defines these metrics. Re-defining them results in a ValueError.

0 commit comments

Comments
 (0)