Skip to content

Commit ca05694

Browse files
chore(connector/profilingmetrics): update OTel Collector dependencies to v0.135.0 (#736)
* chore(connector/profilingmetrics): update OTel Collector dependencies to `v0.135.0` * fix lint replace deprecated profiles.ProfilesDictionary() with profiles.Dictionary()
1 parent a2ecd9c commit ca05694

File tree

4 files changed

+112
-104
lines changed

4 files changed

+112
-104
lines changed

connector/profilingmetricsconnector/connector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ type origin struct {
109109
func (c *profilesToMetricsConnector) extractMetricsFromProfiles(profiles pprofile.Profiles) pmetric.Metrics {
110110
metrics := pmetric.NewMetrics()
111111

112-
dictionary := profiles.ProfilesDictionary()
112+
dictionary := profiles.Dictionary()
113113
resourceProfiles := profiles.ResourceProfiles().All()
114114
for _, resourceProfile := range resourceProfiles {
115115
resourceMetrics := metrics.ResourceMetrics().AppendEmpty()

connector/profilingmetricsconnector/connector_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ func TestConsumeProfiles_WithMetrics(t *testing.T) {
5858

5959
// Create a profiles object that will result in at least one metric.
6060
profiles := pprofile.NewProfiles()
61-
profiles.ProfilesDictionary().StringTable().Append("sample")
62-
profiles.ProfilesDictionary().StringTable().Append("count")
61+
profiles.Dictionary().StringTable().Append("sample")
62+
profiles.Dictionary().StringTable().Append("count")
6363

6464
// Add a ResourceProfile with one ScopeProfile and one Profile with one sample.
6565
resProf := profiles.ResourceProfiles().AppendEmpty()
@@ -93,8 +93,8 @@ func TestConsumeProfiles_FrameTypeMetrics(t *testing.T) {
9393

9494
// Create a profiles object with a sample that has a location with a frame type attribute.
9595
profiles := pprofile.NewProfiles()
96-
profiles.ProfilesDictionary().StringTable().Append("sample")
97-
profiles.ProfilesDictionary().StringTable().Append("count")
96+
profiles.Dictionary().StringTable().Append("sample")
97+
profiles.Dictionary().StringTable().Append("count")
9898
resProf := profiles.ResourceProfiles().AppendEmpty()
9999
scopeProf := resProf.ScopeProfiles().AppendEmpty()
100100
prof := scopeProf.Profiles().AppendEmpty()
@@ -104,7 +104,7 @@ func TestConsumeProfiles_FrameTypeMetrics(t *testing.T) {
104104
sample := prof.Sample().AppendEmpty()
105105

106106
// Setup dictionary tables
107-
dict := profiles.ProfilesDictionary()
107+
dict := profiles.Dictionary()
108108
locTable := dict.LocationTable()
109109
attrTable := dict.AttributeTable()
110110

@@ -172,16 +172,16 @@ func TestConsumeProfiles_MultipleSamplesAndFrameTypes(t *testing.T) {
172172
}
173173

174174
profiles := pprofile.NewProfiles()
175-
profiles.ProfilesDictionary().StringTable().Append("sample")
176-
profiles.ProfilesDictionary().StringTable().Append("count")
175+
profiles.Dictionary().StringTable().Append("sample")
176+
profiles.Dictionary().StringTable().Append("count")
177177
resProf := profiles.ResourceProfiles().AppendEmpty()
178178
scopeProf := resProf.ScopeProfiles().AppendEmpty()
179179
prof := scopeProf.Profiles().AppendEmpty()
180180
st := prof.SampleType().AppendEmpty()
181181
st.SetTypeStrindex(0)
182182
st.SetUnitStrindex(1)
183183

184-
dict := profiles.ProfilesDictionary()
184+
dict := profiles.Dictionary()
185185
locTable := dict.LocationTable()
186186
attrTable := dict.AttributeTable()
187187

@@ -280,8 +280,8 @@ func TestConsumeProfiles_ConsumeMetricsError(t *testing.T) {
280280

281281
// Create a profiles object that will result in at least one metric.
282282
profiles := pprofile.NewProfiles()
283-
profiles.ProfilesDictionary().StringTable().Append("sample")
284-
profiles.ProfilesDictionary().StringTable().Append("count")
283+
profiles.Dictionary().StringTable().Append("sample")
284+
profiles.Dictionary().StringTable().Append("count")
285285
resProf := profiles.ResourceProfiles().AppendEmpty()
286286
scopeProf := resProf.ScopeProfiles().AppendEmpty()
287287
prof := scopeProf.Profiles().AppendEmpty()
@@ -309,7 +309,7 @@ func TestCollectClassificationCounts_GoFrameType(t *testing.T) {
309309

310310
// Setup dictionary tables
311311
profiles := pprofile.NewProfiles()
312-
dict := profiles.ProfilesDictionary()
312+
dict := profiles.Dictionary()
313313
strTable := dict.StringTable()
314314
locTable := dict.LocationTable()
315315
attrTable := dict.AttributeTable()
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
module github.com/elastic/opentelemetry-collector-components/connector/profilingmetricsconnector
22

3-
go 1.23.8
3+
go 1.24
44

55
require (
6-
github.com/stretchr/testify v1.10.0
7-
go.opentelemetry.io/collector/component v1.36.0
8-
go.opentelemetry.io/collector/component/componenttest v0.130.0
9-
go.opentelemetry.io/collector/confmap v1.35.0
10-
go.opentelemetry.io/collector/connector v0.130.0
11-
go.opentelemetry.io/collector/connector/connectortest v0.130.0
12-
go.opentelemetry.io/collector/connector/xconnector v0.130.0
13-
go.opentelemetry.io/collector/consumer v1.36.0
14-
go.opentelemetry.io/collector/pdata v1.36.0
15-
go.opentelemetry.io/collector/pdata/pprofile v0.130.0
16-
go.opentelemetry.io/otel v1.37.0
6+
github.com/stretchr/testify v1.11.1
7+
go.opentelemetry.io/collector/component v1.41.0
8+
go.opentelemetry.io/collector/component/componenttest v0.135.0
9+
go.opentelemetry.io/collector/confmap v1.41.0
10+
go.opentelemetry.io/collector/connector v0.135.0
11+
go.opentelemetry.io/collector/connector/connectortest v0.135.0
12+
go.opentelemetry.io/collector/connector/xconnector v0.135.0
13+
go.opentelemetry.io/collector/consumer v1.41.0
14+
go.opentelemetry.io/collector/pdata v1.41.0
15+
go.opentelemetry.io/collector/pdata/pprofile v0.135.0
16+
go.opentelemetry.io/otel v1.38.0
1717
go.uber.org/goleak v1.3.0
1818
)
1919

@@ -29,35 +29,35 @@ require (
2929
github.com/json-iterator/go v1.1.12 // indirect
3030
github.com/knadh/koanf/maps v0.1.2 // indirect
3131
github.com/knadh/koanf/providers/confmap v1.0.0 // indirect
32-
github.com/knadh/koanf/v2 v2.2.1 // indirect
32+
github.com/knadh/koanf/v2 v2.2.2 // indirect
3333
github.com/mitchellh/copystructure v1.2.0 // indirect
3434
github.com/mitchellh/reflectwalk v1.0.2 // indirect
3535
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
36-
github.com/modern-go/reflect2 v1.0.2 // indirect
36+
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
3737
github.com/pmezard/go-difflib v1.0.0 // indirect
3838
github.com/stretchr/objx v0.5.2 // indirect
3939
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
40-
go.opentelemetry.io/collector/consumer/consumertest v0.130.0 // indirect
41-
go.opentelemetry.io/collector/consumer/xconsumer v0.130.0 // indirect
42-
go.opentelemetry.io/collector/featuregate v1.36.0 // indirect
43-
go.opentelemetry.io/collector/internal/fanoutconsumer v0.130.0 // indirect
44-
go.opentelemetry.io/collector/internal/telemetry v0.130.0 // indirect
45-
go.opentelemetry.io/collector/pipeline v0.130.0 // indirect
46-
go.opentelemetry.io/collector/pipeline/xpipeline v0.130.0 // indirect
40+
go.opentelemetry.io/collector/consumer/consumertest v0.135.0 // indirect
41+
go.opentelemetry.io/collector/consumer/xconsumer v0.135.0 // indirect
42+
go.opentelemetry.io/collector/featuregate v1.41.0 // indirect
43+
go.opentelemetry.io/collector/internal/fanoutconsumer v0.135.0 // indirect
44+
go.opentelemetry.io/collector/internal/telemetry v0.135.0 // indirect
45+
go.opentelemetry.io/collector/pipeline v1.41.0 // indirect
46+
go.opentelemetry.io/collector/pipeline/xpipeline v0.135.0 // indirect
4747
go.opentelemetry.io/contrib/bridges/otelzap v0.12.0 // indirect
48-
go.opentelemetry.io/otel/log v0.13.0 // indirect
49-
go.opentelemetry.io/otel/metric v1.37.0 // indirect
50-
go.opentelemetry.io/otel/sdk v1.37.0 // indirect
51-
go.opentelemetry.io/otel/sdk/metric v1.37.0 // indirect
52-
go.opentelemetry.io/otel/trace v1.37.0 // indirect
48+
go.opentelemetry.io/otel/log v0.14.0 // indirect
49+
go.opentelemetry.io/otel/metric v1.38.0 // indirect
50+
go.opentelemetry.io/otel/sdk v1.38.0 // indirect
51+
go.opentelemetry.io/otel/sdk/metric v1.38.0 // indirect
52+
go.opentelemetry.io/otel/trace v1.38.0 // indirect
5353
go.uber.org/multierr v1.11.0 // indirect
5454
go.uber.org/zap v1.27.0 // indirect
55+
go.yaml.in/yaml/v3 v3.0.4 // indirect
5556
golang.org/x/net v0.42.0 // indirect
56-
golang.org/x/sys v0.34.0 // indirect
57+
golang.org/x/sys v0.35.0 // indirect
5758
golang.org/x/text v0.27.0 // indirect
5859
google.golang.org/genproto/googleapis/rpc v0.0.0-20250715232539-7130f93afb79 // indirect
59-
google.golang.org/grpc v1.73.0 // indirect
60-
google.golang.org/protobuf v1.36.6 // indirect
60+
google.golang.org/grpc v1.75.0 // indirect
61+
google.golang.org/protobuf v1.36.8 // indirect
6162
gopkg.in/yaml.v3 v3.0.1 // indirect
62-
sigs.k8s.io/yaml v1.4.0 // indirect
6363
)

0 commit comments

Comments
 (0)