pull/37329/head
Xuan Wang 4 months ago
parent 60dd7835a5
commit c579022529
  1. 3
      src/python/grpcio_observability/grpc_observability/client_call_tracer.cc
  2. 4
      src/python/grpcio_observability/grpc_observability/python_observability_context.h

@ -322,8 +322,7 @@ void PythonOpenCensusCallTracer::PythonOpenCensusCallAttemptTracer::
void PythonOpenCensusCallTracer::PythonOpenCensusCallAttemptTracer::RecordEnd(
const gpr_timespec& /*latency*/) {
if (PythonCensusStatsEnabled()) {
context_.Labels().emplace_back(kClientMethod,
parent_->method_);
context_.Labels().emplace_back(kClientMethod, parent_->method_);
context_.Labels().emplace_back(kClientStatus,
StatusCodeToString(status_code_));
RecordIntMetric(kRpcClientSentMessagesPerRpcMeasureName,

@ -280,9 +280,7 @@ inline std::string GetMethod(const char* method) {
return std::string(absl::StripPrefix(method, "/"));
}
inline std::string GetTarget(const char* target) {
return std::string(target);
}
inline std::string GetTarget(const char* target) { return std::string(target); }
// Fills a pre-allocated buffer with the value for the grpc-trace-bin header.
// The buffer must be at least kGrpcTraceBinHeaderLen bytes long.

Loading…
Cancel
Save