Skip to content

Commit 5664fa4

Browse files
Added httpcheckreceiver, otlphttpexporter and spanmetricsconnector (elastic#4977)
1 parent 124ddef commit 5664fa4

File tree

8 files changed

+1723
-758
lines changed

8 files changed

+1723
-758
lines changed

NOTICE.txt

+1,612-736
Large diffs are not rendered by default.

go.mod

+24-19
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,6 @@ require (
4343
github.com/mitchellh/hashstructure v1.1.0
4444
github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c
4545
github.com/oklog/ulid v1.3.1
46-
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/elasticsearchexporter v0.103.0
47-
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.103.0
48-
github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage v0.103.0
49-
github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.103.0
50-
github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor v0.103.0
51-
github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor v0.103.0
52-
github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor v0.103.0
53-
github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor v0.103.0
54-
github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.103.0
55-
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.103.0
56-
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.103.0
57-
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver v0.103.0
58-
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.103.0
5946
github.com/otiai10/copy v1.14.0
6047
github.com/pierrre/gotestcover v0.0.0-20160517101806-924dca7d15f0
6148
github.com/pkg/errors v0.9.1
@@ -73,11 +60,6 @@ require (
7360
go.elastic.co/apm/module/apmgorilla v1.15.0
7461
go.elastic.co/ecszap v1.0.1
7562
go.elastic.co/go-licence-detector v0.5.0
76-
go.opentelemetry.io/collector/exporter/debugexporter v0.103.0
77-
go.opentelemetry.io/collector/exporter/otlpexporter v0.103.0
78-
go.opentelemetry.io/collector/extension/memorylimiterextension v0.103.0
79-
go.opentelemetry.io/collector/processor/batchprocessor v0.103.0
80-
go.opentelemetry.io/collector/receiver/otlpreceiver v0.103.0
8163
go.uber.org/zap v1.27.0
8264
golang.org/x/crypto v0.24.0
8365
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
@@ -104,6 +86,21 @@ require (
10486
require (
10587
github.com/cavaliercoder/badio v0.0.0-20160213150051-ce5280129e9e // indirect
10688
github.com/distribution/reference v0.5.0 // indirect
89+
github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.103.0
90+
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/elasticsearchexporter v0.103.0
91+
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.103.0
92+
github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage v0.103.0
93+
github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.103.0
94+
github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor v0.103.0
95+
github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor v0.103.0
96+
github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor v0.103.0
97+
github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor v0.103.0
98+
github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.103.0
99+
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.103.0
100+
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.103.0
101+
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/httpcheckreceiver v0.103.0
102+
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver v0.103.0
103+
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.103.0
107104
go.opentelemetry.io/collector/component v0.103.0
108105
go.opentelemetry.io/collector/confmap v0.103.0
109106
go.opentelemetry.io/collector/confmap/converter/expandconverter v0.103.0
@@ -112,12 +109,19 @@ require (
112109
go.opentelemetry.io/collector/confmap/provider/httpprovider v0.103.0
113110
go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.103.0
114111
go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.103.0
112+
go.opentelemetry.io/collector/connector v0.103.0
115113
go.opentelemetry.io/collector/exporter v0.103.0
114+
go.opentelemetry.io/collector/exporter/debugexporter v0.103.0
115+
go.opentelemetry.io/collector/exporter/otlpexporter v0.103.0
116+
go.opentelemetry.io/collector/exporter/otlphttpexporter v0.103.0
116117
go.opentelemetry.io/collector/extension v0.103.0
118+
go.opentelemetry.io/collector/extension/memorylimiterextension v0.103.0
117119
go.opentelemetry.io/collector/featuregate v1.10.0
118120
go.opentelemetry.io/collector/otelcol v0.103.0
119121
go.opentelemetry.io/collector/processor v0.103.0
122+
go.opentelemetry.io/collector/processor/batchprocessor v0.103.0
120123
go.opentelemetry.io/collector/receiver v0.103.0
124+
go.opentelemetry.io/collector/receiver/otlpreceiver v0.103.0
121125
)
122126

123127
require (
@@ -194,6 +198,7 @@ require (
194198
github.com/leodido/ragel-machinery v0.0.0-20190525184631-5f46317e436b // indirect
195199
github.com/leoluk/perflib_exporter v0.2.1 // indirect
196200
github.com/lestrrat-go/strftime v1.0.6 // indirect
201+
github.com/lightstep/go-expohisto v1.0.0 // indirect
197202
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
198203
github.com/mailru/easyjson v0.7.7 // indirect
199204
github.com/markbates/pkger v0.17.0 // indirect
@@ -242,6 +247,7 @@ require (
242247
github.com/shirou/gopsutil/v4 v4.24.5 // indirect
243248
github.com/shoenig/go-m1cpu v0.1.6 // indirect
244249
github.com/stretchr/objx v0.5.2 // indirect
250+
github.com/tilinna/clock v1.1.0 // indirect
245251
github.com/tklauser/go-sysconf v0.3.12 // indirect
246252
github.com/tklauser/numcpus v0.6.1 // indirect
247253
github.com/valyala/fastjson v1.6.4 // indirect
@@ -264,7 +270,6 @@ require (
264270
go.opentelemetry.io/collector/config/configtelemetry v0.103.0 // indirect
265271
go.opentelemetry.io/collector/config/configtls v0.103.0 // indirect
266272
go.opentelemetry.io/collector/config/internal v0.103.0 // indirect
267-
go.opentelemetry.io/collector/connector v0.103.0 // indirect
268273
go.opentelemetry.io/collector/consumer v0.103.0 // indirect
269274
go.opentelemetry.io/collector/extension/auth v0.103.0 // indirect
270275
go.opentelemetry.io/collector/filter v0.103.0 // indirect

go.sum

+10
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,8 @@ github.com/lestrrat-go/strftime v1.0.6/go.mod h1:f7jQKgV5nnJpYgdEasS+/y7EsTb8ykN
13901390
github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
13911391
github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
13921392
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE=
1393+
github.com/lightstep/go-expohisto v1.0.0 h1:UPtTS1rGdtehbbAF7o/dhkWLTDI73UifG8LbfQI7cA4=
1394+
github.com/lightstep/go-expohisto v1.0.0/go.mod h1:xDXD0++Mu2FOaItXtdDfksfgxfV0z1TMPa+e/EUd0cs=
13931395
github.com/linuxkit/virtsock v0.0.0-20201010232012-f8cee7dfc7a3/go.mod h1:3r6x7q95whyfWQpmGZTu3gk3v2YkMi05HEzl7Tf7YEo=
13941396
github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc=
13951397
github.com/lithammer/shortuuid/v3 v3.0.7/go.mod h1:vMk8ke37EmiewwolSO1NLW8vP4ZaKlRuDIi8tWWmAts=
@@ -1597,6 +1599,8 @@ github.com/onsi/gomega v1.22.1/go.mod h1:x6n7VNe4hw0vkyYUM4mjIXx3JbLiPaBPNgB7PRQ
15971599
github.com/onsi/gomega v1.23.0/go.mod h1:Z/NWtiqwBrwUt4/2loMmHL63EDLnYHmVbuBpDr2vQAg=
15981600
github.com/onsi/gomega v1.29.0 h1:KIA/t2t5UBzoirT4H9tsML45GEbo3ouUnBHsCfD2tVg=
15991601
github.com/onsi/gomega v1.29.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
1602+
github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.103.0 h1:th1Swa6AOTpbr8Yui5/LLQjIwUZhV4wcbfvusKL9qSk=
1603+
github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.103.0/go.mod h1:5bCbYY4xRBBIwzUOdBcezz6iff7+LtPNZBYYxk+cFro=
16001604
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/elasticsearchexporter v0.103.0 h1:HIxeM8zec+qVIFwPuqM8mP3PEa9ODW/M5DKLkrNEMcI=
16011605
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/elasticsearchexporter v0.103.0/go.mod h1:TbovkNidI+olc1uNAV8xIqf6E/WOWNigEaN1BVZyEXU=
16021606
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.103.0 h1:wC4nWmlXsM7FQseO73Ic+8MftJV7NRtqPjFY475Jo90=
@@ -1657,6 +1661,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiv
16571661
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.103.0/go.mod h1:cdJpaBiLfV16LteiKj8iP7snJ6alJy1dVa7FTcC915c=
16581662
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.103.0 h1:8HZm7c/QOvrLdj3bZjoBaL1YqRme6/x3gCKJvvF6uMU=
16591663
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.103.0/go.mod h1:saj0LAF7PbWIYnNjYjuM5UXjLiTnOug5r731oLkQv6Q=
1664+
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/httpcheckreceiver v0.103.0 h1:UnhfOFVZdN1344pT0yfTcRZwKOBlgdUz5iBLN66GgyU=
1665+
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/httpcheckreceiver v0.103.0/go.mod h1:928SKR44tAnAG5KfDzfY6waRRohMsgFj29TC4wdR04E=
16601666
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver v0.103.0 h1:7W4crd2OcXyZatXUgV0diOIKAdYBdmbwrvTw45UkDfA=
16611667
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver v0.103.0/go.mod h1:dY3HXexyi150ycmfpH2ymMnWagsJy2rVF4Y9nZXPLkI=
16621668
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.103.0 h1:HOJ27FvPvxRV3f+wgAfdPrbFNTa1GxlnuWHt1VdhmCE=
@@ -1938,6 +1944,8 @@ github.com/testcontainers/testcontainers-go v0.13.0/go.mod h1:z1abufU633Eb/FmSBT
19381944
github.com/testcontainers/testcontainers-go v0.31.0 h1:W0VwIhcEVhRflwL9as3dhY6jXjVCA27AkmbnZ+UTh3U=
19391945
github.com/testcontainers/testcontainers-go v0.31.0/go.mod h1:D2lAoA0zUFiSY+eAflqK5mcUx/A5hrrORaEQrd0SefI=
19401946
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
1947+
github.com/tilinna/clock v1.1.0 h1:6IQQQCo6KoBxVudv6gwtY8o4eDfhHo8ojA5dP0MfhSs=
1948+
github.com/tilinna/clock v1.1.0/go.mod h1:ZsP7BcY7sEEz7ktc0IVy8Us6boDrK8VradlKRUGfOao=
19411949
github.com/tklauser/go-sysconf v0.3.11/go.mod h1:GqXfhXY3kiPa0nAXPDIQIWzJbMCB7AmcWpGR8lSZfqI=
19421950
github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU=
19431951
github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI=
@@ -2115,6 +2123,8 @@ go.opentelemetry.io/collector/exporter/debugexporter v0.103.0 h1:jwZHoXvp3vdQ3ob
21152123
go.opentelemetry.io/collector/exporter/debugexporter v0.103.0/go.mod h1:kzmBnKxsLNVBRGS8nwu497SvHspzyeiV06+LiPHktto=
21162124
go.opentelemetry.io/collector/exporter/otlpexporter v0.103.0 h1:YKdYP3tDOQC6sOdOD1/Sun6CA4Zwpky+aRve3dx5QcE=
21172125
go.opentelemetry.io/collector/exporter/otlpexporter v0.103.0/go.mod h1:4UVHkqgL80CRVrbD85p2k4swDe27gLyQkoKlSYOkR0A=
2126+
go.opentelemetry.io/collector/exporter/otlphttpexporter v0.103.0 h1:26jP07GOjipKnFAKw0hDnCTB67tXZzHN+uxii3mnbjw=
2127+
go.opentelemetry.io/collector/exporter/otlphttpexporter v0.103.0/go.mod h1:qJGL48tf0CamMLUjO+HtxDeDZ+4pvvxxF1GDqE5VHnc=
21182128
go.opentelemetry.io/collector/extension v0.103.0 h1:vTsd+GElvT7qKk9Y9d6UKuuT2Ngx0mai8Q48hkKQMwM=
21192129
go.opentelemetry.io/collector/extension v0.103.0/go.mod h1:rp2l3xskNKWv0yBCyU69Pv34TnP1QVD1ijr0zSndnsM=
21202130
go.opentelemetry.io/collector/extension/auth v0.103.0 h1:i7cQl+Ewpve/DIN4rFMg1GiyUPE14LZsYWrJ1RqtP84=

internal/pkg/otel/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ This section provides a summary of components included in the Elastic Distributi
3333
|---|---|
3434
| filelogreceiver | v0.103.0|
3535
| hostmetricsreceiver | v0.103.0|
36+
| httpcheckreceiver | v0.103.0|
3637
| k8sclusterreceiver | v0.103.0|
3738
| kubeletstatsreceiver | v0.103.0|
3839
| otlpreceiver | v0.103.0|
@@ -48,6 +49,7 @@ This section provides a summary of components included in the Elastic Distributi
4849
| fileexporter | v0.103.0|
4950
| debugexporter | v0.103.0|
5051
| otlpexporter | v0.103.0|
52+
| otlphttpexporter | v0.103.0|
5153

5254

5355

@@ -75,3 +77,12 @@ This section provides a summary of components included in the Elastic Distributi
7577
| storage/filestorage | v0.103.0|
7678
| memorylimiterextension | v0.103.0|
7779

80+
81+
82+
83+
### Connectors
84+
85+
| Component | Version |
86+
|---|---|
87+
| spanmetricsconnector | v0.103.0|
88+

internal/pkg/otel/components.go

+15
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
package otel
88

99
import (
10+
"go.opentelemetry.io/collector/connector"
1011
"go.opentelemetry.io/collector/exporter"
1112
"go.opentelemetry.io/collector/extension"
1213
"go.opentelemetry.io/collector/otelcol"
@@ -16,6 +17,7 @@ import (
1617
// Receivers:
1718
filelogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver" // for collecting log files
1819
hostmetricsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver"
20+
httpcheckreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/httpcheckreceiver"
1921
k8sclusterreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver"
2022
kubeletstatsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver"
2123
otlpreceiver "go.opentelemetry.io/collector/receiver/otlpreceiver"
@@ -36,10 +38,14 @@ import (
3638
fileexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter" // for e2e tests
3739
debugexporter "go.opentelemetry.io/collector/exporter/debugexporter" // for dev
3840
"go.opentelemetry.io/collector/exporter/otlpexporter"
41+
otlphttpexporter "go.opentelemetry.io/collector/exporter/otlphttpexporter"
3942

4043
// Extensions
4144
filestorage "github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage"
4245
"go.opentelemetry.io/collector/extension/memorylimiterextension" // for putting backpressure when approach a memory limit
46+
47+
// Connectors
48+
spanmetricsconnector "github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector"
4349
)
4450

4551
func components() (otelcol.Factories, error) {
@@ -53,6 +59,7 @@ func components() (otelcol.Factories, error) {
5359
kubeletstatsreceiver.NewFactory(),
5460
k8sclusterreceiver.NewFactory(),
5561
hostmetricsreceiver.NewFactory(),
62+
httpcheckreceiver.NewFactory(),
5663
)
5764
if err != nil {
5865
return otelcol.Factories{}, err
@@ -79,6 +86,14 @@ func components() (otelcol.Factories, error) {
7986
debugexporter.NewFactory(),
8087
fileexporter.NewFactory(),
8188
elasticsearchexporter.NewFactory(),
89+
otlphttpexporter.NewFactory(),
90+
)
91+
if err != nil {
92+
return otelcol.Factories{}, err
93+
}
94+
95+
factories.Connectors, err = connector.MakeFactoryMap(
96+
spanmetricsconnector.NewFactory(),
8297
)
8398
if err != nil {
8499
return otelcol.Factories{}, err

internal/pkg/otel/templates/README.md.tmpl

+9
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,13 @@ This section provides a summary of components included in the Elastic Distributi
6060
|---|---|
6161
{{ range .Extensions }}| {{ .Name }} | {{ .Version -}} |
6262
{{ end }}
63+
{{ end }}
64+
65+
{{ if .Connectors }}
66+
### Connectors
67+
68+
| Component | Version |
69+
|---|---|
70+
{{ range .Connectors }}| {{ .Name }} | {{ .Version -}} |
71+
{{ end }}
6372
{{ end }}

internal/pkg/otel/testdata/all-components.yml

+37-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ exporters:
77
path: /tmp/file-exporter-output.json
88
otlp:
99
endpoint: localhots:4317
10+
otlphttp:
11+
endpoint: https://localhost.com:4318
1012

1113
extensions:
1214
memory_limiter:
@@ -38,6 +40,37 @@ receivers:
3840
protocols:
3941
grpc:
4042
http:
43+
httpcheck:
44+
targets:
45+
- endpoint: http://localhost:80
46+
method: GET
47+
collection_interval: 10s
48+
49+
connectors:
50+
spanmetrics:
51+
histogram:
52+
explicit:
53+
buckets: [100us, 1ms, 2ms, 6ms, 10ms, 100ms, 250ms]
54+
dimensions:
55+
- name: http.method
56+
default: GET
57+
- name: http.status_code
58+
exemplars:
59+
enabled: true
60+
exclude_dimensions: ['status.code']
61+
dimensions_cache_size: 1000
62+
aggregation_temporality: "AGGREGATION_TEMPORALITY_CUMULATIVE"
63+
metrics_flush_interval: 15s
64+
metrics_expiration: 5m
65+
events:
66+
enabled: true
67+
dimensions:
68+
- name: exception.type
69+
- name: exception.message
70+
resource_metrics_key_attributes:
71+
- service.name
72+
- telemetry.sdk.language
73+
- telemetry.sdk.name
4174

4275
service:
4376
extensions:
@@ -63,7 +96,6 @@ service:
6396
metrics:
6497
exporters:
6598
- debug
66-
- file
6799
- otlp
68100
processors:
69101
- attributes
@@ -75,13 +107,16 @@ service:
75107
- transform
76108
receivers:
77109
- otlp
110+
- httpcheck
111+
- spanmetrics
78112

79113
traces:
80114
exporters:
81115
- debug
82116
- elasticsearch
83-
- file
84117
- otlp
118+
- otlphttp
119+
- spanmetrics
85120
processors:
86121
- attributes
87122
- batch

magefile.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -3153,6 +3153,7 @@ type dependencies struct {
31533153
Exporters []dependency
31543154
Processors []dependency
31553155
Extensions []dependency
3156+
Connectors []dependency
31563157
}
31573158

31583159
func (d dependency) Clean(sep string) dependency {
@@ -3209,7 +3210,7 @@ func getOtelDependencies() (*dependencies, error) {
32093210
scanner := bufio.NewScanner(readFile)
32103211

32113212
scanner.Split(bufio.ScanLines)
3212-
var receivers, extensions, exporters, processors []dependency
3213+
var receivers, extensions, exporters, processors, connectors []dependency
32133214
// process imports
32143215
for scanner.Scan() {
32153216
l := strings.TrimSpace(scanner.Text())
@@ -3248,6 +3249,8 @@ func getOtelDependencies() (*dependencies, error) {
32483249
exporters = append(exporters, d.Clean("/exporter/"))
32493250
} else if strings.Contains(l, "/extension/") {
32503251
extensions = append(extensions, d.Clean("/extension/"))
3252+
} else if strings.Contains(l, "/connector/") {
3253+
connectors = append(connectors, d.Clean("/connector/"))
32513254
}
32523255
}
32533256

@@ -3256,5 +3259,6 @@ func getOtelDependencies() (*dependencies, error) {
32563259
Exporters: exporters,
32573260
Processors: processors,
32583261
Extensions: extensions,
3262+
Connectors: connectors,
32593263
}, nil
32603264
}

0 commit comments

Comments
 (0)