Skip to content

Commit

Permalink
Bump versions to latest
Browse files Browse the repository at this point in the history
go v1.22
k6 v0.49.0
otlp v1.1.0
  • Loading branch information
thmshmm committed Mar 15, 2024
1 parent 7cd1aee commit 0638bfb
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 415 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: '1.20'
go-version: '1.22'
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
version: v1.56.2
only-new-issues: true
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ linters:
- rowserrcheck # generics
- structcheck # generics
- wastedassign # generics
- gofumpt # generics

issues:
exclude-rules:
Expand Down
8 changes: 4 additions & 4 deletions generator.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package generator

import (
"log/slog"
"math/rand"
"time"

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

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

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

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

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

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

return nil
}
Expand Down
43 changes: 27 additions & 16 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,36 +1,47 @@
module github.com/thmshmm/xk6-opentelemetry

go 1.19
go 1.22

require (
github.com/sirupsen/logrus v1.9.0
go.k6.io/k6 v0.45.1
go.opentelemetry.io/proto/otlp v0.19.0
google.golang.org/protobuf v1.31.0
go.k6.io/k6 v0.49.0
go.opentelemetry.io/proto/otlp v1.1.0
google.golang.org/protobuf v1.33.0
)

require (
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/dlclark/regexp2 v1.9.0 // indirect
github.com/dop251/goja v0.0.0-20230531210528-d7324b2d74f7 // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/dop251/goja v0.0.0-20231027120936-b396bb4c349d // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-sourcemap/sourcemap v2.1.4-0.20211119122758-180fcef48034+incompatible // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
github.com/google/pprof v0.0.0-20230728192033-2ba5b33183c6 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.18 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mstoykov/atlas v0.0.0-20220811071828-388f114305dd // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.27.2 // indirect
github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/afero v1.1.2 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect
google.golang.org/grpc v1.55.0 // indirect
go.opentelemetry.io/otel v1.21.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0 // indirect
go.opentelemetry.io/otel/metric v1.21.0 // indirect
go.opentelemetry.io/otel/sdk v1.21.0 // indirect
go.opentelemetry.io/otel/trace v1.21.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917 // indirect
google.golang.org/grpc v1.60.1 // indirect
gopkg.in/guregu/null.v3 v3.3.0 // indirect
)
Loading

0 comments on commit 0638bfb

Please sign in to comment.