1 // Copyright 2020, OpenTelemetry Authors
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
17 package opentelemetry.proto.collector.logs.v1;
19 import "opentelemetry/proto/logs/v1/logs.proto";
21 option java_multiple_files = true;
22 option java_package = "io.opentelemetry.proto.collector.logs.v1";
23 option java_outer_classname = "LogsServiceProto";
24 option go_package = "go.opentelemetry.io/proto/otlp/collector/logs/v1";
26 // Service that can be used to push logs between one Application instrumented with
27 // OpenTelemetry and an collector, or between an collector and a central collector (in this
28 // case logs are sent/received to/from multiple Applications).
30 // For performance reasons, it is recommended to keep this RPC
31 // alive for the entire life of the application.
32 rpc Export(ExportLogsServiceRequest) returns (ExportLogsServiceResponse) {}
35 message ExportLogsServiceRequest {
36 // An array of ResourceLogs.
37 // For data coming from a single resource this array will typically contain one
38 // element. Intermediary nodes (such as OpenTelemetry Collector) that receive
39 // data from multiple origins typically batch the data before forwarding further and
40 // in that case this array will contain multiple elements.
41 repeated opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
44 message ExportLogsServiceResponse {