File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
lib/saluki-components/src/common/otlp Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,17 @@ pub struct TracesConfig {
200200 /// Corresponds to `otlp_config.traces.probabilistic_sampler` in the Agent.
201201 #[ serde( default ) ]
202202 pub probabilistic_sampler : ProbabilisticSampler ,
203+
204+ /// The internal port on the Core Agent to forward traces to.
205+ ///
206+ /// Defaults to 5003.
207+ #[ serde( default = "default_internal_port" ) ]
208+ #[ allow( unused) ]
209+ pub internal_port : u16 ,
210+ }
211+
212+ const fn default_internal_port ( ) -> u16 {
213+ 5003
203214}
204215
205216/// Configuration for OTLP traces probabilistic sampling.
@@ -243,6 +254,7 @@ impl Default for TracesConfig {
243254 ignore_missing_datadog_fields : false ,
244255 enable_otlp_compute_top_level_by_span_kind : default_enable_otlp_compute_top_level_by_span_kind ( ) ,
245256 probabilistic_sampler : ProbabilisticSampler :: default ( ) ,
257+ internal_port : default_internal_port ( ) ,
246258 }
247259 }
248260}
You can’t perform that action at this time.
0 commit comments