skywalking.proto 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. syntax = "proto3";
  2. package envoy.config.trace.v3;
  3. import "envoy/config/core/v3/grpc_service.proto";
  4. import "google/protobuf/wrappers.proto";
  5. import "udpa/annotations/migrate.proto";
  6. import "udpa/annotations/sensitive.proto";
  7. import "udpa/annotations/status.proto";
  8. import "validate/validate.proto";
  9. option java_package = "io.envoyproxy.envoy.config.trace.v3";
  10. option java_outer_classname = "SkywalkingProto";
  11. option java_multiple_files = true;
  12. option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/trace/v3;tracev3";
  13. option (udpa.annotations.file_migrate).move_to_package =
  14. "envoy.extensions.tracers.skywalking.v4alpha";
  15. option (udpa.annotations.file_status).package_version_status = ACTIVE;
  16. // [#protodoc-title: SkyWalking tracer]
  17. // Configuration for the SkyWalking tracer. Please note that if SkyWalking tracer is used as the
  18. // provider of http tracer, then
  19. // :ref:`start_child_span <envoy_v3_api_field_extensions.filters.http.router.v3.Router.start_child_span>`
  20. // in the router must be set to true to get the correct topology and tracing data. Moreover, SkyWalking
  21. // Tracer does not support SkyWalking extension header (``sw8-x``) temporarily.
  22. // [#extension: envoy.tracers.skywalking]
  23. message SkyWalkingConfig {
  24. // SkyWalking collector service.
  25. core.v3.GrpcService grpc_service = 1 [(validate.rules).message = {required: true}];
  26. ClientConfig client_config = 2;
  27. }
  28. // Client config for SkyWalking tracer.
  29. message ClientConfig {
  30. // Service name for SkyWalking tracer. If this field is empty, then local service cluster name
  31. // that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
  32. // message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line
  33. // option :option:`--service-cluster` will be used. If both this field and local service cluster
  34. // name are empty, ``EnvoyProxy`` is used as the service name by default.
  35. string service_name = 1;
  36. // Service instance name for SkyWalking tracer. If this field is empty, then local service node
  37. // that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>`
  38. // message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line option
  39. // :option:`--service-node` will be used. If both this field and local service node are empty,
  40. // ``EnvoyProxy`` is used as the instance name by default.
  41. string instance_name = 2;
  42. // Authentication token config for SkyWalking. SkyWalking can use token authentication to secure
  43. // that monitoring application data can be trusted. In current version, Token is considered as a
  44. // simple string.
  45. // [#comment:TODO(wbpcode): Get backend token through the SDS API.]
  46. oneof backend_token_specifier {
  47. // Inline authentication token string.
  48. string backend_token = 3 [(udpa.annotations.sensitive) = true];
  49. }
  50. // Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable.
  51. // This field specifies the maximum number of segments that can be cached. If not specified, the
  52. // default is 1024.
  53. google.protobuf.UInt32Value max_cache_size = 4;
  54. }