Skip to content

Commit 0638bfb

Browse files
committed
Bump versions to latest
go v1.22 k6 v0.49.0 otlp v1.1.0
1 parent 7cd1aee commit 0638bfb

File tree

9 files changed

+119
-415
lines changed

9 files changed

+119
-415
lines changed

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
steps:
1717
- uses: actions/setup-go@v3
1818
with:
19-
go-version: '1.20'
19+
go-version: '1.22'
2020
- uses: actions/checkout@v3
2121
- name: golangci-lint
2222
uses: golangci/golangci-lint-action@v3
2323
with:
24-
version: v1.51.2
24+
version: v1.56.2
2525
only-new-issues: true

.golangci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ linters:
1515
- rowserrcheck # generics
1616
- structcheck # generics
1717
- wastedassign # generics
18+
- gofumpt # generics
1819

1920
issues:
2021
exclude-rules:

generator.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package generator
22

33
import (
4+
"log/slog"
45
"math/rand"
56
"time"
67

7-
"github.com/sirupsen/logrus"
88
commonpb "go.opentelemetry.io/proto/otlp/common/v1"
99
"google.golang.org/protobuf/proto"
1010
)
@@ -32,7 +32,7 @@ func (g *Generator) ExportLogsServiceRequest(config LogConfig) []byte {
3232

3333
data, err := proto.Marshal(request)
3434
if err != nil {
35-
logrus.Errorf("Failed to marshal ExportLogsServiceRequest: %v", err)
35+
slog.Error("Failed to marshal ExportLogsServiceRequest", "error", err)
3636

3737
return nil
3838
}
@@ -45,7 +45,7 @@ func (g *Generator) ExportMetricsServiceRequest(config MetricConfig) []byte {
4545

4646
data, err := proto.Marshal(request)
4747
if err != nil {
48-
logrus.Errorf("Failed to marshal ExportMetricsServiceRequest: %v", err)
48+
slog.Error("Failed to marshal ExportMetricsServiceRequest", "error", err)
4949

5050
return nil
5151
}
@@ -58,7 +58,7 @@ func (g *Generator) ExportTraceServiceRequest(config TraceConfig) []byte {
5858

5959
data, err := proto.Marshal(request)
6060
if err != nil {
61-
logrus.Errorf("Failed to marshal ExportTraceServiceRequest: %v", err)
61+
slog.Error("Failed to marshal ExportTraceServiceRequest", "error", err)
6262

6363
return nil
6464
}

go.mod

+27-16
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,47 @@
11
module github.com/thmshmm/xk6-opentelemetry
22

3-
go 1.19
3+
go 1.22
44

55
require (
6-
github.com/sirupsen/logrus v1.9.0
7-
go.k6.io/k6 v0.45.1
8-
go.opentelemetry.io/proto/otlp v0.19.0
9-
google.golang.org/protobuf v1.31.0
6+
go.k6.io/k6 v0.49.0
7+
go.opentelemetry.io/proto/otlp v1.1.0
8+
google.golang.org/protobuf v1.33.0
109
)
1110

1211
require (
12+
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
1313
github.com/dlclark/regexp2 v1.9.0 // indirect
14-
github.com/dop251/goja v0.0.0-20230531210528-d7324b2d74f7 // indirect
15-
github.com/fatih/color v1.15.0 // indirect
14+
github.com/dop251/goja v0.0.0-20231027120936-b396bb4c349d // indirect
15+
github.com/fatih/color v1.16.0 // indirect
16+
github.com/go-logr/logr v1.3.0 // indirect
17+
github.com/go-logr/stdr v1.2.2 // indirect
1618
github.com/go-sourcemap/sourcemap v2.1.4-0.20211119122758-180fcef48034+incompatible // indirect
1719
github.com/golang/protobuf v1.5.3 // indirect
18-
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect
19-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
20+
github.com/google/pprof v0.0.0-20230728192033-2ba5b33183c6 // indirect
21+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
2022
github.com/josharian/intern v1.0.0 // indirect
2123
github.com/mailru/easyjson v0.7.7 // indirect
2224
github.com/mattn/go-colorable v0.1.13 // indirect
23-
github.com/mattn/go-isatty v0.0.18 // indirect
25+
github.com/mattn/go-isatty v0.0.20 // indirect
2426
github.com/mstoykov/atlas v0.0.0-20220811071828-388f114305dd // indirect
2527
github.com/onsi/ginkgo v1.16.5 // indirect
2628
github.com/onsi/gomega v1.27.2 // indirect
2729
github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e // indirect
30+
github.com/sirupsen/logrus v1.9.3 // indirect
2831
github.com/spf13/afero v1.1.2 // indirect
29-
golang.org/x/net v0.10.0 // indirect
30-
golang.org/x/sys v0.8.0 // indirect
31-
golang.org/x/text v0.9.0 // indirect
32-
golang.org/x/time v0.3.0 // indirect
33-
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect
34-
google.golang.org/grpc v1.55.0 // indirect
32+
go.opentelemetry.io/otel v1.21.0 // indirect
33+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 // indirect
34+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0 // indirect
35+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0 // indirect
36+
go.opentelemetry.io/otel/metric v1.21.0 // indirect
37+
go.opentelemetry.io/otel/sdk v1.21.0 // indirect
38+
go.opentelemetry.io/otel/trace v1.21.0 // indirect
39+
golang.org/x/net v0.19.0 // indirect
40+
golang.org/x/sys v0.15.0 // indirect
41+
golang.org/x/text v0.14.0 // indirect
42+
golang.org/x/time v0.5.0 // indirect
43+
google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 // indirect
44+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917 // indirect
45+
google.golang.org/grpc v1.60.1 // indirect
3546
gopkg.in/guregu/null.v3 v3.3.0 // indirect
3647
)

0 commit comments

Comments
 (0)