Skip to content

Commit

Permalink
Merge pull request #44 from pinax-network/feature/print_deployment_id…
Browse files Browse the repository at this point in the history
…_header_on_firehose

print Subgraph deployment id on Firehose connections
  • Loading branch information
sduchesneau authored Apr 22, 2024
2 parents 4877969 + 725decc commit 3e2320c
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 3e2320c

Please sign in to comment.