Skip to content

Fixes transitive dependency of Prometheus package #1371

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

Merged
merged 1 commit into from
Jul 15, 2020
Merged

Fixes transitive dependency of Prometheus package #1371

merged 1 commit into from
Jul 15, 2020

Conversation

lizthegrey
Copy link
Member

Description:
Fixes failure to tidy/build on downstream packages that import otel collector due to stale google.golang.org/api package.

Link to tracking Issue:
Closes #1366

Testing:
CircleCI

Documentation:
No docs needed.

@codecov
Copy link

codecov bot commented Jul 15, 2020

Codecov Report

Merging #1371 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1371   +/-   ##
=======================================
  Coverage   90.14%   90.14%           
=======================================
  Files         218      218           
  Lines       15256    15256           
=======================================
  Hits        13752    13752           
  Misses       1095     1095           
  Partials      409      409           
Impacted Files Coverage Δ
translator/internaldata/resource_to_oc.go 86.04% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b964ca4...b31d25f. Read the comment docs.

@lizthegrey
Copy link
Member Author

CI passed, ignore the build error from a previous run. fyi @bogdandrutu

@bogdandrutu bogdandrutu merged commit 9461873 into open-telemetry:master Jul 15, 2020
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
* Rework proto generation

The changes here are:

- Fix the default goal (using "default" target is not doing it).

- Bail out with a useful message if proto submodule is not checked
  out.

- Replace the use of docker image with downloading the protoc binary
  and building the gogofast plugin ourselves. This gives us a greater
  control over the invocation of protoc.

- Use rsync to copy the generated code, instead of pax. Pax did not
  work for me (it was complaining about the unknown -0 flag).

The control over the protoc invocation will be useful later, when we
will want to generate a code with data structures in one place and the
collector code elsewhere. The collector code may or may not depend on
gRPC, but data structures have no need for it. This split will happen
when we move the gRPC code out of the OTLP exporter module into a
submodule.

Getting rid of docker has the upside that the generated files do not
belong to root, so there is no hassle of changing the ownership of the
files, and it is not requires to use sudo for the `clean` target. And
not using docker is faster.

The downside of this work is that it depends on more tools: rsync,
unzip and wget. I can only hope that macOS users have those tools too,
and that those tools are invoked the same.

* Update protogen workflow
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.

ftbfs: google.golang.org/grpc/naming does not exist
2 participants