-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathbuild.rs
28 lines (24 loc) · 1.08 KB
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// SPDX-License-Identifier: Apache-2.0
//! A build script to generate the gRPC OTLP receiver API (client and server stubs.
fn main() -> Result<(), Box<dyn std::error::Error>> {
// The gRPC OTLP Receiver is vendored in `src/otlp_receiver/receiver` to avoid
// depending on protoc in GitHub Actions.
//
// To regenerate the gRPC API from the proto file:
// - Uncomment the following lines.
// - Run `cargo build` to regenerate the API.
// - Comment the following lines.
// - Commit the changes.
// tonic_build::configure()
// // .build_client(false)
// .out_dir("src/registry/otlp/grpc_stubs")
// .compile_protos(
// &[
// "src/registry/otlp/proto/opentelemetry/proto/collector/logs/v1/logs_service.proto",
// "src/registry/otlp/proto/opentelemetry/proto/collector/metrics/v1/metrics_service.proto",
// "src/registry/otlp/proto/opentelemetry/proto/collector/trace/v1/trace_service.proto",
// ],
// &["src/registry/otlp/proto"],
// )?;
Ok(())
}