diff --git a/clientlibrary/metrics/cloudwatch/cloudwatch.go b/clientlibrary/metrics/cloudwatch/cloudwatch.go index 9572579..3fea191 100644 --- a/clientlibrary/metrics/cloudwatch/cloudwatch.go +++ b/clientlibrary/metrics/cloudwatch/cloudwatch.go @@ -89,6 +89,10 @@ func NewMonitoringServiceWithOptions(region string, creds *credentials.Credentia } func (cw *MonitoringService) Init(appName, streamName, workerID string) error { + cw.appName = appName + cw.streamName = streamName + cw.workerID = workerID + cfg := &aws.Config{Region: aws.String(cw.region)} cfg.Credentials = cw.credentials s, err := session.NewSession(cfg)