Skip to content

Commit fff227d

Browse files
authored
Merge branch 'main' into mx-psi/configoptional-default-for-batch-config
2 parents fa1b29f + 8658c56 commit fff227d

Some content is hidden

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

46 files changed

+330
-567
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: breaking
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: exporterhelper
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Remove all experimental symbols in exporterhelper
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [11143]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: |
19+
They have all been moved to xexporterhelper
20+
21+
# Optional: The change log or logs in which this entry should be included.
22+
# e.g. '[user]' or '[user, api]'
23+
# Include 'user' if the change is relevant to end users.
24+
# Include 'api' if there is a change to a library API.
25+
# Default: '[user]'
26+
change_logs: [api]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: pdata
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Mark featuregate pdata.useCustomProtoEncoding as stable
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [13883]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# Optional: The change log or logs in which this entry should be included.
21+
# e.g. '[user]' or '[user, api]'
22+
# Include 'user' if the change is relevant to end users.
23+
# Include 'api' if there is a change to a library API.
24+
# Default: '[user]'
25+
change_logs: [api, user]

.github/actionlint.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
self-hosted-runner:
2-
labels: []
2+
labels:
3+
# Actionlint doesn't include yet windows-11-arm as a known runner, adding it
4+
# manually, see https://github.com/rhysd/actionlint/issues/533.
5+
- windows-11-arm
36

47
config-variables: null
58

.github/workflows/build-and-test-windows.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
os: [windows-2022, windows-2025]
22+
os: [windows-2022, windows-2025, windows-11-arm]
2323
runs-on: ${{ matrix.os }}
2424
steps:
2525
- name: Checkout Repo
@@ -48,7 +48,7 @@ jobs:
4848
strategy:
4949
fail-fast: false
5050
matrix:
51-
os: [windows-2022, windows-2025]
51+
os: [windows-2022, windows-2025, windows-11-arm]
5252
runs-on: ${{ matrix.os }}
5353
steps:
5454
- name: Checkout Repo
@@ -76,7 +76,7 @@ jobs:
7676

7777
- name: Install otelcorecol as a service
7878
run: |
79-
New-Service -Name "otelcorecol" -StartupType "Manual" -BinaryPathName "${PWD}\bin\otelcorecol_windows_amd64 --config ${PWD}\examples\local\otel-config.yaml"
79+
New-Service -Name "otelcorecol" -StartupType "Manual" -BinaryPathName "${PWD}\bin\otelcorecol_windows_$(go env GOARCH) --config ${PWD}\examples\local\otel-config.yaml"
8080
eventcreate.exe /t information /id 1 /l application /d "Creating event provider for 'otelcorecol'" /so otelcorecol
8181
8282
- name: Test otelcorecol service

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ jobs:
266266
goarch: 386
267267
- goos: windows
268268
goarch: amd64
269+
- goos: windows
270+
goarch: arm64
269271

270272
steps:
271273
- name: Checkout Repo

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
bin/
22
dist/
3-
.tools/
43
/local
54

