Skip to content

Commit 77deab0

Browse files
authored
Merge branch 'main' into drop/old-apm-agent
2 parents 5bd118d + d557ebd commit 77deab0

File tree

18 files changed

+8437
-2365
lines changed

18 files changed

+8437
-2365
lines changed

.buildkite/pull-requests.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"pipelineSlug": "elastic-agent-package",
2222
"allow_org_users": true,
2323
"allowed_repo_permissions": ["admin", "write"],
24-
"allowed_list": [],
24+
"allowed_list": ["dependabot[bot]", "mergify[bot]"],
2525
"set_commit_status": false,
2626
"build_on_commit": false,
2727
"build_on_comment": true,
@@ -37,7 +37,7 @@
3737
"pipelineSlug": "elastic-agent-binary-dra",
3838
"allow_org_users": true,
3939
"allowed_repo_permissions": ["admin", "write"],
40-
"allowed_list": [],
40+
"allowed_list": ["dependabot[bot]", "mergify[bot]"],
4141
"set_commit_status": false,
4242
"build_on_commit": false,
4343
"build_on_comment": true,

.github/workflows/bump-golang.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v4
2323

2424
- name: Install Updatecli in the runner
25-
uses: updatecli/updatecli-action@4922d58d06f0d096428933f153275e15a3eb49de # v0.76.1
25+
uses: updatecli/updatecli-action@eb158f6fd9e425b940a6750d6318f98e050ac390 # v0.76.1
2626

2727
- name: Run Updatecli in Apply mode
2828
run: updatecli apply --config .github/updatecli-bump-golang.yml

NOTICE.txt

