Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add experimental otelcol sidecar #623

Merged
merged 2 commits into from
Dec 13, 2023
Merged

feat: add experimental otelcol sidecar #623

merged 2 commits into from
Dec 13, 2023

Conversation

swiatekm
Copy link

Add the build infrastructure for a sidecar using Otelcol. This isn't used anywhere yet, and only allows the sidecar to be built locally. We use otelcolbuilder and goreleaser, plus a Makefile to manage them.

@swiatekm swiatekm requested a review from a team as a code owner December 12, 2023 15:33
@kasia-kujawa
Copy link
Contributor

Problem with building on mac

% make build
  • starting release...
  • loading                                          path=.goreleaser.yaml
  • skipping announce, publish and validate...
  • loading environment variables
  • getting and validating git state
    • git state                                      commit=074ad4d9c4cd455ebd4351afae513520d78726fa branch=feat/otelcol-sidecar current_tag=v0.9.0 previous_tag=v0.8.0 dirty=false
    • pipe skipped                                   reason=disabled during snapshot mode
    • took: 1s
  • parsing tag
  • setting defaults
    • pipe skipped                                   reason=release is disabled
  • snapshotting
    • building snapshot...                           version=0.9.0-SNAPSHOT-074ad4d
  • running before hooks
    • running                                        hook=make generate-sources VERSION={{ .Version }}
    • took: 18s
  • checking distribution directory
  • loading go mod information
    • pipe skipped                                   reason=not a go module
  • build prerequisites
  • writing effective config file
    • writing                                        config=dist/config.yaml
  • building binaries
    • building                                       binary=dist/otelcol-sidecar_linux_arm64/otelcol-sidecar
    • building                                       binary=dist/otelcol-sidecar_linux_amd64_v1/otelcol-sidecar
  ⨯ release failed after 19s                 error=failed to build for linux_arm64: exit status 1: go: cannot find main module, but found .git/config in /Users/kkujawa/git/tailing-sidecar/changed/tailing-sidecar
        to create a module there, run:
        cd ../.. && go mod init

make: *** [build] Error 1

@swiatekm swiatekm merged commit 4da64f9 into main Dec 13, 2023
7 checks passed
@swiatekm swiatekm deleted the feat/otelcol-sidecar branch December 13, 2023 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants