opentelemetry_trace_service.proto 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2019, OpenTelemetry Authors
  2. //
  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
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  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.
  14. syntax = "proto3";
  15. package opentelemetry.proto.collector.trace.v1;
  16. import "opentelemetry_trace.proto";
  17. // Service that can be used to push spans between one Application instrumented with
  18. // OpenTelemetry and a collector, or between a collector and a central collector (in this
  19. // case spans are sent/received to/from multiple Applications).
  20. service TraceService {
  21. // For performance reasons, it is recommended to keep this RPC
  22. // alive for the entire life of the application.
  23. rpc Export(ExportTraceServiceRequest) returns (ExportTraceServiceResponse) {}
  24. }
  25. message ExportTraceServiceRequest {
  26. // An array of ResourceSpans.
  27. // For data coming from a single resource this array will typically contain one
  28. // element. Intermediary nodes (such as OpenTelemetry Collector) that receive
  29. // data from multiple origins typically batch the data before forwarding further and
  30. // in that case this array will contain multiple elements.
  31. repeated opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1;
  32. }
  33. message ExportTraceServiceResponse {
  34. }