Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
cf39e948
Commit
cf39e948
authored
9 years ago
by
Alistair Veitch
Browse files
Options
Downloads
Patches
Plain Diff
Server side census context plumbing for c++
parent
5c575dd6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/grpc++/server_context.h
+3
-0
3 additions, 0 deletions
include/grpc++/server_context.h
src/cpp/server/server_context.cc
+5
-0
5 additions, 0 deletions
src/cpp/server/server_context.cc
with
8 additions
and
0 deletions
include/grpc++/server_context.h
+
3
−
0
View file @
cf39e948
...
...
@@ -46,6 +46,7 @@
struct
gpr_timespec
;
struct
grpc_metadata
;
struct
grpc_call
;
struct
census_context
;
namespace
grpc
{
...
...
@@ -116,6 +117,8 @@ class ServerContext {
std
::
shared_ptr
<
const
AuthContext
>
auth_context
()
const
;
const
census_context
*
get_census_context
()
const
;
private
:
friend
class
::
grpc
::
testing
::
InteropContextInspector
;
friend
class
::
grpc
::
Server
;
...
...
This diff is collapsed.
Click to expand it.
src/cpp/server/server_context.cc
+
5
−
0
View file @
cf39e948
...
...
@@ -39,6 +39,7 @@
#include
<grpc++/impl/sync.h>
#include
<grpc++/time.h>
#include
"src/core/census/grpc_context.h"
#include
"src/core/channel/compress_filter.h"
#include
"src/cpp/common/create_auth_context.h"
...
...
@@ -179,4 +180,8 @@ std::shared_ptr<const AuthContext> ServerContext::auth_context() const {
return
auth_context_
;
}
const
census_context
*
ServerContext
::
get_census_context
()
const
{
return
grpc_census_call_get_context
(
call_
);
}
}
// namespace grpc
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment