Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 94ad84d

Browse files
authored
Merge pull request #294 from gotd/dependabot/go_modules/github.com/go-faster/sdk-0.18.0
chore(deps): bump github.com/go-faster/sdk from 0.15.2 to 0.18.0
2 parents 3506361 + 0e4e6cf commit 94ad84d

File tree

7 files changed

+107
-92
lines changed

7 files changed

+107
-92
lines changed

.github/workflows/commitlint.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Commit linter
2+
3+
on:
4+
pull_request:
5+
6+
# Common Go workflows from go faster
7+
# See https://github.com/go-faster/x
8+
jobs:
9+
check:
10+
uses: go-faster/x/.github/workflows/commit.yml@main

.github/workflows/x.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@ on:
1111
jobs:
1212
test:
1313
uses: go-faster/x/.github/workflows/test.yml@main
14-
commit:
15-
uses: go-faster/x/.github/workflows/commit.yml@main
1614
lint:
1715
uses: go-faster/x/.github/workflows/lint.yml@main

.k8s/deployment.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,15 @@ spec:
8080
memory: 2G
8181
env:
8282
- name: GOMEMLIMIT
83-
value: "2048MiB"
83+
value: "512MiB"
8484
- name: GOMAXPROCS
8585
value: "3"
8686
- name: OTEL_EXPORTER_OTLP_PROTOCOL
8787
value: "grpc"
88-
- name: OTEL_METRICS_EXPORTER
89-
value: "otlp"
90-
- name: OTEL_LOGS_EXPORTER
91-
value: "otlp"
92-
- name: PPROF_ADDR
93-
value: "0.0.0.0:8090"
9488
- name: OTEL_RESOURCE_ATTRIBUTES
9589
value: "service.name=gotd.bot"
9690
- name: OTEL_LOG_LEVEL
9791
value: "DEBUG"
98-
- name: OTEL_TRACES_EXPORTER
99-
value: "otlp"
10092
- name: OTEL_EXPORTER_OTLP_ENDPOINT
10193
value: "http://otel-collector.monitoring.svc.cluster.local:4317"
10294
- name: HOME

cmd/bot/app.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ type App struct {
6666
srv *oas.Server
6767
}
6868

