opentelemetry_proto/
proto.rs

1pub const LOGS_REQUEST_MESSAGE_TYPE: &str =
2    "opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest";
3pub const TRACES_REQUEST_MESSAGE_TYPE: &str =
4    "opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest";
5pub const METRICS_REQUEST_MESSAGE_TYPE: &str =
6    "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest";
7
8// JSON names (camelCase) for the same fields, used when use_json_names is enabled
9pub const RESOURCE_LOGS_JSON_FIELD: &str = "resourceLogs";
10pub const RESOURCE_METRICS_JSON_FIELD: &str = "resourceMetrics";
11pub const RESOURCE_SPANS_JSON_FIELD: &str = "resourceSpans";
12
13/// Service stub and clients.
14pub mod collector {
15    pub mod trace {
16        pub mod v1 {
17            tonic::include_proto!("opentelemetry.proto.collector.trace.v1");
18        }
19    }
20    pub mod logs {
21        pub mod v1 {
22            tonic::include_proto!("opentelemetry.proto.collector.logs.v1");
23        }
24    }
25    pub mod metrics {
26        pub mod v1 {
27            tonic::include_proto!("opentelemetry.proto.collector.metrics.v1");
28        }
29    }
30}
31
32/// Common types used across all event types.
33pub mod common {
34    pub mod v1 {
35        tonic::include_proto!("opentelemetry.proto.common.v1");
36    }
37}
38
39/// Generated types used for logs.
40pub mod logs {
41    pub mod v1 {
42        tonic::include_proto!("opentelemetry.proto.logs.v1");
43    }
44}
45
46/// Generated types used for metrics.
47pub mod metrics {
48    pub mod v1 {
49        tonic::include_proto!("opentelemetry.proto.metrics.v1");
50    }
51}
52
53/// Generated types used for trace.
54pub mod trace {
55    pub mod v1 {
56        tonic::include_proto!("opentelemetry.proto.trace.v1");
57    }
58}
59
60/// Generated types used in resources.
61pub mod resource {
62    pub mod v1 {
63        tonic::include_proto!("opentelemetry.proto.resource.v1");
64    }
65}
66
67/// The raw descriptor bytes for all the above.
68include!(concat!(env!("OUT_DIR"), "/opentelemetry-proto.rs"));