65
# GoLand IDEA
@@ -37,4 +36,3 @@ go.work*
3736
# npm (used for markdown-link-check)
3837
node_modules/*
3938
package-lock.json
40-

Makefile

Lines changed: 52 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ ALL_DOC := $(shell find . \( -name "*.md" -o -name "*.yaml" \) \
1313
-type f | sort)
1414

1515
# ALL_MODULES includes ./* dirs (excludes . dir)
16-
ALL_MODULES := $(shell find . -type f -name "go.mod" -exec dirname {} \; | sort | grep -E '^./' )
16+
ALL_MODULES := $(shell find . -mindepth 2 \
17+
-type f \
18+
-name "go.mod" \
19+
-not -path "./internal/tools/*" \
20+
-exec dirname {} \; | sort )
1721

1822
CMD?=
1923

@@ -61,8 +65,8 @@ gotest-with-junit:
6165
@$(MAKE) for-all-target TARGET="test-with-junit"
6266

6367
.PHONY: goporto
64-
goporto: $(PORTO)
65-
$(PORTO) -w --include-internal --skip-dirs "^cmd/mdatagen/third_party$$" ./
68+
goporto:
69+
$(GO_TOOL) porto -w --include-internal --skip-dirs "^cmd/mdatagen/third_party$$" ./
6670

6771
.PHONY: for-all
6872
for-all:
@@ -101,8 +105,8 @@ govulncheck:
101105
@$(MAKE) for-all-target TARGET="vulncheck"
102106

103107
.PHONY: addlicense
104-
addlicense: $(ADDLICENSE)
105-
@ADDLICENSEOUT=`$(ADDLICENSE) -s=only -y "" -c "The OpenTelemetry Authors" $(ALL_SRC) 2>&1`; \
108+
addlicense:
109+
@ADDLICENSEOUT=`$(GO_TOOL) addlicense -s=only -y "" -c "The OpenTelemetry Authors" $(ALL_SRC) 2>&1`; \
106110
if [ "$$ADDLICENSEOUT" ]; then \
107111
echo "$(ADDLICENSE) FAILED => add License errors:\n"; \
108112
echo "$$ADDLICENSEOUT\n"; \
@@ -112,7 +116,7 @@ addlicense: $(ADDLICENSE)
112116
fi
113117

114118
.PHONY: checklicense
115-
checklicense: $(ADDLICENSE)
119+
checklicense:
116120
@licRes=$$(for f in $$(find . -type f \( -iname '*.go' -o -iname '*.sh' \) ! -path '**/third_party/*') ; do \
117121
awk '/Copyright The OpenTelemetry Authors|generated|GENERATED/ && NR<=3 { found=1; next } END { if (!found) print FILENAME }' $$f; \
118122
awk '/SPDX-License-Identifier: Apache-2.0|generated|GENERATED/ && NR<=4 { found=1; next } END { if (!found) print FILENAME }' $$f; \
@@ -123,12 +127,12 @@ checklicense: $(ADDLICENSE)
123127
fi
124128

125129
.PHONY: misspell
126-
misspell: $(MISSPELL)
127-
$(MISSPELL) -error $(ALL_DOC)
130+
misspell:
131+
$(GO_TOOL) misspell -error $(ALL_DOC)
128132

129133
.PHONY: misspell-correction
130-
misspell-correction: $(MISSPELL)
131-
$(MISSPELL) -w $(ALL_DOC)
134+
misspell-correction:
135+
$(GO_TOOL) misspell -w $(ALL_DOC)
132136

133137
.PHONY: run
134138
run: otelcorecol
@@ -159,13 +163,13 @@ otelcorecol:
159163
pushd cmd/otelcorecol && CGO_ENABLED=0 $(GOCMD) build -trimpath -o ../../bin/otelcorecol_$(GOOS)_$(GOARCH) -tags "grpcnotrace" ./... && popd
160164

161165
.PHONY: genotelcorecol
162-
genotelcorecol: install-tools
166+
genotelcorecol:
163167
pushd cmd/builder/ && $(GOCMD) run ./ --skip-compilation --config ../otelcorecol/builder-config.yaml --output-path ../otelcorecol && popd
164168
$(MAKE) -C cmd/otelcorecol fmt
165169

166170
.PHONY: actionlint
167-
actionlint: $(ACTIONLINT)
168-
$(ACTIONLINT) -config-file .github/actionlint.yaml -color .github/workflows/*.yml .github/workflows/*.yaml
171+
actionlint:
172+
$(GO_TOOL) actionlint -config-file .github/actionlint.yaml -color .github/workflows/*.yml .github/workflows/*.yaml
169173

170174
.PHONY: ocb
171175
ocb:
@@ -246,13 +250,10 @@ genproto_sub:
246250
@rm -rf $(OPENTELEMETRY_PROTO_SRC_DIR)/*
247251
@rm -rf $(OPENTELEMETRY_PROTO_SRC_DIR)/.* > /dev/null 2>&1 || true
248252

249-
remove-pdatagen:
250-
rm -f .tools/pdatagen
251-
252253
# Generate structs, functions and tests for pdata package. Must be used after any changes
253254
# to proto and after running `make genproto`
254-
genpdata: remove-pdatagen $(PDATAGEN)
255-
$(PDATAGEN)
255+
genpdata:
256+
cd internal/cmd/pdatagen && $(GOCMD) run main.go -C $(SRC_ROOT)
256257
$(MAKE) -C pdata fmt
257258

258259
INTERNAL_PROTO_SRC_DIRS := exporter/exporterhelper/internal/queue pdata/xpdata/request/internal
@@ -321,17 +322,17 @@ certs-dryrun:
321322
@internal/buildscripts/gen-certs.sh -d
322323

323324
.PHONY: checkapi
324-
checkapi: $(CHECKAPI)
325-
$(CHECKAPI) -folder . -config .checkapi.yaml
325+
checkapi:
326+
$(GO_TOOL) checkapi -folder . -config .checkapi.yaml
326327

327328
# Verify existence of READMEs for components specified as default components in the collector.
328329
.PHONY: checkdoc
329-
checkdoc: $(CHECKFILE)
330-
$(CHECKFILE) --project-path $(CURDIR) --component-rel-path $(COMP_REL_PATH) --module-name $(MOD_NAME) --file-name "README.md"
330+
checkdoc:
331+
$(GO_TOOL) checkfile --project-path $(CURDIR) --component-rel-path $(COMP_REL_PATH) --module-name $(MOD_NAME) --file-name "README.md"
331332

332333
# Construct new API state snapshots
333334
.PHONY: apidiff-build
334-
apidiff-build: $(APIDIFF)
335+
apidiff-build:
335336
@$(foreach pkg,$(ALL_PKGS),$(call exec-command,./internal/buildscripts/gen-apidiff.sh -p $(pkg)))
336337

337338
# If we are running in CI, change input directory
@@ -343,33 +344,33 @@ endif
343344

344345
# Compare API state snapshots
345346
.PHONY: apidiff-compare
346-
apidiff-compare: $(APIDIFF)
347+
apidiff-compare:
347348
@$(foreach pkg,$(ALL_PKGS),$(call exec-command,./internal/buildscripts/compare-apidiff.sh -p $(pkg)))
348349

349350
.PHONY: multimod-verify
350-
multimod-verify: $(MULTIMOD)
351+
multimod-verify:
351352
@echo "Validating versions.yaml"
352-
$(MULTIMOD) verify
353+
$(GO_TOOL) multimod verify
353354

354355
MODSET?=stable
355356
.PHONY: multimod-prerelease
356-
multimod-prerelease: $(MULTIMOD)
357-
$(MULTIMOD) prerelease -s=true -b=false -v ./versions.yaml -m ${MODSET}
357+
multimod-prerelease:
358+
$(GO_TOOL) multimod prerelease -s=true -b=false -v ./versions.yaml -m ${MODSET}
358359
$(MAKE) gotidy
359360

360361
COMMIT?=HEAD
361362
REMOTE?[email protected]:open-telemetry/opentelemetry-collector.git
362363
.PHONY: push-tags
363-
push-tags: $(MULTIMOD)
364-
$(MULTIMOD) verify
365-
set -e; for tag in `$(MULTIMOD) tag -m ${MODSET} -c ${COMMIT} --print-tags | grep -v "Using" `; do \
364+
push-tags:
365+
$(GO_TOOL) multimod verify
366+
set -e; for tag in `$(GO_TOOL) multimod tag -m ${MODSET} -c ${COMMIT} --print-tags | grep -v "Using" `; do \
366367
echo "pushing tag $${tag}"; \
367368
git push ${REMOTE} $${tag}; \
368369
done;
369370

370371
.PHONY: check-changes
371-
check-changes: $(MULTIMOD)
372-
$(MULTIMOD) diff -p $(PREVIOUS_VERSION) -m $(MODSET)
372+
check-changes:
373+
$(GO_TOOL) multimod diff -p $(PREVIOUS_VERSION) -m $(MODSET)
373374

374375
.PHONY: prepare-release
375376
prepare-release:
@@ -429,29 +430,29 @@ checklinks:
429430
# error message "failed to sync logger: sync /dev/stderr: inappropriate ioctl for device"
430431
# is a known issue but does not affect function.
431432
.PHONY: crosslink
432-
crosslink: $(CROSSLINK)
433+
crosslink:
433434
@echo "Executing crosslink"
434-
$(CROSSLINK) --root=$(shell pwd) --prune
435+
$(GO_TOOL) crosslink --root=$(shell pwd) --prune
435436

436437
FILENAME?=$(shell git branch --show-current)
437438
.PHONY: chlog-new
438-
chlog-new: $(CHLOGGEN)
439-
$(CHLOGGEN) new --config $(CHLOGGEN_CONFIG) --filename $(FILENAME)
439+
chlog-new:
440+
$(GO_TOOL) chloggen new --config $(CHLOGGEN_CONFIG) --filename $(FILENAME)
440441

441442
.PHONY: chlog-validate
442-
chlog-validate: $(CHLOGGEN)
443-
$(CHLOGGEN) validate --config $(CHLOGGEN_CONFIG)
443+
chlog-validate:
444+
$(GO_TOOL) chloggen validate --config $(CHLOGGEN_CONFIG)
444445

445446
.PHONY: chlog-preview
446-
chlog-preview: $(CHLOGGEN)
447-
$(CHLOGGEN) update --config $(CHLOGGEN_CONFIG) --dry
447+
chlog-preview:
448+
$(GO_TOOL) chloggen update --config $(CHLOGGEN_CONFIG) --dry
448449

449450
.PHONY: chlog-update
450-
chlog-update: $(CHLOGGEN)
451-
$(CHLOGGEN) update --config $(CHLOGGEN_CONFIG) --version $(VERSION)
451+
chlog-update:
452+
$(GO_TOOL) chloggen update --config $(CHLOGGEN_CONFIG) --version $(VERSION)
452453

453454
.PHONY: builder-integration-test
454-
builder-integration-test: $(ENVSUBST)
455+
builder-integration-test:
455456
cd ./cmd/builder && ./test/test.sh
456457

457458
.PHONY: mdatagen-test
@@ -462,16 +463,16 @@ mdatagen-test:
462463
cd cmd/mdatagen && $(GOCMD) test ./...
463464

464465
.PHONY: generate-gh-issue-templates
465-
generate-gh-issue-templates: $(GITHUBGEN)
466-
$(GITHUBGEN) issue-templates
466+
generate-gh-issue-templates:
467+
$(GO_TOOL) githubgen issue-templates
467468

468469
.PHONY: generate-codeowners
469-
generate-codeowners: $(GITHUBGEN)
470-
$(GITHUBGEN) --default-codeowner "open-telemetry/collector-approvers" codeowners
470+
generate-codeowners:
471+
$(GO_TOOL) githubgen --default-codeowner "open-telemetry/collector-approvers" codeowners
471472

472473
.PHONY: gengithub
473-
gengithub: $(GITHUBGEN) generate-codeowners generate-gh-issue-templates
474+
gengithub: generate-codeowners generate-gh-issue-templates
474475

475476
.PHONY: gendistributions
476-
gendistributions: $(GITHUBGEN)
477-
$(GITHUBGEN) distributions
477+
gendistributions:
478+
$(GO_TOOL) githubgen distributions

0 commit comments

Comments
 (0)