Skip to content

Commit

Permalink
[core] Include payload size for GetEnvironment integrated services data
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Jul 27, 2023
1 parent ed1e1f4 commit c7e9666
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
package core

import (
"encoding/json"
"runtime"
"sort"
"strconv"
Expand Down Expand Up @@ -447,6 +448,13 @@ func (m *RpcServer) GetEnvironment(cxt context.Context, req *pb.GetEnvironmentRe
reply.Workflow = workflowToRoleTree(env.Workflow())
}
reply.Environment.IncludedDetectors = env.GetActiveDetectors().StringList()

jsonISData, err := json.Marshal(isEnvData)
log.WithPrefix("rpcserver").
WithField("method", "GetEnvironment").
WithField("level", infologger.IL_Support).
WithField("intServPayloadSize", len(jsonISData)).
Infof("returning payload incl. integrated services data for %d services", len(isEnvData))
return
}

Expand Down

0 comments on commit c7e9666

Please sign in to comment.