Skip to content

Commit cd1475d

Browse files
committed
add emf exporter to changelog
1 parent 0b2c14c commit cd1475d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ For any change that affects end users of this package, please add an entry under
1212
If your change does not need a CHANGELOG entry, add the "skip changelog" label to your PR.
1313

1414
## Unreleased
15+
16+
- add CloudWatch EMF metrics exporter
17+
([#1209](https://github.com/aws-observability/aws-otel-java-instrumentation/pull/1209))

awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/exporter/aws/metrics/AwsCloudWatchEmfExporter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private void sendLogEvent(Map<String, Object> logEvent) {
209209

210210
if (willEventBatchExceedLimit(currentBatch, eventSize)
211211
|| !isBatchActive(currentBatch, timestamp)) {
212-
sendLogBatch(currentBatch.getLogEvents());
212+
this.sendLogBatch(currentBatch.getLogEvents());
213213
eventBatch = new LogEventBatch();
214214
currentBatch = eventBatch;
215215
}
@@ -225,7 +225,7 @@ private void sendLogEvent(Map<String, Object> logEvent) {
225225
private void flushPendingEvents() {
226226
if (eventBatch != null && !eventBatch.getLogEvents().isEmpty()) {
227227
LogEventBatch currentBatch = eventBatch;
228-
sendLogBatch(currentBatch.getLogEvents());
228+
this.sendLogBatch(currentBatch.getLogEvents());
229229
eventBatch = new LogEventBatch();
230230
}
231231
logger.fine("CloudWatchLogClient flushed the buffered log events");

0 commit comments

Comments
 (0)