summaryrefslogtreecommitdiff
path: root/grpc/src/cpp/ext/filters/census/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'grpc/src/cpp/ext/filters/census/context.h')
-rw-r--r--grpc/src/cpp/ext/filters/census/context.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/grpc/src/cpp/ext/filters/census/context.h b/grpc/src/cpp/ext/filters/census/context.h
index 0c945b5f..67f5704a 100644
--- a/grpc/src/cpp/ext/filters/census/context.h
+++ b/grpc/src/cpp/ext/filters/census/context.h
@@ -75,8 +75,8 @@ class CensusContext {
::opencensus::tags::TagMap tags_;
};
-// Serializes the outgoing trace context. Field IDs are 1 byte followed by
-// field data. A 1 byte version ID is always encoded first.
+// Serializes the outgoing trace context. tracing_buf must be
+// opencensus::trace::propagation::kGrpcTraceBinHeaderLen bytes long.
size_t TraceContextSerialize(const ::opencensus::trace::SpanContext& context,
char* tracing_buf, size_t tracing_buf_size);
@@ -96,9 +96,8 @@ size_t ServerStatsDeserialize(const char* buf, size_t buf_size,
// Deserialize the incoming SpanContext and generate a new server context based
// on that. This new span will never be a root span. This should only be called
// with a blank CensusContext as it overwrites it.
-void GenerateServerContext(absl::string_view tracing, absl::string_view stats,
- absl::string_view primary_role,
- absl::string_view method, CensusContext* context);
+void GenerateServerContext(absl::string_view tracing, absl::string_view method,
+ CensusContext* context);
// Creates a new client context that is by default a new root context.
// If the current context is the default context then the newly created