Viam C++ SDK current
Loading...
Searching...
No Matches
grpc_context_observer.hpp
1#pragma once
2
3#include <viam/sdk/common/grpc_fwd.hpp>
4
6
7namespace viam {
8namespace sdk {
9
11 public:
12 explicit Enable(const GrpcServerContext& context);
13 ~Enable();
14};
15
16} // namespace sdk
17} // namespace viam
RAII helper for activating the gRPC context observer for the current thread.
Definition grpc_context_observer.hpp:10
const GrpcServerContext & context() const noexcept
Returns the underlying gRPC server context.
Provides access to gRPC server context information during request processing.