Skip to content

Commit

Permalink
mark config/env as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
realFlowControl committed Feb 14, 2025
1 parent 826265c commit 016d5c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions profiling/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ pub(crate) enum ConfigId {
ProfilingExceptionEnabled,
ProfilingExceptionMessageEnabled,
ProfilingExceptionSamplingDistance,
ProfilingIOEnabled,
ProfilingExperimentalIOEnabled,
ProfilingLogLevel,
ProfilingOutputPprof,
ProfilingWallTimeEnabled,
Expand Down Expand Up @@ -378,7 +378,7 @@ impl ConfigId {
ProfilingExceptionEnabled => b"DD_PROFILING_EXCEPTION_ENABLED\0",
ProfilingExceptionMessageEnabled => b"DD_PROFILING_EXCEPTION_MESSAGE_ENABLED\0",
ProfilingExceptionSamplingDistance => b"DD_PROFILING_EXCEPTION_SAMPLING_DISTANCE\0",
ProfilingIOEnabled => b"DD_PROFILING_IO_ENABLED\0",
ProfilingExperimentalIOEnabled => b"DD_PROFILING_EXPERIMENTAL_IO_ENABLED\0",
ProfilingLogLevel => b"DD_PROFILING_LOG_LEVEL\0",

// Note: this group is meant only for debugging and testing. Please
Expand Down Expand Up @@ -549,7 +549,7 @@ unsafe fn profiling_io_enabled() -> bool {
profiling_enabled()
&& (profiling_experimental_features_enabled()
|| get_system_bool(
ProfilingIOEnabled,
ProfilingExperimentalIOEnabled,
DEFAULT_SYSTEM_SETTINGS.profiling_io_enabled,
))
}
Expand Down Expand Up @@ -896,8 +896,8 @@ pub(crate) fn minit(module_number: libc::c_int) {
env_config_fallback: None,
},
zai_config_entry {
id: transmute::<ConfigId, u16>(ProfilingIOEnabled),
name: ProfilingIOEnabled.env_var_name(),
id: transmute::<ConfigId, u16>(ProfilingExperimentalIOEnabled),
name: ProfilingExperimentalIOEnabled.env_var_name(),
type_: ZAI_CONFIG_TYPE_BOOL,
default_encoded_value: ZaiStr::literal(b"0\0"),
aliases: ptr::null_mut(),
Expand Down Expand Up @@ -1176,4 +1176,4 @@ mod tests {
let expected = AgentEndpoint::default();
assert_eq!(endpoint, expected);
}
}
}

0 comments on commit 016d5c8

Please sign in to comment.