From 4ca4178f5c7ab3f10300f07dab7422ead8dc17bc Mon Sep 17 00:00:00 2001 From: Alexey Alexandrov Date: Wed, 1 Nov 2023 13:25:21 -0700 Subject: [PATCH] Clarify that labels with pprof:: prefix are reserved for pprof use. (#815) --- proto/profile.proto | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proto/profile.proto b/proto/profile.proto index 6fd1dd17..c41ec50e 100644 --- a/proto/profile.proto +++ b/proto/profile.proto @@ -128,7 +128,10 @@ message Sample { } message Label { - int64 key = 1; // Index into string table + // Index into string table. An annotation for a sample (e.g. + // "allocation_size") with an associated value. + // Keys with "pprof::" prefix are reserved for internal use by pprof. + int64 key = 1; // At most one of the following must be present int64 str = 2; // Index into string table