Merge pull request #17 from dinooliva/tags-as-bytes

Changes tags in StatsContext proto from string to bytes.
pull/18/head
Dino Oliva 8 years ago committed by GitHub
commit 41884562b4
  1. 16
      stats/stats_context.proto

@ -16,6 +16,20 @@ package google.instrumentation;
option java_package = "com.google.instrumentation.stats.proto";
option java_outer_classname = "StatsContextProto";
// Wire format of instrumentation stats (aka Census) tags.
message StatsContext {
string tags = 1;
// Encodes all stats tags (aka Census tags) to propagate over an RPC in a
// single byte vector.
//
// The format is:
// num_tags [key_len key_bytes value_len value_bytes]*
//
// All implementations must honor these specs:
// * The num_tags is represented using varint.
// * The key/value lengths are represented using varint.
// * All key/values must be US-ASCII.
//
// For details about varint, see:
// https://developers.google.com/protocol-buffers/docs/encoding#varints
bytes tags = 1;
}

Loading…
Cancel
Save