Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[exporter/awsemf] Enforce TTL on metric calculator maps #25066

Merged
merged 16 commits into from
Aug 8, 2023

Conversation

bryan-aguilar
Copy link
Contributor

Description: This PR implements a ticker to automatically enforce the TimeToLive value on MapWithExpiry objects inside the internal/aws/metrics package. This map object is used directly by the Container Insights receiver and the MetricCalculator object in the same package. Metric calculators are used by the EMF Exporter.

Changes to container insights receiver interfaces had to be made so that shutdown on all calculators could be enforced.

In the EMF Exporter, the metrictranslator object now owns an emfCalculator object which can be passed down to the data point interface. The metric translator now has a shutdown method which can be called by the emf exporter on close.

Link to tracking Issue: Closes #25058

Testing:

Documentation:

@dmitryax dmitryax merged commit a24294f into open-telemetry:main Aug 8, 2023
@github-actions github-actions bot added this to the next release milestone Aug 8, 2023
dmitryax pushed a commit that referenced this pull request Aug 8, 2023
…eanup (#25097)

**Description:** Changes the behavior of the specific test case to be
more aligned with its behavior pre #25066

**Link to tracking Issue:** #25095
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS EMF Exporter does not properly enforce map TTL
4 participants