Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/prometheus/client_python
/ _sanitize
Function
_sanitize
prometheus_client/bridge/graphite.py:19–20 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
17
18
19
def
_sanitize(s):
20
return
_INVALID_GRAPHITE_CHARS.sub(
'_'
, s)
21
22
23
class
_RegularPush(threading.Thread):
Callers
1
push
Method · 0.85
Calls
1
sub
Method · 0.45
Tested by
no test coverage detected