1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/internal
Krzesimir Nowak 0021ab0a3a
Rework proto generation (#1371)
* 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
2020-12-07 09:36:06 -08:00
..
baggage Add Baggage API and move Baggage propagator (#1217) 2020-10-05 11:25:09 -04:00
global Pass options to configured TracerProvider (#1329) 2020-11-17 10:02:21 -08:00
matchers Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
metric Move Version function and code from global to toplevel (#1330) 2020-11-16 09:30:54 -08:00
testing Unify trace and metric exporter helpers (#944) 2020-07-22 11:57:48 -07:00
tools Rework proto generation (#1371) 2020-12-07 09:36:06 -08:00
trace Move tracing code to trace package (#1307) 2020-11-06 17:13:31 -05:00
rawhelpers.go Unify api/label and api/kv in new label package (#1060) 2020-08-17 20:25:03 -07:00