Skip to content

Commit

Permalink
Bump Goa, use clue's request ID ctx key
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael committed Sep 6, 2022
1 parent 771f020 commit b4ff509
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.9.0
go.opentelemetry.io/otel/sdk v1.9.0
go.opentelemetry.io/otel/trace v1.9.0
goa.design/goa/v3 v3.8.4
goa.design/goa/v3 v3.8.5
goa.design/model v1.7.9
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035
google.golang.org/grpc v1.49.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/
go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
goa.design/goa/v3 v3.8.4 h1:kQw/uqfoBpLUrRoMGk26xZFATs05vLavhMGKDc8kusA=
goa.design/goa/v3 v3.8.4/go.mod h1:WVTAOi9ypvh2MOux4g6LKohAk3Vomv5r0A//fZrnLO8=
goa.design/goa/v3 v3.8.5 h1:Y0/6ZwmwZftqQBOlBANU9mP4R+h2gIQUyfQMEs98pGU=
goa.design/goa/v3 v3.8.5/go.mod h1:+tEl2wNEL54TMAQQ5Mu5il1zl20/7k89XMUv8hVJfa8=
goa.design/model v1.7.9 h1:frDkT+9aKQLPf0ri32PO7HtQ1nWc7azNZFI3GhMW3Mc=
goa.design/model v1.7.9/go.mod h1:T6VhpjtO7hwRNEVRFjafN6bEqfuy+GqUh+ZrhlBN8/M=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
Expand Down
5 changes: 5 additions & 0 deletions log/adapt.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ type (
}
)

// Make Goa use clue's request ID context key.
func init() {
middleware.RequestIDKey = RequestIDKey
}

// AsGoaMiddlewareLogger creates a Goa middleware compatible logger that can be used when
// configuring Goa HTTP or gRPC servers.
//
Expand Down
7 changes: 6 additions & 1 deletion staticcheck.conf
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
dot_import_whitelist = ["goa.design/goa/v3/dsl", "goa.design/model/dsl", "goa.design/clue/example/weather/design"]
checks = ["-SA1029"] # SA1029: should not use built-in type string as key for value; define your own type to avoid collisions
dot_import_whitelist = [
"goa.design/goa/v3/dsl",
"goa.design/model/dsl",
"goa.design/clue/example/weather/design",
]

0 comments on commit b4ff509

Please sign in to comment.