Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 91bd1a1

Browse files
authored
Merge pull request #54 from smartcontractkit/loki_bump_again
Bump loki to main branch at 12/15/2023
2 parents 773d0c2 + 335f71d commit 91bd1a1

1,880 files changed

Lines changed: 231006 additions & 44371 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/alerts/gun.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ func NewExampleHTTPGun(target string) *ExampleGun {
2020
}
2121

2222
// Call implements example gun call, assertions on response bodies should be done here
23-
func (m *ExampleGun) Call(l *wasp.Generator) *wasp.CallResult {
23+
func (m *ExampleGun) Call(l *wasp.Generator) *wasp.Response {
2424
var result map[string]interface{}
2525
r, err := m.client.R().
2626
SetResult(&result).
2727
Get(m.target)
2828
if err != nil {
29-
return &wasp.CallResult{Data: result, Error: err.Error()}
29+
return &wasp.Response{Data: result, Error: err.Error()}
3030
}
3131
if r.Status() != "200 OK" {
32-
return &wasp.CallResult{Data: result, Error: "not 200", Failed: true}
32+
return &wasp.Response{Data: result, Error: "not 200", Failed: true}
3333
}
34-
return &wasp.CallResult{Data: result}
34+
return &wasp.Response{Data: result}
3535
}

examples/cluster/gun.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ func NewExampleHTTPGun(target string) *ExampleGun {
2020
}
2121

2222
// Call implements example gun call, assertions on response bodies should be done here
23-
func (m *ExampleGun) Call(l *wasp.Generator) *wasp.CallResult {
23+
func (m *ExampleGun) Call(l *wasp.Generator) *wasp.Response {
2424
var result map[string]interface{}
2525
r, err := m.client.R().
2626
SetResult(&result).
2727
Get(m.target)
2828
if err != nil {
29-
return &wasp.CallResult{Data: result, Error: err.Error()}
29+
return &wasp.Response{Data: result, Error: err.Error()}
3030
}
3131
if r.Status() != "200 OK" {
32-
return &wasp.CallResult{Data: result, Error: "not 200", Failed: true}
32+
return &wasp.Response{Data: result, Error: "not 200", Failed: true}
3333
}
34-
return &wasp.CallResult{Data: result}
34+
return &wasp.Response{Data: result}
3535
}

examples/profiles/gun.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ func NewExampleHTTPGun(target string) *ExampleGun {
2020
}
2121

2222
// Call implements example gun call, assertions on response bodies should be done here
23-
func (m *ExampleGun) Call(l *wasp.Generator) *wasp.CallResult {
23+
func (m *ExampleGun) Call(l *wasp.Generator) *wasp.Response {
2424
var result map[string]interface{}
2525
r, err := m.client.R().
2626
SetResult(&result).
2727
Get(m.target)
2828
if err != nil {
29-
return &wasp.CallResult{Data: result, Error: err.Error()}
29+
return &wasp.Response{Data: result, Error: err.Error()}
3030
}
3131
if r.Status() != "200 OK" {
32-
return &wasp.CallResult{Data: result, Error: "not 200"}
32+
return &wasp.Response{Data: result, Error: "not 200"}
3333
}
34-
return &wasp.CallResult{Data: result}
34+
return &wasp.Response{Data: result}
3535
}

examples/profiles/vu.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"time"
66

77
"fmt"
8+
89
"github.com/smartcontractkit/wasp"
910
"nhooyr.io/websocket"
1011
"nhooyr.io/websocket/wsjson"
@@ -56,10 +57,10 @@ func (m *WSVirtualUser) Call(l *wasp.Generator) {
5657
err := wsjson.Read(context.Background(), m.conn, &v)
5758
if err != nil {
5859
l.Log.Error().Err(err).Msg("failed read ws msg from vu")
59-
l.ResponsesChan <- &wasp.CallResult{StartedAt: &startedAt, Data: v, Error: fmt.Sprintf("read error: %s", err.Error())}
60+
l.ResponsesChan <- &wasp.Response{StartedAt: &startedAt, Data: v, Error: fmt.Sprintf("read error: %s", err.Error())}
6061
return
6162
}
62-
l.ResponsesChan <- &wasp.CallResult{StartedAt: &startedAt, Data: v}
63+
l.ResponsesChan <- &wasp.Response{StartedAt: &startedAt, Data: v}
6364
}
6465

6566
func (m *WSVirtualUser) Stop(_ *wasp.Generator) {

examples/simple_rps/gun.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ func NewExampleHTTPGun(target string) *ExampleGun {
2020
}
2121

2222
// Call implements example gun call, assertions on response bodies should be done here
23-
func (m *ExampleGun) Call(l *wasp.Generator) *wasp.CallResult {
23+
func (m *ExampleGun) Call(l *wasp.Generator) *wasp.Response {
2424
var result map[string]interface{}
2525
r, err := m.client.R().
2626
SetResult(&result).
2727
Get(m.target)
2828
if err != nil {
29-
return &wasp.CallResult{Data: result, Error: err.Error()}
29+
return &wasp.Response{Data: result, Error: err.Error()}
3030
}
3131
if r.Status() != "200 OK" {
32-
return &wasp.CallResult{Data: result, Error: "not 200"}
32+
return &wasp.Response{Data: result, Error: "not 200"}
3333
}
34-
return &wasp.CallResult{Data: result}
34+
return &wasp.Response{Data: result}
3535
}

examples/simple_vu/vu.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ func (m *WSVirtualUser) Call(l *wasp.Generator) {
5454
err := wsjson.Read(context.Background(), m.conn, &v)
5555
if err != nil {
5656
l.Log.Error().Err(err).Msg("failed read ws msg from vu")
57-
l.ResponsesChan <- &wasp.CallResult{StartedAt: &startedAt, Error: err.Error(), Failed: true}
57+
l.ResponsesChan <- &wasp.Response{StartedAt: &startedAt, Error: err.Error(), Failed: true}
5858
return
5959
}
60-
l.ResponsesChan <- &wasp.CallResult{StartedAt: &startedAt, Data: v}
60+
l.ResponsesChan <- &wasp.Response{StartedAt: &startedAt, Data: v}
6161
}
6262

6363
func (m *WSVirtualUser) Stop(_ *wasp.Generator) {

go.mod

Lines changed: 88 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ require (
77
github.com/c9s/goprocinfo v0.0.0-20210130143923-c95fcf8c64a8
88
github.com/gin-gonic/gin v1.8.1
99
github.com/go-resty/resty/v2 v2.7.0
10-
github.com/google/uuid v1.3.0
11-
github.com/grafana/dskit v0.0.0-20230201083518-528d8a7d52f2
12-
github.com/grafana/loki v1.6.2-0.20231017135925-990ac685e6a6
10+
github.com/google/uuid v1.3.1
11+
github.com/grafana/dskit v0.0.0-20231120170505-765e343eda4f
12+
// loki main 12/15/2023
13+
github.com/grafana/loki v1.6.2-0.20231215164305-b51b7d7b5503
1314
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58
1415
github.com/pkg/errors v0.9.1
15-
github.com/prometheus/common v0.42.0
16+
github.com/prometheus/common v0.44.0
1617
github.com/pyroscope-io/client v0.6.0
1718
github.com/rs/zerolog v1.29.0
18-
github.com/stretchr/testify v1.8.3
19+
github.com/stretchr/testify v1.8.4
1920
go.uber.org/ratelimit v0.2.0
20-
// google.golang.org/grpc version 1.58.x and above are no longer compatible with loki at 990ac685e6a6
21-
google.golang.org/grpc v1.57.2 // indirect
22-
k8s.io/api v0.26.2
23-
k8s.io/apimachinery v0.26.2
24-
k8s.io/client-go v0.26.2
21+
google.golang.org/grpc v1.59.0 // indirect
22+
k8s.io/api v0.28.1
23+
k8s.io/apimachinery v0.28.1
24+
k8s.io/client-go v0.28.1
2525
nhooyr.io/websocket v1.8.7
2626
)
2727

@@ -32,56 +32,55 @@ require (
3232
github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 // indirect
3333
github.com/armon/go-metrics v0.4.1 // indirect
3434
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
35-
github.com/aws/aws-sdk-go v1.44.217 // indirect
35+
github.com/aws/aws-sdk-go v1.44.321 // indirect
3636
github.com/beorn7/perks v1.0.1 // indirect
37-
github.com/c2h5oh/datasize v0.0.0-20200112174442-28bbd4740fee // indirect
37+
github.com/c2h5oh/datasize v0.0.0-20220606134207-859f65c6625b // indirect
3838
github.com/cespare/xxhash/v2 v2.2.0 // indirect
39-
github.com/coreos/go-semver v0.3.0 // indirect
39+
github.com/coreos/go-semver v0.3.0 // indirect; indirectf
4040
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
41-
github.com/davecgh/go-spew v1.1.1 // indirect
41+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
4242
github.com/dennwc/varint v1.0.0 // indirect
4343
github.com/dustin/go-humanize v1.0.1 // indirect
4444
github.com/edsrzf/mmap-go v1.1.0 // indirect
45-
github.com/emicklei/go-restful/v3 v3.10.1 // indirect
46-
github.com/fatih/color v1.14.1 // indirect
45+
github.com/emicklei/go-restful/v3 v3.10.2 // indirect
46+
github.com/fatih/color v1.15.0 // indirect
4747
github.com/felixge/httpsnoop v1.0.3 // indirect
4848
github.com/fsnotify/fsnotify v1.6.0 // indirect
4949
github.com/gin-contrib/sse v0.1.0 // indirect
5050
github.com/go-kit/log v0.2.1 // indirect
5151
github.com/go-logfmt/logfmt v0.6.0 // indirect
52-
github.com/go-logr/logr v1.2.3 // indirect
52+
github.com/go-logr/logr v1.2.4 // indirect
5353
github.com/go-logr/stdr v1.2.2 // indirect
5454
github.com/go-openapi/analysis v0.21.4 // indirect
55-
github.com/go-openapi/errors v0.20.3 // indirect
56-
github.com/go-openapi/jsonpointer v0.19.6 // indirect
55+
github.com/go-openapi/errors v0.20.4 // indirect
56+
github.com/go-openapi/jsonpointer v0.20.0 // indirect
5757
github.com/go-openapi/jsonreference v0.20.2 // indirect
5858
github.com/go-openapi/loads v0.21.2 // indirect
59-
github.com/go-openapi/spec v0.20.8 // indirect
60-
github.com/go-openapi/strfmt v0.21.3 // indirect
61-
github.com/go-openapi/swag v0.22.3 // indirect
59+
github.com/go-openapi/spec v0.20.9 // indirect
60+
github.com/go-openapi/strfmt v0.21.7 // indirect
61+
github.com/go-openapi/swag v0.22.4 // indirect
6262
github.com/go-openapi/validate v0.22.1 // indirect
63-
github.com/go-playground/locales v0.14.0 // indirect
64-
github.com/go-playground/universal-translator v0.18.0 // indirect
65-
github.com/go-playground/validator/v10 v10.11.1 // indirect
63+
github.com/go-playground/locales v0.14.1 // indirect
64+
github.com/go-playground/universal-translator v0.18.1 // indirect
65+
github.com/go-playground/validator/v10 v10.11.2 // indirect
6666
github.com/goccy/go-json v0.9.11 // indirect
6767
github.com/gogo/googleapis v1.4.0 // indirect
6868
github.com/gogo/protobuf v1.3.2 // indirect
6969
github.com/gogo/status v1.1.1 // indirect
7070
github.com/golang/protobuf v1.5.3 // indirect
7171
github.com/golang/snappy v0.0.4 // indirect
7272
github.com/google/btree v1.1.2 // indirect
73-
github.com/google/gnostic v0.6.9 // indirect
7473
github.com/google/go-cmp v0.5.9 // indirect
7574
github.com/google/gofuzz v1.2.0 // indirect
7675
github.com/gorilla/mux v1.8.0 // indirect
7776
github.com/gosimple/slug v1.13.1 // indirect
7877
github.com/gosimple/unidecode v1.0.1 // indirect
79-
github.com/grafana/loki/pkg/push v0.0.0-20230127102416-571f88bc5765 // indirect
78+
github.com/grafana/loki/pkg/push v0.0.0-20231124142027-e52380921608 // indirect
8079
github.com/grafana/regexp v0.0.0-20221122212121-6b5c0a4cb7fd // indirect
81-
github.com/hashicorp/consul/api v1.20.0 // indirect
80+
github.com/hashicorp/consul/api v1.25.1 // indirect
8281
github.com/hashicorp/errwrap v1.1.0 // indirect
8382
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
84-
github.com/hashicorp/go-hclog v1.4.0 // indirect
83+
github.com/hashicorp/go-hclog v1.5.0 // indirect
8584
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
8685
github.com/hashicorp/go-msgpack v0.5.5 // indirect
8786
github.com/hashicorp/go-multierror v1.1.1 // indirect
@@ -90,19 +89,19 @@ require (
9089
github.com/hashicorp/golang-lru v0.6.0 // indirect
9190
github.com/hashicorp/memberlist v0.5.0 // indirect
9291
github.com/hashicorp/serf v0.10.1 // indirect
93-
github.com/imdario/mergo v0.3.13 // indirect
92+
github.com/imdario/mergo v0.3.16 // indirect
9493
github.com/jmespath/go-jmespath v0.4.0 // indirect
9594
github.com/josharian/intern v1.0.0 // indirect
9695
github.com/jpillora/backoff v1.0.0 // indirect
9796
github.com/json-iterator/go v1.1.12 // indirect
9897
github.com/julienschmidt/httprouter v1.3.0 // indirect
99-
github.com/klauspost/compress v1.16.3 // indirect
98+
github.com/klauspost/compress v1.16.7 // indirect
10099
github.com/leodido/go-urn v1.2.1 // indirect
101100
github.com/mailru/easyjson v0.7.7 // indirect
102101
github.com/mattn/go-colorable v0.1.13 // indirect
103-
github.com/mattn/go-isatty v0.0.17 // indirect
102+
github.com/mattn/go-isatty v0.0.19 // indirect
104103
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
105-
github.com/miekg/dns v1.1.51 // indirect
104+
github.com/miekg/dns v1.1.55 // indirect
106105
github.com/mitchellh/go-homedir v1.1.0 // indirect
107106
github.com/mitchellh/mapstructure v1.5.0 // indirect
108107
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
@@ -115,59 +114,86 @@ require (
115114
github.com/opentracing/opentracing-go v1.2.0 // indirect
116115
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
117116
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
118-
github.com/prometheus/alertmanager v0.25.0 // indirect
119-
github.com/prometheus/client_golang v1.14.0 // indirect
120-
github.com/prometheus/client_model v0.3.0 // indirect
117+
github.com/prometheus/alertmanager v0.26.0 // indirect
118+
github.com/prometheus/client_golang v1.16.0 // indirect
119+
github.com/prometheus/client_model v0.4.0 // indirect
121120
github.com/prometheus/common/sigv4 v0.1.0 // indirect
122-
github.com/prometheus/exporter-toolkit v0.9.1 // indirect
123-
github.com/prometheus/procfs v0.9.0 // indirect
124-
github.com/prometheus/prometheus v0.43.1-0.20230327151049-211ae4f1f0a2 // indirect
121+
github.com/prometheus/exporter-toolkit v0.10.1-0.20230714054209-2f4150c63f97 // indirect
122+
github.com/prometheus/procfs v0.11.0 // indirect
123+
github.com/prometheus/prometheus v0.47.2-0.20231010075449-4b9c19fe5510 // indirect
125124
github.com/pyroscope-io/godeltaprof v0.1.2 // indirect
126125
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 // indirect
127-
github.com/sercand/kuberesolver/v4 v4.0.0 // indirect
128-
github.com/sirupsen/logrus v1.9.0 // indirect
126+
github.com/soheilhy/cmux v0.1.5 // indirect
129127
github.com/spf13/pflag v1.0.5 // indirect
130128
github.com/stretchr/objx v0.5.0 // indirect
131129
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
132130
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
133131
github.com/ugorji/go/codec v1.2.7 // indirect
134-
github.com/weaveworks/common v0.0.0-20230411130259-f7d83a041205 // indirect
135-
github.com/weaveworks/promrus v1.2.0 // indirect
136132
go.etcd.io/etcd/api/v3 v3.5.7 // indirect
137133
go.etcd.io/etcd/client/pkg/v3 v3.5.7 // indirect
138134
go.etcd.io/etcd/client/v3 v3.5.7 // indirect
139-
go.mongodb.org/mongo-driver v1.11.2 // indirect
140-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.40.0 // indirect
141-
go.opentelemetry.io/otel v1.14.0 // indirect
142-
go.opentelemetry.io/otel/metric v0.37.0 // indirect
143-
go.opentelemetry.io/otel/trace v1.14.0 // indirect
144-
go.uber.org/atomic v1.10.0 // indirect
135+
go.mongodb.org/mongo-driver v1.12.0 // indirect
136+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0 // indirect
137+
go.opentelemetry.io/otel v1.18.0 // indirect
138+
go.opentelemetry.io/otel/metric v1.18.0 // indirect
139+
go.opentelemetry.io/otel/trace v1.18.0 // indirect
140+
go.uber.org/atomic v1.11.0 // indirect
145141
go.uber.org/goleak v1.2.1 // indirect
146-
go.uber.org/multierr v1.9.0 // indirect
142+
go.uber.org/multierr v1.11.0 // indirect
147143
go.uber.org/zap v1.21.0 // indirect
148144
golang.org/x/crypto v0.14.0 // indirect
149-
golang.org/x/exp v0.0.0-20230307190834-24139beb5833 // indirect
150-
golang.org/x/mod v0.9.0 // indirect
145+
golang.org/x/exp v0.0.0-20230801115018-d63ba01acd4b // indirect
146+
golang.org/x/mod v0.12.0 // indirect
151147
golang.org/x/net v0.17.0 // indirect
152-
golang.org/x/oauth2 v0.7.0 // indirect
153-
golang.org/x/sync v0.1.0 // indirect
148+
golang.org/x/oauth2 v0.11.0 // indirect
149+
golang.org/x/sync v0.3.0 // indirect
154150
golang.org/x/sys v0.13.0 // indirect
155151
golang.org/x/term v0.13.0 // indirect
156152
golang.org/x/text v0.13.0 // indirect
157153
golang.org/x/time v0.3.0 // indirect
158-
golang.org/x/tools v0.7.0 // indirect
154+
golang.org/x/tools v0.11.0 // indirect
159155
google.golang.org/appengine v1.6.7 // indirect
160-
google.golang.org/genproto v0.0.0-20230526161137-0005af68ea54 // indirect
161-
google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9 // indirect
162-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 // indirect
156+
google.golang.org/genproto v0.0.0-20230913181813-007df8e322eb // indirect
157+
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
158+
google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 // indirect
163159
google.golang.org/protobuf v1.31.0 // indirect
164160
gopkg.in/inf.v0 v0.9.1 // indirect
165161
gopkg.in/yaml.v2 v2.4.0 // indirect
166162
gopkg.in/yaml.v3 v3.0.1 // indirect
167-
k8s.io/klog/v2 v2.90.1 // indirect
168-
k8s.io/kube-openapi v0.0.0-20230303024457-afdc3dddf62d // indirect
169-
k8s.io/utils v0.0.0-20230308161112-d77c459e9343 // indirect
163+
k8s.io/klog/v2 v2.100.1 // indirect
164+
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
165+
k8s.io/utils v0.0.0-20230711102312-30195339c3c7 // indirect
170166
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
171-
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
167+
sigs.k8s.io/structured-merge-diff/v4 v4.3.0 // indirect
172168
sigs.k8s.io/yaml v1.3.0 // indirect
173169
)
170+
171+
require (
172+
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.0 // indirect
173+
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.0 // indirect
174+
github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 // indirect
175+
github.com/AzureAD/microsoft-authentication-library-for-go v1.0.0 // indirect
176+
github.com/Masterminds/goutils v1.1.1 // indirect
177+
github.com/Masterminds/semver/v3 v3.2.0 // indirect
178+
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
179+
github.com/buger/jsonparser v1.1.1 // indirect
180+
github.com/cespare/xxhash v1.1.0 // indirect
181+
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
182+
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb // indirect
183+
github.com/go-redis/redis/v8 v8.11.5 // indirect
184+
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
185+
github.com/google/gnostic-models v0.6.8 // indirect
186+
github.com/grafana/gomemcache v0.0.0-20231023152154-6947259a0586 // indirect
187+
github.com/huandu/xstrings v1.3.3 // indirect
188+
github.com/kylelemons/godebug v1.1.0 // indirect
189+
github.com/mitchellh/copystructure v1.0.0 // indirect
190+
github.com/mitchellh/reflectwalk v1.0.1 // indirect
191+
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
192+
github.com/sercand/kuberesolver/v5 v5.1.1 // indirect
193+
github.com/shopspring/decimal v1.2.0 // indirect
194+
github.com/sony/gobreaker v0.5.0 // indirect
195+
github.com/spf13/cast v1.3.1 // indirect
196+
go.opentelemetry.io/collector/pdata v1.0.0-rcv0015 // indirect
197+
go.opentelemetry.io/collector/semconv v0.81.0 // indirect
198+
go4.org/netipx v0.0.0-20230125063823-8449b0a6169f // indirect
199+
)

0 commit comments

Comments
 (0)