lightstep.proto 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. syntax = "proto3";
  2. package envoy.config.trace.v3;
  3. import "envoy/config/core/v3/base.proto";
  4. import "envoy/annotations/deprecation.proto";
  5. import "udpa/annotations/migrate.proto";
  6. import "udpa/annotations/status.proto";
  7. import "udpa/annotations/versioning.proto";
  8. import "validate/validate.proto";
  9. option java_package = "io.envoyproxy.envoy.config.trace.v3";
  10. option java_outer_classname = "LightstepProto";
  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.lightstep.v4alpha";
  15. option (udpa.annotations.file_status).package_version_status = ACTIVE;
  16. // [#protodoc-title: LightStep tracer]
  17. // Configuration for the LightStep tracer.
  18. // [#extension: envoy.tracers.lightstep]
  19. message LightstepConfig {
  20. option (udpa.annotations.versioning).previous_message_type =
  21. "envoy.config.trace.v2.LightstepConfig";
  22. // Available propagation modes
  23. enum PropagationMode {
  24. // Propagate trace context in the single header x-ot-span-context.
  25. ENVOY = 0;
  26. // Propagate trace context using LightStep's native format.
  27. LIGHTSTEP = 1;
  28. // Propagate trace context using the b3 format.
  29. B3 = 2;
  30. // Propagation trace context using the w3 trace-context standard.
  31. TRACE_CONTEXT = 3;
  32. }
  33. // The cluster manager cluster that hosts the LightStep collectors.
  34. string collector_cluster = 1 [(validate.rules).string = {min_len: 1}];
  35. // File containing the access token to the `LightStep
  36. // <https://lightstep.com/>`_ API.
  37. string access_token_file = 2
  38. [deprecated = true, (envoy.annotations.deprecated_at_minor_version) = "3.0"];
  39. // Access token to the `LightStep <https://lightstep.com/>`_ API.
  40. core.v3.DataSource access_token = 4;
  41. // Propagation modes to use by LightStep's tracer.
  42. repeated PropagationMode propagation_modes = 3
  43. [(validate.rules).repeated = {items {enum {defined_only: true}}}];
  44. }