Skip to content

Commit fced3af

Browse files
committed
Add internal_port to config
1 parent 5e8b01d commit fced3af

File tree

1 file changed

+12
-0
lines changed
  • lib/saluki-components/src/common/otlp

1 file changed

+12
-0
lines changed

lib/saluki-components/src/common/otlp/config.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)