graylog2-server/src/main/proto/README.md
The .proto files in this directory and its subdirectories are used to generate Java source files
during the Maven build process.
We maintain a copy of the protobuf specs from the OpenTelemetry Protocol (OTLP) Specification repository.
These are required as dependencies for the otel-raw-journal-record.proto spec.
We also maintain a copy of the protobuf specs from the OpAMP Specification repository.
These are used for the OpAMP-based sidecar communication.
To update the proto specs, edit the version numbers at the top of the fetch_upstream_protos.sh script
and then run it:
./fetch_upstream_protos.sh
The script will download the release archives and extract the .proto files into ./opentelemetry
and ./opamp, maintaining the directory structure.
Note: The script requires GNU tar. On macOS, install it with
brew install gnu-tarand run:bashTAR_BIN=gtar ./fetch_upstream_protos.sh