Compare commits

...

7 commits

Author SHA1 Message Date
d03e2f5985 add ClientlLogMode
Signed-off-by: m.malygina <m.malygina@yadro.com>
2023-07-25 16:08:10 +03:00
f0e9f59a90 add ClientlLogMode
Signed-off-by: m.malygina <m.malygina@yadro.com>
2023-07-25 16:07:01 +03:00
afebe294cd removed ClientlLogMode
Signed-off-by: m.malygina <m.malygina@yadro.com>
2023-07-25 15:45:10 +03:00
e987b6aef9 removed ClientlLogMode
Signed-off-by: m.malygina <m.malygina@yadro.com>
2023-07-25 15:44:34 +03:00
2f00260594 removed ClientlLogMode
Signed-off-by: m.malygina <m.malygina@yadro.com>
2023-07-25 15:40:27 +03:00
c71fc8970f log the request with body along with received response for put object
Signed-off-by: m.malygina <m.malygina@yadro.com>
2023-07-24 18:11:23 +03:00
82a02cc8d2 log the request with body along with received response for put object
Signed-off-by: m.malygina <m.malygina@yadro.com>
2023-07-24 16:50:33 +03:00
2 changed files with 4 additions and 3 deletions

View file

@ -6,9 +6,6 @@ import (
"crypto/sha256"
"encoding/hex"
"fmt"
"strconv"
"time"
"git.frostfs.info/TrueCloudLab/xk6-frostfs/internal/stats"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/feature/s3/manager"
@ -17,6 +14,8 @@ import (
"github.com/dop251/goja"
"go.k6.io/k6/js/modules"
"go.k6.io/k6/metrics"
"strconv"
"time"
)
type (
@ -61,6 +60,7 @@ func (c *Client) Put(bucket, key string, payload goja.ArrayBuffer) PutResponse {
Key: aws.String(key),
Body: rdr,
})
if err != nil {
stats.Report(c.vu, objPutFails, 1)
return PutResponse{Success: false, Error: err.Error()}

View file

@ -91,6 +91,7 @@ func (s *S3) Connect(endpoint string, params map[string]string) (*Client, error)
},
Timeout: timeout,
}
options.ClientLogMode = aws.LogResponseWithBody
})
// register metrics