Skip to content

Commit 3911abe

Browse files
committed
Disable log sampling.
1 parent 62589f8 commit 3911abe

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

examples/powertools-examples-core-utilities/sam/src/main/java/helloworld/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class App implements RequestHandler<APIGatewayProxyRequestEvent, APIGatew
5252
private static final Logger log = LoggerFactory.getLogger(App.class);
5353
private static final Metrics metrics = MetricsFactory.getMetricsInstance();
5454

55-
@Logging(logEvent = true, samplingRate = 0.7)
55+
@Logging(logEvent = true)
5656
@Tracing(captureMode = CaptureMode.RESPONSE_AND_ERROR)
5757
@FlushMetrics(namespace = "ServerlessAirline", service = "payment", captureColdStart = true)
5858
public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {

examples/powertools-examples-core-utilities/sam/template.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Globals:
1313
Environment:
1414
Variables:
1515
# Powertools for AWS Lambda (Java) env vars: https://docs.powertools.aws.dev/lambda/java/#environment-variables
16-
POWERTOOLS_LOGGER_SAMPLE_RATE: 0.1
1716
POWERTOOLS_LOGGER_LOG_EVENT: true
1817
POWERTOOLS_METRICS_NAMESPACE: Coreutilities
1918

0 commit comments

Comments
 (0)