Use system info and build info as user agent, and expose DebugInfo (#41)
* Refactor setting and unsetting system info * detect version on init * Update client.go * Update client_test.go Co-authored-by: Copilot <[email protected]> * Update client.go Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -92,13 +92,7 @@ func run(ctx context.Context, c Config) error {
|
||||
}
|
||||
|
||||
// Set the user agent for the scaleset client now that we have the scale set ID
|
||||
scalesetClient.SetUserAgent(scaleset.UserAgentInfo{
|
||||
System: "dockerscaleset",
|
||||
Version: "0.1.0",
|
||||
CommitSHA: "unknown",
|
||||
ScaleSetID: scaleSet.ID,
|
||||
Subsystem: scaleSet.Name,
|
||||
})
|
||||
scalesetClient.SetSystemInfo(systemInfo(scaleSet.ID))
|
||||
|
||||
defer func() {
|
||||
logger.Info(
|
||||
|
||||
Reference in New Issue
Block a user