opencensus.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. syntax = "proto3";
  2. package envoy.config.trace.v2;
  3. import "envoy/api/v2/core/grpc_service.proto";
  4. import "opencensus/proto/trace/v1/trace_config.proto";
  5. import "udpa/annotations/status.proto";
  6. option java_package = "io.envoyproxy.envoy.config.trace.v2";
  7. option java_outer_classname = "OpencensusProto";
  8. option java_multiple_files = true;
  9. option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/trace/v2;tracev2";
  10. option (udpa.annotations.file_status).package_version_status = FROZEN;
  11. // [#protodoc-title: OpenCensus tracer]
  12. // Configuration for the OpenCensus tracer.
  13. // [#next-free-field: 15]
  14. // [#extension: envoy.tracers.opencensus]
  15. message OpenCensusConfig {
  16. enum TraceContext {
  17. // No-op default, no trace context is utilized.
  18. NONE = 0;
  19. // W3C Trace-Context format "traceparent:" header.
  20. TRACE_CONTEXT = 1;
  21. // Binary "grpc-trace-bin:" header.
  22. GRPC_TRACE_BIN = 2;
  23. // "X-Cloud-Trace-Context:" header.
  24. CLOUD_TRACE_CONTEXT = 3;
  25. // X-B3-* headers.
  26. B3 = 4;
  27. }
  28. reserved 7;
  29. // Configures tracing, e.g. the sampler, max number of annotations, etc.
  30. opencensus.proto.trace.v1.TraceConfig trace_config = 1;
  31. // Enables the stdout exporter if set to true. This is intended for debugging
  32. // purposes.
  33. bool stdout_exporter_enabled = 2;
  34. // Enables the Stackdriver exporter if set to true. The project_id must also
  35. // be set.
  36. bool stackdriver_exporter_enabled = 3;
  37. // The Cloud project_id to use for Stackdriver tracing.
  38. string stackdriver_project_id = 4;
  39. // (optional) By default, the Stackdriver exporter will connect to production
  40. // Stackdriver. If stackdriver_address is non-empty, it will instead connect
  41. // to this address, which is in the gRPC format:
  42. // https://github.com/grpc/grpc/blob/master/doc/naming.md
  43. string stackdriver_address = 10;
  44. // (optional) The gRPC server that hosts Stackdriver tracing service. Only
  45. // Google gRPC is supported. If :ref:`target_uri <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.target_uri>`
  46. // is not provided, the default production Stackdriver address will be used.
  47. api.v2.core.GrpcService stackdriver_grpc_service = 13;
  48. // Enables the Zipkin exporter if set to true. The url and service name must
  49. // also be set.
  50. bool zipkin_exporter_enabled = 5;
  51. // The URL to Zipkin, e.g. "http://127.0.0.1:9411/api/v2/spans"
  52. string zipkin_url = 6;
  53. // Enables the OpenCensus Agent exporter if set to true. The ocagent_address or
  54. // ocagent_grpc_service must also be set.
  55. bool ocagent_exporter_enabled = 11;
  56. // The address of the OpenCensus Agent, if its exporter is enabled, in gRPC
  57. // format: https://github.com/grpc/grpc/blob/master/doc/naming.md
  58. // [#comment:TODO: deprecate this field]
  59. string ocagent_address = 12;
  60. // (optional) The gRPC server hosted by the OpenCensus Agent. Only Google gRPC is supported.
  61. // This is only used if the ocagent_address is left empty.
  62. api.v2.core.GrpcService ocagent_grpc_service = 14;
  63. // List of incoming trace context headers we will accept. First one found
  64. // wins.
  65. repeated TraceContext incoming_trace_context = 8;
  66. // List of outgoing trace context headers we will produce.
  67. repeated TraceContext outgoing_trace_context = 9;
  68. }