Description of changes:
Added logic to flush remaining metrics during shutdown from the AwsSpanMetricProcessor.
Testing:
Tested by setting the metric and trace exporting interval to 1 minute. Before the change, shutting down the application before the minute ends only exports the trace to the collector. After the change, both traces and metrics are always exported before application shutdown.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available:
Description of changes: Added logic to flush remaining metrics during shutdown from the AwsSpanMetricProcessor.
Testing: Tested by setting the metric and trace exporting interval to 1 minute. Before the change, shutting down the application before the minute ends only exports the trace to the collector. After the change, both traces and metrics are always exported before application shutdown.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.