69-
func InitApp(m *app.Metrics, mm *iapp.Metrics, logger *zap.Logger) (_ *App, rerr error) {
69+
func InitApp(m *app.Telemetry, mm *iapp.Metrics, logger *zap.Logger) (_ *App, rerr error) {
7070
// Reading app id from env (never hardcode it!).
7171
appID, err := strconv.Atoi(os.Getenv("APP_ID"))
7272
if err != nil {
@@ -339,7 +339,7 @@ func (b *App) Run(ctx context.Context) error {
339339
return group.Wait()
340340
}
341341

342-
func runBot(ctx context.Context, m *app.Metrics, mm *iapp.Metrics, logger *zap.Logger) (rerr error) {
342+
func runBot(ctx context.Context, m *app.Telemetry, mm *iapp.Metrics, logger *zap.Logger) (rerr error) {
343343
a, err := InitApp(m, mm, logger)
344344
if err != nil {
345345
return errors.Wrap(err, "initialize")

cmd/bot/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
func main() {
16-
app.Run(func(ctx context.Context, lg *zap.Logger, m *app.Metrics) error {
16+
app.Run(func(ctx context.Context, lg *zap.Logger, m *app.Telemetry) error {
1717
defer func() {
1818
if r := recover(); r != nil {
1919
lg.Error("panic", zap.Any("recover", r))

go.mod

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/cockroachdb/pebble v1.1.3
1212
github.com/go-faster/errors v0.7.1
1313
github.com/go-faster/jx v1.1.0
14-
github.com/go-faster/sdk v0.15.2
14+
github.com/go-faster/sdk v0.18.0
1515
github.com/go-redis/redis/v8 v8.11.5
1616
github.com/google/go-github/v42 v42.0.0
1717
github.com/google/uuid v1.6.0
@@ -91,7 +91,7 @@ require (
9191
github.com/google/go-querystring v1.1.0 // indirect
9292
github.com/gotd/ige v0.2.2 // indirect
9393
github.com/gotd/neo v0.1.5 // indirect
94-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0 // indirect
94+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 // indirect
9595
github.com/hashicorp/hcl/v2 v2.17.0 // indirect
9696
github.com/jackc/pgpassfile v1.0.0 // indirect
9797
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
@@ -112,7 +112,7 @@ require (
112112
github.com/pmezard/go-difflib v1.0.0 // indirect
113113
github.com/prometheus/client_golang v1.20.5 // indirect
114114
github.com/prometheus/client_model v0.6.1 // indirect
115-
github.com/prometheus/common v0.60.1 // indirect
115+
github.com/prometheus/common v0.61.0 // indirect
116116
github.com/prometheus/procfs v0.15.1 // indirect
117117
github.com/rogpeppe/go-internal v1.13.1 // indirect
118118
github.com/segmentio/asm v1.2.0 // indirect
@@ -121,39 +121,44 @@ require (
121121
github.com/zclconf/go-cty v1.13.2 // indirect
122122
go.etcd.io/bbolt v1.3.11 // indirect
123123
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
124-
go.opentelemetry.io/collector/pdata v1.20.0 // indirect
125-
go.opentelemetry.io/contrib/instrumentation/runtime v0.57.0 // indirect
126-
go.opentelemetry.io/contrib/propagators/autoprop v0.57.0 // indirect
127-
go.opentelemetry.io/contrib/propagators/aws v1.32.0 // indirect
128-
go.opentelemetry.io/contrib/propagators/b3 v1.32.0 // indirect
129-
go.opentelemetry.io/contrib/propagators/jaeger v1.32.0 // indirect
130-
go.opentelemetry.io/contrib/propagators/ot v1.32.0 // indirect
131-
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.32.0 // indirect
132-
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.32.0 // indirect
133-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.32.0 // indirect
134-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.32.0 // indirect
135-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.32.0 // indirect
136-
go.opentelemetry.io/otel/exporters/prometheus v0.54.0 // indirect
137-
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.32.0 // indirect
138-
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.32.0 // indirect
139-
go.opentelemetry.io/otel/sdk v1.32.0 // indirect
140-
go.opentelemetry.io/otel/sdk/metric v1.32.0 // indirect
141-
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
124+
go.opentelemetry.io/contrib/bridges/otelzap v0.8.0 // indirect
125+
go.opentelemetry.io/contrib/instrumentation/runtime v0.58.0 // indirect
126+
go.opentelemetry.io/contrib/propagators/autoprop v0.58.0 // indirect
127+
go.opentelemetry.io/contrib/propagators/aws v1.33.0 // indirect
128+
go.opentelemetry.io/contrib/propagators/b3 v1.33.0 // indirect
129+
go.opentelemetry.io/contrib/propagators/jaeger v1.33.0 // indirect
130+
go.opentelemetry.io/contrib/propagators/ot v1.33.0 // indirect
131+
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.9.0 // indirect
132+
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.9.0 // indirect
133+
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.33.0 // indirect
134+
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.33.0 // indirect
135+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 // indirect
136+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0 // indirect
137+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.33.0 // indirect
138+
go.opentelemetry.io/otel/exporters/prometheus v0.55.0 // indirect
139+
go.opentelemetry.io/otel/exporters/stdout/stdoutlog v0.9.0 // indirect
140+
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.33.0 // indirect
141+
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.33.0 // indirect
142+
go.opentelemetry.io/otel/log v0.9.0 // indirect
143+
go.opentelemetry.io/otel/sdk v1.33.0 // indirect
144+
go.opentelemetry.io/otel/sdk/log v0.9.0 // indirect
145+
go.opentelemetry.io/otel/sdk/metric v1.33.0 // indirect
146+
go.opentelemetry.io/proto/otlp v1.4.0 // indirect
142147
go.uber.org/atomic v1.11.0 // indirect
143148
go.uber.org/automaxprocs v1.6.0 // indirect
144149
go.uber.org/ratelimit v0.3.1 // indirect
145150
golang.org/x/crypto v0.31.0 // indirect
146151
golang.org/x/exp v0.0.0-20230725093048-515e97ebf090 // indirect
147152
golang.org/x/mod v0.22.0 // indirect
148153
golang.org/x/net v0.33.0 // indirect
149-
golang.org/x/sys v0.28.0 // indirect
154+
golang.org/x/sys v0.29.0 // indirect
150155
golang.org/x/text v0.21.0 // indirect
151156
golang.org/x/time v0.8.0 // indirect
152157
golang.org/x/tools v0.28.0 // indirect
153-
google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 // indirect
154-
google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 // indirect
155-
google.golang.org/grpc v1.68.0 // indirect
156-
google.golang.org/protobuf v1.35.1 // indirect
158+
google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 // indirect
159+
google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect
160+
google.golang.org/grpc v1.69.2 // indirect
161+
google.golang.org/protobuf v1.35.2 // indirect
157162
gopkg.in/yaml.v2 v2.4.0 // indirect
158163
gopkg.in/yaml.v3 v3.0.1 // indirect
159164
rsc.io/qr v0.2.0 // indirect

0 commit comments

Comments
 (0)