diff --git a/agent/config/config.go b/agent/config/config.go index 483cbe9a66..b713cbf5bd 100644 --- a/agent/config/config.go +++ b/agent/config/config.go @@ -610,7 +610,7 @@ type Performance struct { type Telemetry struct { CirconusAPIApp *string `json:"circonus_api_app,omitempty" hcl:"circonus_api_app" mapstructure:"circonus_api_app"` - CirconusAPIToken *string `json:"circonus_api_token,omitempty" json:"-" hcl:"circonus_api_token" mapstructure:"circonus_api_token" json:"-"` + CirconusAPIToken *string `json:"circonus_api_token,omitempty" hcl:"circonus_api_token" mapstructure:"circonus_api_token"` CirconusAPIURL *string `json:"circonus_api_url,omitempty" hcl:"circonus_api_url" mapstructure:"circonus_api_url"` CirconusBrokerID *string `json:"circonus_broker_id,omitempty" hcl:"circonus_broker_id" mapstructure:"circonus_broker_id"` CirconusBrokerSelectTag *string `json:"circonus_broker_select_tag,omitempty" hcl:"circonus_broker_select_tag" mapstructure:"circonus_broker_select_tag"` diff --git a/command/debug/debug.go b/command/debug/debug.go index a9697b624a..c6642faf68 100644 --- a/command/debug/debug.go +++ b/command/debug/debug.go @@ -428,9 +428,8 @@ func (c *cmd) captureDynamic() error { s = 1 } + wgProf.Add(1) go func() { - wgProf.Add(1) - prof, err := c.client.Debug().Profile(int(s)) if err != nil { errCh <- err @@ -444,9 +443,8 @@ func (c *cmd) captureDynamic() error { wgProf.Done() }() + wgProf.Add(1) go func() { - wgProf.Add(1) - trace, err := c.client.Debug().Trace(int(s)) if err != nil { errCh <- err