Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b3ff7c6d
Commit
b3ff7c6d
authored
May 21, 2020
by
Changzheng Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify client name when sending requests to Gitaly
parent
a87438cf
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
5 deletions
+82
-5
go.mod
go.mod
+1
-1
go.sum
go.sum
+75
-2
internal/gitaly/gitaly.go
internal/gitaly/gitaly.go
+6
-2
No files found.
go.mod
View file @
b3ff7c6d
...
...
@@ -22,7 +22,7 @@ require (
github.com/sirupsen/logrus v1.3.0
github.com/stretchr/testify v1.5.1
gitlab.com/gitlab-org/gitaly v1.74.0
gitlab.com/gitlab-org/labkit v0.0.0-20200
327153541-fac94cb428e6
gitlab.com/gitlab-org/labkit v0.0.0-20200
507062444-0149780c759d
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa
golang.org/x/tools v0.0.0-20200117161641-43d50277825c
...
...
go.sum
View file @
b3ff7c6d
This diff is collapsed.
Click to expand it.
internal/gitaly/gitaly.go
View file @
b3ff7c6d
...
...
@@ -158,7 +158,9 @@ func newConnection(server Server) (*grpc.ClientConn, error) {
grpc_middleware
.
ChainStreamClient
(
grpctracing
.
StreamClientTracingInterceptor
(),
grpc_prometheus
.
StreamClientInterceptor
,
grpccorrelation
.
StreamClientCorrelationInterceptor
(),
grpccorrelation
.
StreamClientCorrelationInterceptor
(
grpccorrelation
.
WithClientName
(
"gitlab-workhorse"
),
),
),
),
...
...
@@ -166,7 +168,9 @@ func newConnection(server Server) (*grpc.ClientConn, error) {
grpc_middleware
.
ChainUnaryClient
(
grpctracing
.
UnaryClientTracingInterceptor
(),
grpc_prometheus
.
UnaryClientInterceptor
,
grpccorrelation
.
UnaryClientCorrelationInterceptor
(),
grpccorrelation
.
UnaryClientCorrelationInterceptor
(
grpccorrelation
.
WithClientName
(
"gitlab-workhorse"
),
),
),
),
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment