Skip to content

Commit 58f3efb

Browse files
dmathieumx-psi
andauthored
Add Sample.LinkIndex to pprofile (#12485)
This field was missed when setting up the latest proto generation. --------- Co-authored-by: Pablo Baeyens <[email protected]>
1 parent 861fa20 commit 58f3efb

File tree

4 files changed

+69
-0
lines changed

4 files changed

+69
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: pprofile
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add LinkIndex attribute to the generated Sample type
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [12485]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# Optional: The change log or logs in which this entry should be included.
21+
# e.g. '[user]' or '[user, api]'
22+
# Include 'user' if the change is relevant to end users.
23+
# Include 'api' if there is a change to a library API.
24+
# Default: '[user]'
25+
change_logs: []

pdata/internal/cmd/pdatagen/internal/pprofile_package.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,12 @@ var sample = &messageValueStruct{
325325
fieldName: "AttributeIndices",
326326
returnSlice: int32Slice,
327327
},
328+
&optionalPrimitiveValue{
329+
fieldName: "LinkIndex",
330+
returnType: "int32",
331+
defaultVal: "int32(0)",
332+
testVal: "int32(1)",
333+
},
328334
&sliceField{
329335
fieldName: "TimestampsUnixNano",
330336
returnSlice: uInt64Slice,

pdata/pprofile/generated_sample.go

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pdata/pprofile/generated_sample_test.go

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)