Always log Runner and Environment ID.

Systematically log the runner id and the environment id by adding the information at the findRunnerMiddleware.
This commit is contained in:
Maximilian Paß
2023-07-14 18:17:42 +02:00
parent 0bfef5e105
commit e7df777db4
11 changed files with 39 additions and 25 deletions

View File

@ -184,6 +184,12 @@ func (f File) ByteContent() []byte {
// ContextKey is the type for keys in a request context that is used for passing data to the next handler.
type ContextKey string
// Keys to reference information (for logging or monitoring).
const (
KeyRunnerID = "runner_id"
KeyEnvironmentID = "environment_id"
)
// WebSocketMessageType is the type for the messages from Poseidon to the client.
type WebSocketMessageType string