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

Document the examples, including Docker instructions; add BUILDING.md, update all READMEs #92

Merged
merged 16 commits into from
Nov 10, 2023

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Nov 9, 2023

This PR (at last!) fixes a number of outstanding Golang module issues. We now use a checked-in go.work file.

The important aspect of this change, for the go.work approach to work, involves using the OTC builder with its --skip-get-modules flag set. This allows the go.work file to be used instead, and we now call go work sync instead.

There are no more replace statements in any of the go.mod files, so single-line commands will now work (after the next release).

The new BUILDING.md instructions explains how to build either with a local Golang toolchain, or using a Docker Golang toolchain. Each example has been tested and updated for a number of minor changes, including:

  • batchprocessor -> concurrentbatchprocessor
  • loggingexporter -> debugexporter
  • eliminate arrow::disabled flags
  • consistent port numbering
  • working printer example (now with fewer dependencies)
  • one fewer examples, there was a little redundancy.

Fixes #72.

@jmacd jmacd mentioned this pull request Nov 9, 2023
@jmacd jmacd changed the title WIP: Testing the use of go.work, update local build instructions, docker build instructions Document the examples, including Docker instructions; add BUILDING.md, update all REAMDEs Nov 9, 2023
@jmacd jmacd marked this pull request as ready for review November 10, 2023 00:02
@jmacd
Copy link
Contributor Author

jmacd commented Nov 10, 2023

@codeboten deserves a bunch of credit for eliminating module inconsistencies in our dependencies! 🥳

@jmacd jmacd changed the title Document the examples, including Docker instructions; add BUILDING.md, update all REAMDEs Document the examples, including Docker instructions; add BUILDING.md, update all READMEs Nov 10, 2023
Copy link
Contributor

@lquerel lquerel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waou very nice PR!

@lquerel
Copy link
Contributor

lquerel commented Nov 10, 2023

@codeboten deserves a bunch of credit for eliminating module inconsistencies in our dependencies! 🥳
@jmacd @codeboten

Thank you both. This PR is just what we needed to be able to open/launch this project to a wider audience!

jmacd and others added 2 commits November 9, 2023 18:03
Co-authored-by: Laurent Quérel <laurent.querel@gmail.com>
@jmacd jmacd merged commit 561a2d6 into open-telemetry:main Nov 10, 2023
@jmacd jmacd deleted the jmacd/buildit branch November 10, 2023 02:09
jmacd added a commit that referenced this pull request Nov 10, 2023
This trims the dependencies of the core modules. It's been on my
wishlist forever!

Note in particular the obfuscation processor has some wild dependencies
and I don't want them in production. No issue was filed about this, we
were just stuck with all the Go module problems and doing the best we
could until #92 introduced the `go.work` file now used.

This PR was going to be only go.mod changes, but I observed a
pre-existing test failure. Part of #96.
jmacd added a commit that referenced this pull request Nov 10, 2023
Noticed some bugs in the recent changes from #92, fixed here.
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.

Document ways for a user to test/run the Arrow collector
2 participants