Skip to content

Commit 791abfa

Browse files
committed
[-] upgraded all packages
[patch] use 'any' instead of 'interface{}' [patch] use naughtygopher/errors instead of errors [-] fix info about health API in README
1 parent 947c929 commit 791abfa

5 files changed

Lines changed: 119 additions & 41 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,13 @@ You can find [Go's Open telemetry libraries here](https://opentelemetry.io/docs/
259259
You can clone this repository and try running the application, it'd start an HTTP server listening on port 8080 with the following routes available.
260260

261261
- `/` GET, the root just returns "Hello world" text response
262-
- `/-/health` GET, returns a JSON with some basic info. I like using this path to give out the status of the app, its dependencies etc
263262
- `/users` POST, to create new user
264263
- `/users/:emailID` GET, reads a user from the database given the email id. e.g. http://localhost:8080/users/john.doe@example.com
265264

265+
Health responder server is listening on port 2000, and has the following endpoints:
266+
267+
- `/-/health` GET, returns a JSON with some basic info. I like using this path to give out the status of the app, its dependencies etc
268+
266269
I've used [webgo](https://github.com/naughtygopher/webgo) to setup the HTTP server (I guess I'm biased ¯\\ (ツ) /¯ ). Though there's no compulsion that you do the same, you can pick a framework of your choice! Though stick to the framework's structure if they have any recommendations. Otherwise, goapp is the way to _go_, yay!
267270

268271
How to run?

go.mod

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,62 @@
11
module github.com/naughtygopher/goapp
22

3-
go 1.22.0
3+
go 1.23.0
4+
5+
toolchain go1.24.4
46

57
require (
68
github.com/Masterminds/squirrel v1.5.4
7-
github.com/exaring/otelpgx v0.8.0
9+
github.com/exaring/otelpgx v0.9.3
810
github.com/google/uuid v1.6.0
9-
github.com/jackc/pgx/v5 v5.7.2
10-
github.com/naughtygopher/errors v1.0.1
11+
github.com/jackc/pgx/v5 v5.7.5
12+
github.com/naughtygopher/errors v1.3.1
1113
github.com/naughtygopher/proberesponder v0.6.3
1214
github.com/naughtygopher/webgo/v7 v7.0.5
13-
github.com/prometheus/client_golang v1.20.5
14-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.59.0
15-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0
16-
go.opentelemetry.io/contrib/propagators/b3 v1.34.0
17-
go.opentelemetry.io/otel v1.34.0
18-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0
19-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.34.0
20-
go.opentelemetry.io/otel/exporters/prometheus v0.56.0
21-
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.34.0
22-
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.34.0
23-
go.opentelemetry.io/otel/metric v1.34.0
24-
go.opentelemetry.io/otel/sdk v1.34.0
25-
go.opentelemetry.io/otel/sdk/metric v1.34.0
26-
go.opentelemetry.io/otel/trace v1.34.0
27-
golang.org/x/sync v0.10.0
28-
google.golang.org/grpc v1.70.0
15+
github.com/prometheus/client_golang v1.22.0
16+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.62.0
17+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0
18+
go.opentelemetry.io/contrib/propagators/b3 v1.37.0
19+
go.opentelemetry.io/otel v1.37.0
20+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.37.0
21+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.37.0
22+
go.opentelemetry.io/otel/exporters/prometheus v0.59.0
23+
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.37.0
24+
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.37.0
25+
go.opentelemetry.io/otel/metric v1.37.0
26+
go.opentelemetry.io/otel/sdk v1.37.0
27+
go.opentelemetry.io/otel/sdk/metric v1.37.0
28+
go.opentelemetry.io/otel/trace v1.37.0
29+
golang.org/x/sync v0.15.0
30+
google.golang.org/grpc v1.73.0
2931
)
3032

3133
require (
3234
github.com/beorn7/perks v1.0.1 // indirect
3335
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
36+
github.com/cenkalti/backoff/v5 v5.0.2 // indirect
3437
github.com/cespare/xxhash/v2 v2.3.0 // indirect
3538
github.com/felixge/httpsnoop v1.0.4 // indirect
36-
github.com/go-logr/logr v1.4.2 // indirect
39+
github.com/go-logr/logr v1.4.3 // indirect
3740
github.com/go-logr/stdr v1.2.2 // indirect
38-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.0 // indirect
41+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1 // indirect
3942
github.com/jackc/pgpassfile v1.0.0 // indirect
4043
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
4144
github.com/jackc/puddle/v2 v2.2.2 // indirect
42-
github.com/klauspost/compress v1.17.11 // indirect
45+
github.com/klauspost/compress v1.18.0 // indirect
4346
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect
4447
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
4548
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
46-
github.com/prometheus/client_model v0.6.1 // indirect
47-
github.com/prometheus/common v0.62.0 // indirect
48-
github.com/prometheus/procfs v0.15.1 // indirect
49+
github.com/prometheus/client_model v0.6.2 // indirect
50+
github.com/prometheus/common v0.65.0 // indirect
51+
github.com/prometheus/procfs v0.17.0 // indirect
4952
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
50-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 // indirect
51-
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
52-
golang.org/x/crypto v0.32.0 // indirect
53-
golang.org/x/net v0.34.0 // indirect
54-
golang.org/x/sys v0.29.0 // indirect
55-
golang.org/x/text v0.21.0 // indirect
56-
google.golang.org/genproto/googleapis/api v0.0.0-20250124145028-65684f501c47 // indirect
57-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250124145028-65684f501c47 // indirect
58-
google.golang.org/protobuf v1.36.4 // indirect
53+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.37.0 // indirect
54+
go.opentelemetry.io/proto/otlp v1.7.0 // indirect
55+
golang.org/x/crypto v0.39.0 // indirect
56+
golang.org/x/net v0.41.0 // indirect
57+
golang.org/x/sys v0.33.0 // indirect
58+
golang.org/x/text v0.26.0 // indirect
59+
google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822 // indirect
60+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
61+
google.golang.org/protobuf v1.36.6 // indirect
5962
)

0 commit comments

Comments
 (0)