8000 Add missing import to auth example. · yeahnoob/client_python@46a9e92 · GitHub
[go: up one dir, main page]

Skip to content

Commit 46a9e92

Browse files
committed
Add missing import to auth example.
1 parent 44df258 commit 46a9e92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ you can use a special handler to set the Authorization header.
328328

329329
```python
330330
from prometheus_client import CollectorRegistry, Gauge, push_to_gateway
331+
from prometheus_client.handlers.basic_auth import handler as basic_auth_handler
331332
import os
332333

333334
def my_auth_handler(url, method, timeout, headers, data):

0 commit comments

Comments
 (0)
0