xref: /aosp_15_r20/external/grpc-grpc-java/xds/third_party/envoy/src/main/proto/envoy/config/trace/v3/lightstep.proto (revision e07d83d3ffcef9ecfc9f7f475418ec639ff0e5fe)
1syntax = "proto3";
2
3package envoy.config.trace.v3;
4
5import "envoy/config/core/v3/base.proto";
6
7import "envoy/annotations/deprecation.proto";
8import "udpa/annotations/migrate.proto";
9import "udpa/annotations/status.proto";
10import "udpa/annotations/versioning.proto";
11import "validate/validate.proto";
12
13option java_package = "io.envoyproxy.envoy.config.trace.v3";
14option java_outer_classname = "LightstepProto";
15option java_multiple_files = true;
16option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/trace/v3;tracev3";
17option (udpa.annotations.file_migrate).move_to_package =
18    "envoy.extensions.tracers.lightstep.v4alpha";
19option (udpa.annotations.file_status).package_version_status = ACTIVE;
20
21// [#protodoc-title: LightStep tracer]
22
23// Configuration for the LightStep tracer.
24// [#extension: envoy.tracers.lightstep]
25// [#not-implemented-hide:]
26message LightstepConfig {
27  option (udpa.annotations.versioning).previous_message_type =
28      "envoy.config.trace.v2.LightstepConfig";
29
30  // Available propagation modes
31  enum PropagationMode {
32    // Propagate trace context in the single header x-ot-span-context.
33    ENVOY = 0;
34
35    // Propagate trace context using LightStep's native format.
36    LIGHTSTEP = 1;
37
38    // Propagate trace context using the b3 format.
39    B3 = 2;
40
41    // Propagation trace context using the w3 trace-context standard.
42    TRACE_CONTEXT = 3;
43  }
44
45  // The cluster manager cluster that hosts the LightStep collectors.
46  string collector_cluster = 1 [(validate.rules).string = {min_len: 1}];
47
48  // File containing the access token to the `LightStep
49  // <https://lightstep.com/>`_ API.
50  string access_token_file = 2
51      [deprecated = true, (envoy.annotations.deprecated_at_minor_version) = "3.0"];
52
53  // Access token to the `LightStep <https://lightstep.com/>`_ API.
54  core.v3.DataSource access_token = 4;
55
56  // Propagation modes to use by LightStep's tracer.
57  repeated PropagationMode propagation_modes = 3
58      [(validate.rules).repeated = {items {enum {defined_only: true}}}];
59}
60