Add 'handler_args' to pass extra informatoin to handler. · pythonAI/client_python@d8a1694 · GitHub
Skip to content

Commit d8a1694

Browse files
committed
Add 'handler_args' to pass extra informatoin to handler.
1 parent 0c1220a commit d8a1694

3 files changed

Lines changed: 28 additions & 9 deletions

File tree

prometheus_client/exposition.py

Lines changed: 11 additions & 8 deletions

prometheus_client/handlers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Python 3
77
from urllib.request import build_opener, Request, HTTPHandler
88

9-
def handler(url, method, timeout, headers, data):
9+
def handler(url, method, timeout, headers, data, **kwargs):
1010
'''Default handler that implements HTTP/HTTPS connections.'''
1111
request = Request(url, data=data)
1212
request.get_method = lambda: method
Lines changed: 16 additions & 0 deletions

0 commit comments

Comments
 (0)