@@ -63,9 +63,9 @@ import static datadog.trace.api.config.JmxFetchConfig.JMX_FETCH_REFRESH_BEANS_PE
6363import static datadog.trace.api.config.JmxFetchConfig.JMX_FETCH_STATSD_HOST
6464import static datadog.trace.api.config.JmxFetchConfig.JMX_FETCH_STATSD_PORT
6565import static datadog.trace.api.config.JmxFetchConfig.JMX_TAGS
66- import static datadog.trace.api.config.LlmObsConfig.LLM_OBS_AGENTLESS_ENABLED
67- import static datadog.trace.api.config.LlmObsConfig.LLM_OBS_ML_APP
68- import static datadog.trace.api.config.LlmObsConfig.LLM_OBS_ENABLED
66+ import static datadog.trace.api.config.LlmObsConfig.LLMOBS_AGENTLESS_ENABLED
67+ import static datadog.trace.api.config.LlmObsConfig.LLMOBS_ML_APP
68+ import static datadog.trace.api.config.LlmObsConfig.LLMOBS_ENABLED
6969import static datadog.trace.api.config.ProfilingConfig.PROFILING_AGENTLESS
7070import static datadog.trace.api.config.ProfilingConfig.PROFILING_API_KEY_FILE_OLD
7171import static datadog.trace.api.config.ProfilingConfig.PROFILING_API_KEY_FILE_VERY_OLD
@@ -2217,7 +2217,7 @@ class ConfigTest extends DDSpecification {
22172217 def " config instantiation should fail if llm obs is enabled via sys prop and ml app is not set" () {
22182218 setup :
22192219 Properties properties = new Properties ()
2220- properties. setProperty(LLM_OBS_ENABLED , " true" )
2220+ properties. setProperty(LLMOBS_ENABLED , " true" )
22212221
22222222 when :
22232223 new Config (ConfigProvider . withPropertiesOverride(properties))
@@ -2241,9 +2241,9 @@ class ConfigTest extends DDSpecification {
22412241 def "config instantiation should NOT fail if llm obs is enabled (agentless disabled ) via sys prop and ml app is set" () {
22422242 setup:
22432243 Properties properties = new Properties()
2244- properties.setProperty(LLM_OBS_ENABLED , " true " )
2245- properties.setProperty(LLM_OBS_AGENTLESS_ENABLED , " false " )
2246- properties.setProperty(LLM_OBS_ML_APP , " test- ml- app" )
2244+ properties.setProperty(LLMOBS_ENABLED , " true " )
2245+ properties.setProperty(LLMOBS_AGENTLESS_ENABLED , " false " )
2246+ properties.setProperty(LLMOBS_ML_APP , " test- ml- app" )
22472247
22482248 when:
22492249 def config = new Config(ConfigProvider.withPropertiesOverride(properties))
@@ -2273,9 +2273,9 @@ class ConfigTest extends DDSpecification {
22732273 def " config instantiation should fail if llm obs is in agentless mode via sys prop and API key is not set" () {
22742274 setup:
22752275 Properties properties = new Properties()
2276- properties.setProperty(LLM_OBS_ENABLED , " true " )
2277- properties.setProperty(LLM_OBS_AGENTLESS_ENABLED , " true " )
2278- properties.setProperty(LLM_OBS_ML_APP , " test- ml- app" )
2276+ properties.setProperty(LLMOBS_ENABLED , " true " )
2277+ properties.setProperty(LLMOBS_AGENTLESS_ENABLED , " true " )
2278+ properties.setProperty(LLMOBS_ML_APP , " test- ml- app" )
22792279
22802280 when:
22812281 new Config(ConfigProvider.withPropertiesOverride(properties))
@@ -2300,9 +2300,9 @@ class ConfigTest extends DDSpecification {
23002300 def " config instantiation should NOT fail if llm obs is enabled (agentless enabled) and API key & ml app are set via sys prop" () {
23012301 setup:
23022302 Properties properties = new Properties()
2303- properties.setProperty(LLM_OBS_ENABLED , " true " )
2304- properties.setProperty(LLM_OBS_AGENTLESS_ENABLED , " true " )
2305- properties.setProperty(LLM_OBS_ML_APP , " test- ml- app" )
2303+ properties.setProperty(LLMOBS_ENABLED , " true " )
2304+ properties.setProperty(LLMOBS_AGENTLESS_ENABLED , " true " )
2305+ properties.setProperty(LLMOBS_ML_APP , " test- ml- app" )
23062306 properties.setProperty(API_KEY, " 123456789 " )
23072307
23082308 when:
0 commit comments