Skip to content

Commit 446cb83

Browse files
committed
Upgrade go-sdk to commit 05d50a0
1 parent b04db95 commit 446cb83

File tree

13 files changed

+181
-248
lines changed

13 files changed

+181
-248
lines changed

boundaries/api/api-gateway/go.mod

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ require (
1010
github.com/graph-gophers/graphql-go v1.8.0
1111
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3
1212
github.com/segmentio/encoding v0.5.3
13-
github.com/shortlink-org/go-sdk/auth v0.0.0-20251124210328-ce2c639c8b61
14-
github.com/shortlink-org/go-sdk/config v0.0.0-20251124210328-ce2c639c8b61
15-
github.com/shortlink-org/go-sdk/db v0.0.0-20251124210328-ce2c639c8b61
16-
github.com/shortlink-org/go-sdk/graceful_shutdown v0.0.0-20251124210328-ce2c639c8b61
17-
github.com/shortlink-org/go-sdk/grpc v0.0.0-20251124210328-ce2c639c8b61
18-
github.com/shortlink-org/go-sdk/http v0.0.0-20251124210328-ce2c639c8b61
19-
github.com/shortlink-org/go-sdk/logger v0.0.0-20251124210328-ce2c639c8b61
20-
github.com/shortlink-org/go-sdk/notify v0.0.0-20251124210328-ce2c639c8b61
21-
github.com/shortlink-org/go-sdk/observability v0.0.0-20251124210328-ce2c639c8b61
13+
github.com/shortlink-org/go-sdk/auth v0.0.0-20251125180156-05d50a07cca8
14+
github.com/shortlink-org/go-sdk/config v0.0.0-20251125180156-05d50a07cca8
15+
github.com/shortlink-org/go-sdk/db v0.0.0-20251125180156-05d50a07cca8
16+
github.com/shortlink-org/go-sdk/graceful_shutdown v0.0.0-20251125180156-05d50a07cca8
17+
github.com/shortlink-org/go-sdk/grpc v0.0.0-20251125180156-05d50a07cca8
18+
github.com/shortlink-org/go-sdk/http v0.0.0-20251125180156-05d50a07cca8
19+
github.com/shortlink-org/go-sdk/logger v0.0.0-20251125180156-05d50a07cca8
20+
github.com/shortlink-org/go-sdk/notify v0.0.0-20251125180156-05d50a07cca8
21+
github.com/shortlink-org/go-sdk/observability v0.0.0-20251125180156-05d50a07cca8
2222
github.com/spf13/viper v1.21.0
2323
github.com/uptrace/opentelemetry-go-extra/otelgraphql v0.3.2
2424
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0
@@ -96,7 +96,7 @@ require (
9696
github.com/sagikazarmark/locafero v0.12.0 // indirect
9797
github.com/samber/lo v1.52.0 // indirect
9898
github.com/segmentio/asm v1.2.0 // indirect
99-
github.com/shortlink-org/go-sdk/flight_trace v0.0.0-20251124210328-ce2c639c8b61 // indirect
99+
github.com/shortlink-org/go-sdk/flight_trace v0.0.0-20251125180156-05d50a07cca8 // indirect
100100
github.com/spf13/afero v1.15.0 // indirect
101101
github.com/spf13/cast v1.10.0 // indirect
102102
github.com/spf13/pflag v1.0.10 // indirect

boundaries/api/api-gateway/go.sum

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

boundaries/bff/go.mod

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,21 @@ require (
1010
github.com/go-chi/render v1.0.3
1111
github.com/google/wire v0.7.0
1212
github.com/oapi-codegen/runtime v1.1.2
13-
github.com/prometheus/client_golang v1.23.2
1413
github.com/segmentio/encoding v0.5.3
15-
github.com/shortlink-org/go-sdk/auth v0.0.0-20251124210328-ce2c639c8b61
16-
github.com/shortlink-org/go-sdk/cache v0.0.0-20251124210328-ce2c639c8b61
17-
github.com/shortlink-org/go-sdk/config v0.0.0-20251124210328-ce2c639c8b61
18-
github.com/shortlink-org/go-sdk/context v0.0.0-20251124210328-ce2c639c8b61
19-
github.com/shortlink-org/go-sdk/flags v0.0.0-20251124210328-ce2c639c8b61
20-
github.com/shortlink-org/go-sdk/flight_trace v0.0.0-20251124210328-ce2c639c8b61
21-
github.com/shortlink-org/go-sdk/graceful_shutdown v0.0.0-20251124210328-ce2c639c8b61
22-
github.com/shortlink-org/go-sdk/grpc v0.0.0-20251124210328-ce2c639c8b61
23-
github.com/shortlink-org/go-sdk/http v0.0.0-20251124210328-ce2c639c8b61
24-
github.com/shortlink-org/go-sdk/logger v0.0.0-20251124210328-ce2c639c8b61
25-
github.com/shortlink-org/go-sdk/observability v0.0.0-20251124210328-ce2c639c8b61
14+
github.com/shortlink-org/go-sdk/auth v0.0.0-20251125180156-05d50a07cca8
15+
github.com/shortlink-org/go-sdk/cache v0.0.0-20251125180156-05d50a07cca8
16+
github.com/shortlink-org/go-sdk/config v0.0.0-20251125180156-05d50a07cca8
17+
github.com/shortlink-org/go-sdk/context v0.0.0-20251125180156-05d50a07cca8
18+
github.com/shortlink-org/go-sdk/flags v0.0.0-20251125180156-05d50a07cca8
19+
github.com/shortlink-org/go-sdk/flight_trace v0.0.0-20251125180156-05d50a07cca8
20+
github.com/shortlink-org/go-sdk/graceful_shutdown v0.0.0-20251125180156-05d50a07cca8
21+
github.com/shortlink-org/go-sdk/grpc v0.0.0-20251125180156-05d50a07cca8
22+
github.com/shortlink-org/go-sdk/http v0.0.0-20251125180156-05d50a07cca8
23+
github.com/shortlink-org/go-sdk/logger v0.0.0-20251125180156-05d50a07cca8
24+
github.com/shortlink-org/go-sdk/observability v0.0.0-20251125180156-05d50a07cca8
2625
github.com/spf13/viper v1.21.0
2726
github.com/stretchr/testify v1.11.1
2827
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0
29-
go.opentelemetry.io/otel/sdk/metric v1.38.0
3028
go.opentelemetry.io/otel/trace v1.38.0
3129
golang.org/x/sync v0.18.0
3230
golang.org/x/text v0.31.0
@@ -98,6 +96,7 @@ require (
9896
github.com/pkg/errors v0.9.1 // indirect
9997
github.com/planetscale/vtprotobuf v0.6.1-0.20241121165744-79df5c4772f2 // indirect
10098
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
99+
github.com/prometheus/client_golang v1.23.2 // indirect
101100
github.com/prometheus/client_model v0.6.2 // indirect
102101
github.com/prometheus/common v0.67.4 // indirect
103102
github.com/prometheus/otlptranslator v1.0.0 // indirect
@@ -109,7 +108,7 @@ require (
109108
github.com/sagikazarmark/locafero v0.12.0 // indirect
110109
github.com/samber/lo v1.52.0 // indirect
111110
github.com/segmentio/asm v1.2.0 // indirect
112-
github.com/shortlink-org/go-sdk/db v0.0.0-20251124210328-ce2c639c8b61 // indirect
111+
github.com/shortlink-org/go-sdk/db v0.0.0-20251125180156-05d50a07cca8 // indirect
113112
github.com/spf13/afero v1.15.0 // indirect
114113
github.com/spf13/cast v1.10.0 // indirect
115114
github.com/spf13/cobra v1.10.1 // indirect
@@ -136,6 +135,7 @@ require (
136135
go.opentelemetry.io/otel/exporters/prometheus v0.60.0 // indirect
137136
go.opentelemetry.io/otel/metric v1.38.0 // indirect
138137
go.opentelemetry.io/otel/sdk v1.38.0 // indirect
138+
go.opentelemetry.io/otel/sdk/metric v1.38.0 // indirect
139139
go.opentelemetry.io/proto/otlp v1.7.1 // indirect
140140
go.yaml.in/yaml/v2 v2.4.3 // indirect
141141
go.yaml.in/yaml/v3 v3.0.4 // indirect

boundaries/bff/go.sum

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

boundaries/bff/internal/di/wire.go

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ import (
1212
"context"
1313

1414
"github.com/google/wire"
15-
"github.com/prometheus/client_golang/prometheus"
1615
shortctx "github.com/shortlink-org/go-sdk/context"
1716
"github.com/shortlink-org/go-sdk/flags"
1817
"github.com/shortlink-org/go-sdk/flight_trace"
1918
"github.com/shortlink-org/go-sdk/logger"
2019
"github.com/shortlink-org/go-sdk/observability/tracing"
21-
"go.opentelemetry.io/otel/sdk/metric"
2220
"go.opentelemetry.io/otel/trace"
2321
"golang.org/x/text/message"
2422
"google.golang.org/grpc"
@@ -73,8 +71,7 @@ var BFFWebServiceSet = wire.NewSet(
7371
DefaultSet,
7472
permission.New,
7573
i18n.New,
76-
NewPrometheusRegistry,
77-
NewMeterProvider,
74+
wire.FieldsOf(new(*metrics.Monitoring), "Prometheus", "Metrics"),
7875

7976
// Delivery
8077
rpc.InitServer,
@@ -92,14 +89,6 @@ var BFFWebServiceSet = wire.NewSet(
9289
NewBFFWebService,
9390
)
9491

95-
func NewPrometheusRegistry(metrics *metrics.Monitoring) *prometheus.Registry {
96-
return metrics.Prometheus
97-
}
98-
99-
func NewMeterProvider(metrics *metrics.Monitoring) *metric.MeterProvider {
100-
return metrics.Metrics
101-
}
102-
10392
func NewRPCClient(
10493
ctx context.Context,
10594
log logger.Logger,

0 commit comments

Comments
 (0)