+8,058-2,204
Large diffs are not rendered by default.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pr: https://github.com/elastic/elastic-agent/pull/823
4747
Prerequisites:
4848
- installed [mage](https://github.com/magefile/mage)
4949
- [Docker](https://docs.docker.com/get-docker/)
50-
- [X-pack](https://github.com/elastic/beats/tree/main/x-pack) to pre-exist in the parent folder of the local Git repository checkout
50+
- [beats](https://github.com/elastic/beats) to pre-exist in the parent folder of the local Git repository checkout if, and only if, packaging with `EXTERNAL=false` to package the beats as well
5151
- [elastic-agent-changelog-tool](https://github.com/elastic/elastic-agent-changelog-tool) to add changelog fragments for changelog generation
5252

5353
To build a local version of the agent for development, run the command below. The following platforms are supported:

catalog-info.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,10 @@ spec:
8484
name: elastic-agent-extended-testing
8585
description: Buildkite pipeline for the Elastic Agent extended testing
8686
spec:
87-
branch_configuration: "main 7.* 8.* v7.* v8.*"
8887
repository: elastic/elastic-agent
8988
pipeline_file: ".buildkite/integration.pipeline.yml"
9089
provider_settings:
91-
build_pull_request_forks: false
92-
build_pull_requests: true
93-
build_tags: true
94-
filter_enabled: true
95-
filter_condition: >-
96-
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null)
90+
trigger_mode: none # don't trigger jobs from github activity
9791
cancel_intermediate_builds: true
9892
cancel_intermediate_builds_branch_filter: "!main !7.* !8.* !9.*"
9993
skip_intermediate_builds: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Kind can be one of:
2+
# - breaking-change: a change to previously-documented behavior
3+
# - deprecation: functionality that is being removed in a later release
4+
# - bug-fix: fixes a problem in a previous version
5+
# - enhancement: extends functionality but does not break or fix existing behavior
6+
# - feature: new functionality
7+
# - known-issue: problems that we are aware of in a given version
8+
# - security: impacts on the security of a product or a user’s deployment.
9+
# - upgrade: important information for someone upgrading from a prior version
10+
# - other: does not fit into any of the other categories
11+
kind: feature
12+
13+
# Change summary; a 80ish characters long description of the change.
14+
summary: Makes the `resourcedetection` processor available to users running Elastic Agent in `otel` mode.
15+
16+
# Long description; in case the summary is not enough to describe the change
17+
# this field accommodate a description without length limits.
18+
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment.
19+
#description:
20+
21+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
22+
component: elastic-agent
23+
24+
# PR URL; optional; the PR number that added the changeset.
25+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
26+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
27+
# Please provide it if you are adding a fragment for a different PR.
28+
#pr: https://github.com/owner/repo/1234
29+
30+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
31+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
32+
#issue: https://github.com/owner/repo/1234

dev-tools/notice/overrides.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@
1616
{"name": "kernel.org/pub/linux/libs/security/libcap/cap", "licenceType": "BSD-3-Clause", "note": "dual licensed as GPL-v2 and BSD"}
1717
{"name": "kernel.org/pub/linux/libs/security/libcap/psx", "licenceType": "BSD-3-Clause", "note": "dual licensed as GPL-v2 and BSD"}
1818
{"name": "github.com/awslabs/kinesis-aggregation/go", "licenceType": "Apache-2.0", "url": "https://github.com/awslabs/kinesis-aggregation/blob/master/LICENSE.txt"}
19+
{"name": "github.com/pascaldekloe/goe", "licenceFile": "LICENSE", "licenceType": "CC0-1.0"}

dev-tools/notice/rules.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"BSD-2-Clause",
66
"BSD-2-Clause-FreeBSD",
77
"BSD-3-Clause",
8+
"CC0-1.0",
89
"Elastic",
910
"ISC",
1011
"MIT",

go.mod

+31-16
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
github.com/elastic/go-sysinfo v1.14.0
2323
github.com/elastic/go-ucfg v0.8.8
2424
github.com/elastic/mock-es v0.0.0-20240605193845-b5546a703d6f
25-
github.com/fatih/color v1.15.0
25+
github.com/fatih/color v1.16.0
2626
github.com/fsnotify/fsnotify v1.7.0
2727
github.com/gofrs/flock v0.8.1
2828
github.com/gofrs/uuid v4.4.0+incompatible
@@ -42,7 +42,15 @@ require (
4242
github.com/mitchellh/hashstructure v1.1.0
4343
github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c
4444
github.com/oklog/ulid v1.3.1
45+
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/elasticsearchexporter v0.102.0
46+
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.102.0
47+
github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.102.0
48+
github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor v0.102.0
4549
github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor v0.102.0
50+
github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor v0.102.0
51+
github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor v0.102.0
52+
github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.102.0
53+
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.102.0
4654
github.com/otiai10/copy v1.14.0
4755
github.com/pierrre/gotestcover v0.0.0-20160517101806-924dca7d15f0
4856
github.com/pkg/errors v0.9.1
@@ -62,9 +70,13 @@ require (
6270
go.elastic.co/apm/v2 v2.6.0
6371
go.elastic.co/ecszap v1.0.1
6472
go.elastic.co/go-licence-detector v0.5.0
73+
go.opentelemetry.io/collector/exporter/debugexporter v0.102.1
74+
go.opentelemetry.io/collector/exporter/otlpexporter v0.102.1
75+
go.opentelemetry.io/collector/extension/memorylimiterextension v0.102.1
76+
go.opentelemetry.io/collector/processor/batchprocessor v0.102.1
77+
go.opentelemetry.io/collector/receiver/otlpreceiver v0.102.1
6578
go.uber.org/zap v1.27.0
6679
golang.org/x/crypto v0.23.0
67-
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
6880
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
6981
golang.org/x/sync v0.7.0
7082
golang.org/x/sys v0.20.0
@@ -89,14 +101,6 @@ require (
89101
require (
90102
github.com/cavaliercoder/badio v0.0.0-20160213150051-ce5280129e9e // indirect
91103
github.com/distribution/reference v0.5.0 // indirect
92-
// open telemetry dependencies
93-
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/elasticsearchexporter v0.102.0
94-
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.102.0
95-
github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.102.0
96-
github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor v0.102.0
97-
github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor v0.102.0
98-
github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.102.0
99-
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.102.0
100104
go.opentelemetry.io/collector/component v0.102.1
101105
go.opentelemetry.io/collector/confmap v0.102.1
102106
go.opentelemetry.io/collector/confmap/converter/expandconverter v0.102.1
@@ -106,24 +110,24 @@ require (
106110
go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.102.1
107111
go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.102.1
108112
go.opentelemetry.io/collector/exporter v0.102.1
109-
go.opentelemetry.io/collector/exporter/debugexporter v0.102.1
110-
go.opentelemetry.io/collector/exporter/otlpexporter v0.102.1
111113
go.opentelemetry.io/collector/extension v0.102.1
112-
go.opentelemetry.io/collector/extension/memorylimiterextension v0.102.1
113114
go.opentelemetry.io/collector/featuregate v1.9.0
114115
go.opentelemetry.io/collector/otelcol v0.102.1
115116
go.opentelemetry.io/collector/processor v0.102.1
116-
go.opentelemetry.io/collector/processor/batchprocessor v0.102.1
117117
go.opentelemetry.io/collector/receiver v0.102.1
118-
go.opentelemetry.io/collector/receiver/otlpreceiver v0.102.1
119118
)
120119

121120
require (
121+
cloud.google.com/go/compute/metadata v0.3.0 // indirect
122+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.23.0 // indirect
122123
github.com/Jeffail/gabs/v2 v2.6.0 // indirect
124+
github.com/Showmax/go-fqdn v1.0.0 // indirect
123125
github.com/StackExchange/wmi v1.2.1 // indirect
124126
github.com/akavel/rsrc v0.8.0 // indirect
125127
github.com/alecthomas/participle/v2 v2.1.1 // indirect
128+
github.com/armon/go-metrics v0.4.1 // indirect
126129
github.com/armon/go-radix v1.0.0 // indirect
130+
github.com/aws/aws-sdk-go v1.53.11 // indirect
127131
github.com/beorn7/perks v1.0.1 // indirect
128132
github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect
129133
github.com/cespare/xxhash/v2 v2.3.0 // indirect
@@ -161,13 +165,21 @@ require (
161165
github.com/google/licenseclassifier v0.0.0-20221004142553-c1ed8fcf4bab // indirect
162166
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
163167
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
168+
github.com/hashicorp/consul/api v1.28.3 // indirect
164169
github.com/hashicorp/errwrap v1.1.0 // indirect
170+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
171+
github.com/hashicorp/go-hclog v1.5.0 // indirect
172+
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
173+
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
174+
github.com/hashicorp/golang-lru v1.0.2 // indirect
165175
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
176+
github.com/hashicorp/serf v0.10.1 // indirect
166177
github.com/iancoleman/strcase v0.3.0 // indirect
167178
github.com/imdario/mergo v0.3.13 // indirect
168179
github.com/inconshreveable/mousetrap v1.1.0 // indirect
169180
github.com/jaypipes/pcidb v1.0.0 // indirect
170181
github.com/jcchavezs/porto v0.1.0 // indirect
182+
github.com/jmespath/go-jmespath v0.4.0 // indirect
171183
github.com/josharian/intern v1.0.0 // indirect
172184
github.com/karrick/godirwalk v1.16.1 // indirect
173185
github.com/klauspost/compress v1.17.8 // indirect
@@ -181,7 +193,7 @@ require (
181193
github.com/mailru/easyjson v0.7.7 // indirect
182194
github.com/markbates/pkger v0.17.0 // indirect
183195
github.com/mattn/go-colorable v0.1.13 // indirect
184-
github.com/mattn/go-isatty v0.0.17 // indirect
196+
github.com/mattn/go-isatty v0.0.20 // indirect
185197
github.com/mattn/go-runewidth v0.0.15 // indirect
186198
github.com/mileusna/useragent v1.3.4 // indirect
187199
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
@@ -195,10 +207,12 @@ require (
195207
github.com/mostynb/go-grpc-compression v1.2.2 // indirect
196208
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
197209
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
210+
github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/ecsutil v0.102.0 // indirect
198211
github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.102.0 // indirect
199212
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.102.0 // indirect
200213
github.com/open-telemetry/opentelemetry-collector-contrib/internal/filter v0.102.0 // indirect
201214
github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig v0.102.0 // indirect
215+
github.com/open-telemetry/opentelemetry-collector-contrib/internal/metadataproviders v0.102.0 // indirect
202216
github.com/open-telemetry/opentelemetry-collector-contrib/internal/sharedcomponent v0.102.0 // indirect
203217
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.102.0 // indirect
204218
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.102.0 // indirect
@@ -265,6 +279,7 @@ require (
265279
go.opentelemetry.io/otel/trace v1.27.0 // indirect
266280
go.opentelemetry.io/proto/otlp v1.2.0 // indirect
267281
go.uber.org/multierr v1.11.0 // indirect
282+
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
268283
golang.org/x/mod v0.17.0 // indirect
269284
golang.org/x/net v0.25.0 // indirect
270285
golang.org/x/oauth2 v0.20.0 // indirect

0 commit comments

Comments
 (0)