Skip to content

Commit

Permalink
Update code to work with latest Goa (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael authored Oct 26, 2023
1 parent fef99d6 commit 141b380
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/weather/docker-compose/docker-compose-grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
- ./agent/config:/etc/agent-config
- /var/log:/var/log
entrypoint:
- /bin/agent
- /bin/grafana-agent
- -config.file=/etc/agent-config/agent.yaml
- -prometheus.wal-directory=/tmp/agent/wal
ports:
Expand Down
2 changes: 1 addition & 1 deletion example/weather/services/front/cmd/front/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ func main() {
endpoints.Use(log.Endpoint)

// 5. Create transport
debug.MountDebugLogEnabler(debug.Adapt(mux))
mux.Use(metrics.HTTP(ctx))
debug.MountDebugLogEnabler(debug.Adapt(mux))
handler := trace.HTTP(ctx)(mux) // 4. Trace request
handler = goahttpmiddleware.LogContext(log.AsGoaMiddlewareLogger)(handler) // 3. Log request and response
handler = log.HTTP(ctx)(handler) // 2. Add logger to request context (with request ID key)
Expand Down

0 comments on commit 141b380

Please sign in to comment.