Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/kserve/kserve
/ getOrCreateID
Function
getOrCreateID
pkg/logger/handler.go:210–216 ·
view source on GitHub ↗
(r *http.Request)
Source
from the content-addressed store, hash-verified
208
}
209
210
func
getOrCreateID(r *http.Request) string {
211
id := r.Header.Get(CloudEventsIdHeader)
212
if
id ==
""
{
213
id = guuid.New().String()
214
}
215
return
id
216
}
Callers
1
ServeHTTP
Method · 0.85
Calls
2
Get
Method · 0.65
String
Method · 0.45
Tested by
no test coverage detected