@@ -54,6 +54,11 @@ private Map<String, Object> createServerSideConfig() throws ParseException {
54
54
" \" beacon\" : \" staging-bam.nr-data.net\" ,\n " +
55
55
" \" collect_analytics_events\" : true,\n " +
56
56
" \" agent_config\" : {\n " +
57
+ " \" application_logging.enabled\" : false, \n " +
58
+ " \" application_logging.forwarding.enabled\" : false, \n " +
59
+ " \" application_logging.forwarding.max_samples_stored\" : 10001, \n " +
60
+ " \" application_logging.local_decorating.enabled\" : true, \n " +
61
+ " \" application_logging.metrics.enabled\" : false, \n " +
57
62
" \" transaction_tracer.explain_enabled\" : true,\n " +
58
63
" \" transaction_tracer.transaction_threshold\" : 0.005,\n " +
59
64
" \" transaction_tracer.enabled\" : true,\n " +
@@ -107,6 +112,11 @@ public void noLocalOrServerLaspEnabled() throws ParseException, ForceDisconnectE
107
112
assertEquals (true , config .getAttributesConfig ().isEnabledRoot ());
108
113
assertEquals (false , config .isCustomInstrumentationEditorAllowed ());
109
114
assertTrue (config .getAttributesConfig ().attributesRootInclude ().isEmpty ());
115
+ assertEquals (true , config .getApplicationLoggingConfig ().isEnabled ());
116
+ assertEquals (true , config .getApplicationLoggingConfig ().isForwardingEnabled ());
117
+ assertEquals (10000 , config .getApplicationLoggingConfig ().getMaxSamplesStored ());
118
+ assertEquals (false , ((ApplicationLoggingConfigImpl )config .getApplicationLoggingConfig ()).getLocalDecoratingConfig ().getEnabled ());
119
+ assertEquals (true , config .getApplicationLoggingConfig ().isMetricsEnabled ());
110
120
}
111
121
112
122
@ Test
@@ -139,6 +149,11 @@ public void laspDisabledServerOverridesLocal() throws ParseException {
139
149
assertEquals (true , config .getAttributesConfig ().isEnabledRoot ());
140
150
assertEquals (true , config .isCustomInstrumentationEditorAllowed ());
141
151
assertTrue (config .getAttributesConfig ().attributesRootInclude ().isEmpty ());
152
+ assertEquals (false , config .getApplicationLoggingConfig ().isEnabled ());
153
+ assertEquals (false , config .getApplicationLoggingConfig ().isForwardingEnabled ());
154
+ assertEquals (10001 , config .getApplicationLoggingConfig ().getMaxSamplesStored ());
155
+ assertEquals (true , ((ApplicationLoggingConfigImpl )config .getApplicationLoggingConfig ()).getLocalDecoratingConfig ().getEnabled ());
156
+ assertEquals (false , config .getApplicationLoggingConfig ().isMetricsEnabled ());
142
157
}
143
158
144
159
@ Test
0 commit comments