Skip to content

Conversation

@thpierce
Copy link
Contributor

@thpierce thpierce commented Aug 31, 2024

Description:

Passed the forceflush function from SdkMeteringProvider to the AwsSpanMetricProcessor to forceFlush remaining metrics on shutdown to the cwAgent/Collector.

Tesing:

Increased the metricExporter interval and the BatchSpanProcessor delay to 10 minutes using:

OTEL_METRIC_EXPORT_INTERVAL=600000 \
OTEL_BSP_SCHEDULE_DELAY=600000 \

Without the force flush change, exiting the sample app only flushed the traces without the metrics. With the forceFlush change, both traces and metrics were flushed to the collector.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@thpierce thpierce requested a review from a team as a code owner August 31, 2024 01:00
@AsakerMohd AsakerMohd changed the title [DO NOT MERGE] Force flush fix ForceFlush Implementation Oct 9, 2024
@AsakerMohd AsakerMohd merged commit 4077ee0 into main Oct 10, 2024
4 checks passed
@AsakerMohd AsakerMohd deleted the force-flush branch October 10, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants