@@ -1156,16 +1156,27 @@ defaultConfig.definition = () => {
11561156 } ,
11571157
11581158 sampler : {
1159- /**
1160- * When set to `always_on`, the sampled flag in the `traceparent` header
1161- * being set to "true" will result in the local transaction being sampled
1162- * with a priority value of "2". When set to `always_off`, the local
1163- * transaction will never be sampled. At the default setting, the sampling
1164- * decision will be determined according to the normal algorithm.
1165- *
1166- * This setting takes precedence over the `remote_parent_not_sampled`
1167- * setting.
1168- */
1159+ /**
1160+ * The sampling target for adaptive sampling is controlled via this attribute when configuring the default/adaptive sampler.
1161+ * The default sampling target is 10 transactions/min when it is not specified but **MUST** be within the range of [1, 120] (inclusive).
1162+ * Upon agent connect, the connect response **MUST** provide the value of `sampling_target` based on this configuration setting's value.
1163+ * The `sampling_target` value from the connect response **SHOULD** be used as the sampling target value for adaptive sampling in the agent.
1164+ */
1165+ adaptive_sampling_target : {
1166+ formatter : int ,
1167+ default : 10
1168+ } ,
1169+
1170+ /**
1171+ * When set to `always_on`, the sampled flag in the `traceparent` header
1172+ * being set to "true" will result in the local transaction being sampled
1173+ * with a priority value of "2". When set to `always_off`, the local
1174+ * transaction will never be sampled. At the default setting, the sampling
1175+ * decision will be determined according to the normal algorithm.
1176+ *
1177+ * This setting takes precedence over the `remote_parent_not_sampled`
1178+ * setting.
1179+ */
11691180 remote_parent_sampled : {
11701181 formatter : allowList . bind ( null , [ 'always_on' , 'always_off' , 'default' ] ) ,
11711182 default : 'default'
0 commit comments