Skip to content

Commit dfeba41

Browse files
committed
change inline variable to constant
1 parent 27cde72 commit dfeba41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/AwsApplicationSignalsCustomizerProvider.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public class AwsApplicationSignalsCustomizerProvider
9696
private static final String DEFAULT_UDP_ENDPOINT = "127.0.0.1:2000";
9797
private static final String OTEL_DISABLED_RESOURCE_PROVIDERS_CONFIG =
9898
"otel.java.disabled.resource.providers";
99+
private static final String OTEL_BSP_MAX_EXPORT_BATCH_SIZE_CONFIG =
100+
"otel.bsp.max.export.batch.size";
99101

100102
// UDP packet can be upto 64KB. To limit the packet size, we limit the exported batch size.
101103
// This is a bit of a magic number, as there is no simple way to tell how many spans can make a
@@ -164,7 +166,7 @@ private Map<String, String> customizeLambdaEnvProperties(ConfigProperties config
164166

165167
// Set the max export batch size for BatchSpanProcessors
166168
propsOverride.put(
167-
"otel.bsp.max.export.batch.size", String.valueOf(LAMBDA_SPAN_EXPORT_BATCH_SIZE));
169+
OTEL_BSP_MAX_EXPORT_BATCH_SIZE_CONFIG, String.valueOf(LAMBDA_SPAN_EXPORT_BATCH_SIZE));
168170

169171
return propsOverride;
170172
}

0 commit comments

Comments
 (0)