Skip to content

Commit

Permalink
Merge branch 'main' into add-component-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
iblancasa authored Nov 14, 2024
2 parents 9632327 + 4be4fd3 commit a39f9d4
Show file tree
Hide file tree
Showing 9 changed files with 877 additions and 789 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM registry.access.redhat.com/ubi9/ubi-minimal as builder

RUN microdnf -y install which go-toolset make
RUN microdnf -y install which golang make
WORKDIR /opt/app-root/src
COPY . .
USER root
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
GO ?= $(shell which go)
OTELCOL_VERSION ?= 0.107.0
# TODO: Align the ocb version with the collector version as soon as the ubi go 1.21 is supported.
OCB_VERSION ?= 0.107.0
OTELCOL_VERSION ?= 0.112.0
OCB_VERSION ?= $(OTELCOL_VERSION)
OTELCOL_BUILDER_DIR ?= ${PWD}/bin
OTELCOL_BUILDER ?= ${OTELCOL_BUILDER_DIR}/ocb
PROJECT ?= opentelemetry-collector
Expand All @@ -13,6 +12,10 @@ build: ocb
mkdir -p _build
${OTELCOL_BUILDER} --skip-compilation=false --go ${GO} --config manifest.yaml 2>&1 | tee _build/build.log

build-in-podman:
podman run -v $$PWD:/app -w /app --security-opt label=disable registry.access.redhat.com/ubi9/ubi-minimal \
/bin/sh -c "microdnf -y install make which golang git && make build"

generate-sources: ocb
@mkdir -p _build
${OTELCOL_BUILDER} --skip-compilation=true --go ${GO} --config manifest.yaml 2>&1 | tee _build/build.log
Expand Down
14 changes: 7 additions & 7 deletions _build/build.log
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Flag --go has been deprecated, use config distribution::go
2024-10-15T10:32:23.485+0200 INFO internal/command.go:125 OpenTelemetry Collector Builder {"version": "(devel)"}
2024-10-15T10:32:23.486+0200 INFO internal/command.go:161 Using config file {"path": "manifest.yaml"}
2024-10-15T10:32:23.504+0200 INFO builder/config.go:142 Using go {"go-executable": "/home/ploffay/bin/go/bin/go"}
2024-10-15T10:32:23.508+0200 INFO builder/main.go:100 Sources created {"path": "./_build"}
2024-10-15T10:32:28.463+0200 INFO builder/main.go:191 Getting go modules
2024-10-15T10:32:29.131+0200 INFO builder/main.go:111 Compiling
2024-10-15T10:33:05.626+0200 INFO builder/main.go:130 Compiled {"binary": "./_build/otelcol"}
2024-11-12T16:52:14.811Z INFO internal/command.go:125 OpenTelemetry Collector Builder {"version": "0.112.0"}
2024-11-12T16:52:14.812Z INFO internal/command.go:161 Using config file {"path": "manifest.yaml"}
2024-11-12T16:52:14.880Z INFO builder/config.go:142 Using go {"go-executable": "/usr/bin/go"}
2024-11-12T16:52:14.882Z INFO builder/main.go:101 Sources created {"path": "./_build"}
2024-11-12T16:52:36.302Z INFO builder/main.go:192 Getting go modules
2024-11-12T16:52:56.469Z INFO builder/main.go:112 Compiling
2024-11-12T16:54:01.093Z INFO builder/main.go:131 Compiled {"binary": "./_build/otelcol"}
109 changes: 53 additions & 56 deletions _build/components.go

Large diffs are not rendered by default.

452 changes: 238 additions & 214 deletions _build/go.mod

Large diffs are not rendered by default.

961 changes: 509 additions & 452 deletions _build/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _build/main.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 59 additions & 54 deletions manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,65 +2,70 @@ dist:
module: github.com/os-observability/redhat-opentelemetry-collector
name: otelcol
description: OpenTelemetry Collector
version: 0.107.0
version: 0.112.0
output_path: ./_build
otelcol_version: 0.107.0
otelcol_version: 0.112.0

receivers:
- gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jaegerreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/opencensusreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kafkareceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/journaldreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8seventsreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sobjectsreceiver v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/otlpjsonfilereceiver v0.107.0
- gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jaegerreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/opencensusreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kafkareceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/journaldreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8seventsreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sobjectsreceiver v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/otlpjsonfilereceiver v0.112.0

exporters:
- gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.107.0
- gomod: go.opentelemetry.io/collector/exporter/loggingexporter v0.107.0
- gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.107.0
- gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awscloudwatchlogsexporter v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsemfexporter v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsxrayexporter v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter v0.107.0
- gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.112.0
- gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.112.0
- gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awscloudwatchlogsexporter v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsemfexporter v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsxrayexporter v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.112.0
extensions:
- gomod: go.opentelemetry.io/collector/extension/zpagesextension v0.107.0
- gomod: go.opentelemetry.io/collector/extension/ballastextension v0.107.0
- gomod: go.opentelemetry.io/collector/extension/memorylimiterextension v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/jaegerremotesampling v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/healthcheckextension v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/pprofextension v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/oauth2clientauthextension v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/oidcauthextension v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage v0.107.0
- gomod: go.opentelemetry.io/collector/extension/zpagesextension v0.112.0
- gomod: go.opentelemetry.io/collector/extension/memorylimiterextension v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/jaegerremotesampling v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/healthcheckextension v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/pprofextension v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/oauth2clientauthextension v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/oidcauthextension v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage v0.112.0
processors:
- gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.107.0
- gomod: go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/routingprocessor v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/cumulativetodeltaprocessor v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbyattrsprocessor v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.107.0
- gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.112.0
- gomod: go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/routingprocessor v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/cumulativetodeltaprocessor v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbyattrsprocessor v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.112.0
connectors:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/routingconnector v0.107.0
- gomod: go.opentelemetry.io/collector/connector/forwardconnector v0.107.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector v0.112.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/routingconnector v0.112.0
- gomod: go.opentelemetry.io/collector/connector/forwardconnector v0.112.0
providers:
- gomod: go.opentelemetry.io/collector/confmap/provider/envprovider v1.18.0
- gomod: go.opentelemetry.io/collector/confmap/provider/fileprovider v1.18.0
- gomod: go.opentelemetry.io/collector/confmap/provider/httpprovider v1.18.0
- gomod: go.opentelemetry.io/collector/confmap/provider/httpsprovider v1.18.0
- gomod: go.opentelemetry.io/collector/confmap/provider/yamlprovider v1.18.0
4 changes: 3 additions & 1 deletion opentelemetry-collector.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Collector with the supported components for a Red Hat build of OpenTelemetry}
%global godocs README.md

Name: %%PROJECT%%
Release: 2%{?dist}
Release: 1%{?dist}
Summary: Red Hat build of OpenTelemetry

License: Apache-2.0
Expand Down Expand Up @@ -102,6 +102,8 @@ fi
%{_bindir}/*

%changelog
* Wed Nov 13 2024 Andreas Gerstmayr <agerstmayr@redhat.com> - 0.112.0-1
- bump collector version to 0.112.0
* Thu Sep 12 2024 Felix Kolwa <fkolwa@redhat.com> - 0.107.0-2
- Fix SELinux policy resource names
- Use sources for SELinux resources in spec file
Expand Down

0 comments on commit a39f9d4

Please sign in to comment.