Skip to content

Commit 5c8e616

Browse files
committed
Add doc_url field to match its recent addition in pprof proto.
github.com/google/pprof/pull/888 added this field in pprof proto, this change adds it to the OTel profiling proto to match the change.
1 parent 6f58912 commit 5c8e616

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

opentelemetry/proto/profiles/v1experimental/pprofextended.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ message Profile {
123123
// Index into the string table of the type of the preferred sample
124124
// value. If unset, clients should default to the last sample value.
125125
int64 default_sample_type = 14;
126+
// Documentation link for this profile. The URL must be absolute,
127+
// e.g., http://pprof.example.com/cpu-profile.html
128+
//
129+
// The URL may be missing if the profile was generated by older code or code
130+
// that did not bother to supply a link.
131+
int64 doc_url = 19; // Index into string table.
132+
133+
reserved 20 to max; // NEXT ID
126134
}
127135

128136
// Represents a mapping between Attribute Keys and Units.

0 commit comments

Comments
 (0)