Skip to content

Commit c7e9666

Browse files
committed
[core] Include payload size for GetEnvironment integrated services data
1 parent ed1e1f4 commit c7e9666

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

core/server.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
package core
2828

2929
import (
30+
"encoding/json"
3031
"runtime"
3132
"sort"
3233
"strconv"
@@ -447,6 +448,13 @@ func (m *RpcServer) GetEnvironment(cxt context.Context, req *pb.GetEnvironmentRe
447448
reply.Workflow = workflowToRoleTree(env.Workflow())
448449
}
449450
reply.Environment.IncludedDetectors = env.GetActiveDetectors().StringList()
451+
452+
jsonISData, err := json.Marshal(isEnvData)
453+
log.WithPrefix("rpcserver").
454+
WithField("method", "GetEnvironment").
455+
WithField("level", infologger.IL_Support).
456+
WithField("intServPayloadSize", len(jsonISData)).
457+
Infof("returning payload incl. integrated services data for %d services", len(isEnvData))
450458
return
451459
}
452460

0 commit comments

Comments
 (0)