Skip to content

Commit c198e36

Browse files
authored
Merge branch 'main' into 14311
2 parents 3e6d2c8 + bf28fa7 commit c198e36

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

.github/workflows/stale-pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ permissions: read-all
77

88
jobs:
99
stale:
10+
if: ${{ false }} # Stale action paused for the holidays
1011
permissions:
1112
issues: write # for actions/stale to close stale issues
1213
pull-requests: write # for actions/stale to close stale PRs

pdata/testdata/profile.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,13 @@ func fillProfileOne(dic pprofile.ProfilesDictionary, profile pprofile.Profile) {
5050

5151
loc := pprofile.NewLocation()
5252
loc.SetAddress(1)
53-
id, _ := pprofile.SetLocation(dic.LocationTable(), loc)
54-
stack := dic.StackTable().AppendEmpty()
55-
stack.LocationIndices().Append(id)
53+
locID, _ := pprofile.SetLocation(dic.LocationTable(), loc)
54+
stack := pprofile.NewStack()
55+
stack.LocationIndices().Append(locID)
56+
stackID, _ := pprofile.SetStack(dic.StackTable(), stack)
5657

5758
sample := profile.Samples().AppendEmpty()
58-
sample.SetStackIndex(1)
59+
sample.SetStackIndex(stackID)
5960
sample.Values().Append(4)
6061
sample.AttributeIndices().Append(0)
6162
}
@@ -67,12 +68,13 @@ func fillProfileTwo(dic pprofile.ProfilesDictionary, profile pprofile.Profile) {
6768

6869
loc := pprofile.NewLocation()
6970
loc.SetAddress(2)
70-
id, _ := pprofile.SetLocation(dic.LocationTable(), loc)
71-
stack := dic.StackTable().AppendEmpty()
72-
stack.LocationIndices().Append(id)
71+
locID, _ := pprofile.SetLocation(dic.LocationTable(), loc)
72+
stack := pprofile.NewStack()
73+
stack.LocationIndices().Append(locID)
74+
stackID, _ := pprofile.SetStack(dic.StackTable(), stack)
7375

7476
sample := profile.Samples().AppendEmpty()
75-
sample.SetStackIndex(1)
77+
sample.SetStackIndex(stackID)
7678
sample.Values().Append(9)
7779
sample.AttributeIndices().Append(0)
7880
}

service/internal/graph/obs_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ func TestComponentInstrumentation(t *testing.T) {
548548
"otelcol.receiver.produced.size": simpleMetric{
549549
attribute.NewSet(
550550
attribute.String(obsconsumer.ComponentOutcome, "success"),
551-
): 1118,
551+
): 1035,
552552
},
553553
},
554554
attribute.NewSet(
@@ -570,12 +570,12 @@ func TestComponentInstrumentation(t *testing.T) {
570570
"otelcol.processor.consumed.size": simpleMetric{
571571
attribute.NewSet(
572572
attribute.String(obsconsumer.ComponentOutcome, "success"),
573-
): 1118,
573+
): 1035,
574574
},
575575
"otelcol.processor.produced.size": simpleMetric{
576576
attribute.NewSet(
577577
attribute.String(obsconsumer.ComponentOutcome, "success"),
578-
): 1118,
578+
): 1035,
579579
},
580580
},
581581
attribute.NewSet(
@@ -602,17 +602,17 @@ func TestComponentInstrumentation(t *testing.T) {
602602
"otelcol.connector.consumed.size": simpleMetric{
603603
attribute.NewSet(
604604
attribute.String(obsconsumer.ComponentOutcome, "success"),
605-
): 1118,
605+
): 1035,
606606
},
607607
"otelcol.connector.produced.size": simpleMetric{
608608
attribute.NewSet(
609609
attribute.String(obsconsumer.ComponentOutcome, "success"),
610610
attribute.String("otelcol.pipeline.id", "profiles/right"),
611-
): 587,
611+
): 542,
612612
attribute.NewSet(
613613
attribute.String(obsconsumer.ComponentOutcome, "success"),
614614
attribute.String("otelcol.pipeline.id", "profiles/left"),
615-
): 531,
615+
): 493,
616616
},
617617
},
618618
attribute.NewSet(
@@ -628,7 +628,7 @@ func TestComponentInstrumentation(t *testing.T) {
628628
"otelcol.exporter.consumed.size": simpleMetric{
629629
attribute.NewSet(
630630
attribute.String(obsconsumer.ComponentOutcome, "success"),
631-
): 587,
631+
): 542,
632632
},
633633
},
634634
attribute.NewSet(
@@ -644,7 +644,7 @@ func TestComponentInstrumentation(t *testing.T) {
644644
"otelcol.exporter.consumed.size": simpleMetric{
645645
attribute.NewSet(
646646
attribute.String(obsconsumer.ComponentOutcome, "success"),
647-
): 531,
647+
): 493,
648648
},
649649
},
650650
}

0 commit comments

Comments
 (0)