Skip to content

Commit 0d76428

Browse files
[9.2](backport #47873) cleanup(otel): move otelbeat packages to x-pack/otel (#48340)
* cleanup(otel): move otelbeat packages to x-pack/otel (#47873) Move the remaining otelbeat packages to x-pack/otel so that all otel-related code is centralized. (cherry picked from commit 8a10df6) * fix imports --------- Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
1 parent dcc3348 commit 0d76428

50 files changed

Lines changed: 125 additions & 332 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.buildkite/x-pack/pipeline.xpack.otel.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ steps:
3434
image: "${IMAGE_BEATS_WITH_HOOKS_LATEST}"
3535
cpu: "4000m"
3636
memory: "8Gi"
37+
# 10GB storage was not enough for check/update.
38+
ephemeralStorage: "50G"
3739
useCustomGlobalHooks: true
3840
notify:
3941
- github_commit_status:

libbeat/otelbeat/beatconverter/logging.go

Lines changed: 0 additions & 38 deletions
This file was deleted.

x-pack/filebeat/fbreceiver/receiver_leak_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"go.uber.org/zap/zapcore"
2020
"go.uber.org/zap/zaptest/observer"
2121

22-
"github.com/elastic/beats/v7/libbeat/otelbeat/oteltest"
22+
"github.com/elastic/beats/v7/x-pack/otel/oteltest"
2323
)
2424

2525
func TestLeak(t *testing.T) {

x-pack/filebeat/fbreceiver/receiver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
"go.uber.org/zap/zapcore"
3737
"go.uber.org/zap/zaptest/observer"
3838

39-
"github.com/elastic/beats/v7/libbeat/otelbeat/oteltest"
39+
"github.com/elastic/beats/v7/x-pack/otel/oteltest"
4040
"github.com/elastic/elastic-agent-libs/mapstr"
4141
)
4242

x-pack/filebeat/input/gcppubsub/otel_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import (
1818
"github.com/stretchr/testify/assert"
1919
"github.com/stretchr/testify/require"
2020

21-
"github.com/elastic/beats/v7/libbeat/otelbeat/oteltest"
2221
"github.com/elastic/beats/v7/libbeat/tests/integration"
2322
"github.com/elastic/beats/v7/x-pack/filebeat/input/gcppubsub/testutil"
24-
"github.com/elastic/beats/v7/x-pack/libbeat/common/otelbeat/oteltestcol"
23+
"github.com/elastic/beats/v7/x-pack/otel/oteltest"
24+
"github.com/elastic/beats/v7/x-pack/otel/oteltestcol"
2525

2626
"github.com/elastic/elastic-agent-libs/testing/estools"
2727
)

x-pack/filebeat/tests/integration/otel_lsexporter_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ import (
2727
"github.com/stretchr/testify/assert"
2828
"github.com/stretchr/testify/require"
2929

30-
"github.com/elastic/beats/v7/libbeat/otelbeat/oteltest"
3130
"github.com/elastic/beats/v7/libbeat/tests/integration"
32-
"github.com/elastic/beats/v7/x-pack/libbeat/common/otelbeat/oteltestcol"
31+
"github.com/elastic/beats/v7/x-pack/otel/oteltest"
32+
"github.com/elastic/beats/v7/x-pack/otel/oteltestcol"
3333
"github.com/elastic/elastic-agent-libs/mapstr"
3434
)
3535

x-pack/filebeat/tests/integration/otel_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ import (
3232

3333
"github.com/gofrs/uuid/v5"
3434

35-
"github.com/elastic/beats/v7/libbeat/otelbeat/oteltest"
3635
libbeattesting "github.com/elastic/beats/v7/libbeat/testing"
3736
"github.com/elastic/beats/v7/libbeat/tests/integration"
38-
"github.com/elastic/beats/v7/x-pack/libbeat/common/otelbeat/oteltestcol"
37+
"github.com/elastic/beats/v7/x-pack/otel/oteltest"
38+
"github.com/elastic/beats/v7/x-pack/otel/oteltestcol"
3939
"github.com/elastic/elastic-agent-libs/mapstr"
4040
"github.com/elastic/elastic-agent-libs/testing/estools"
4141
"github.com/elastic/go-elasticsearch/v8"

x-pack/libbeat/cmd/instance/beat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/elastic/beats/v7/libbeat/publisher/pipeline"
2525
"github.com/elastic/beats/v7/libbeat/publisher/processing"
2626
"github.com/elastic/beats/v7/libbeat/version"
27-
"github.com/elastic/beats/v7/x-pack/libbeat/common/otelbeat/otelmanager"
27+
"github.com/elastic/beats/v7/x-pack/otel/otelmanager"
2828
"github.com/elastic/elastic-agent-libs/config"
2929
"github.com/elastic/elastic-agent-libs/keystore"
3030
"github.com/elastic/elastic-agent-libs/logp"

x-pack/libbeat/cmd/instance/beat_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/elastic/beats/v7/filebeat/cmd"
1717
"github.com/elastic/beats/v7/filebeat/input/log"
1818
"github.com/elastic/beats/v7/libbeat/management"
19-
"github.com/elastic/beats/v7/x-pack/libbeat/common/otelbeat/otelmanager"
19+
"github.com/elastic/beats/v7/x-pack/otel/otelmanager"
2020
conf "github.com/elastic/elastic-agent-libs/config"
2121
)
2222

x-pack/libbeat/cmd/instance/receiver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import (
1717
"github.com/elastic/beats/v7/libbeat/cmd/instance"
1818
"github.com/elastic/beats/v7/libbeat/common/backoff"
1919
"github.com/elastic/beats/v7/libbeat/management/status"
20-
"github.com/elastic/beats/v7/x-pack/libbeat/common/otelbeat/otelmanager"
21-
otelstatus "github.com/elastic/beats/v7/x-pack/libbeat/common/otelbeat/status"
2220
_ "github.com/elastic/beats/v7/x-pack/libbeat/include"
21+
"github.com/elastic/beats/v7/x-pack/otel/otelmanager"
22+
otelstatus "github.com/elastic/beats/v7/x-pack/otel/status"
2323
"github.com/elastic/elastic-agent-libs/logp"
2424
"github.com/elastic/elastic-agent-libs/monitoring"
2525
metricreport "github.com/elastic/elastic-agent-system-metrics/report"

0 commit comments

Comments
 (0)