Skip to content

Commit

Permalink
print Subgraph deployment id on Firehose connections
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoell committed Apr 22, 2024
1 parent 4877969 commit 725decc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stream_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ func (sf *StreamFactory) New(
zap.String("user_id", auth.UserID()),
zap.String("real_ip", auth.RealIP()),
)
if auth["x-deployment-id"] != "" {
fields = append(fields, zap.String("deployment_id", auth["x-deployment-id"]))
}
}

reqLogger.Info("processing incoming blocks request", fields...)
Expand Down

0 comments on commit 725decc

Please sign in to comment.