@@ -22,6 +22,10 @@ message ListenerTracingSettings {
22
22
// Requests can produce traces by random sampling or when the `x-client-trace-id` header is provided.
23
23
// TracePercentages defines the limits for random, forced, and overall tracing percentages.
24
24
TracePercentages trace_percentages = 3 ;
25
+ // Optional. If specified, Envoy will include the environment variables with the given tag as tracing tags.
26
+ repeated TracingTagEnvironmentVariable environment_variables_for_tags = 6 ;
27
+ // Optional. If specified, Envoy will include the literals with the given tag as tracing tags.
28
+ repeated TracingTagLiteral literals_for_tags = 7 ;
25
29
}
26
30
27
31
// Contains settings for configuring Envoy's tracing capabilities at the route level.
@@ -55,3 +59,24 @@ message TracePercentages {
55
59
// This should be a value between 0.0 and 100.0, with up to 6 significant digits.
56
60
google.protobuf.FloatValue overall_sample_percentage = 3 ;
57
61
}
62
+
63
+ // Requests can produce traces with custom tags.
64
+ // TracingTagEnvironmentVariable defines an environment variable which gets added as custom tag.
65
+ message TracingTagEnvironmentVariable {
66
+ // Used to populate the tag name.
67
+ string tag = 1 ;
68
+ // Environment variable name to obtain the value to populate the tag value.
69
+ string name = 2 ;
70
+ // When the environment variable is not found, the tag value will be populated with this default value if specified,
71
+ // otherwise no tag will be populated.
72
+ string default_value = 3 ;
73
+ }
74
+
75
+ // Requests can produce traces with custom tags.
76
+ // TracingTagLiteral defines a literal which gets added as custom tag.
77
+ message TracingTagLiteral {
78
+ // Used to populate the tag name.
79
+ string tag = 1 ;
80
+ // Static literal value to populate the tag value.
81
+ string value = 2 ;
82
+ }
0 commit comments