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

Collect web metrics on all containers #177

Merged
merged 1 commit into from
Jul 17, 2023
Merged

Collect web metrics on all containers #177

merged 1 commit into from
Jul 17, 2023

Conversation

adamlogic
Copy link
Collaborator

Worker containers don't receive requests, so they won't have web metrics to report anyway. The logic for suppressing the web metrics collector on worker containers was unnecessary. Removing this logic allows us to remove a bunch of other supporting code since the adapter doesn't actually care whether a container is web or worker.

Worker containers don't receive requests, so they won't have web metrics to report anyway. The logic for suppressing the web metrics collector on worker containers was unnecessary. Removing this logic allows us to remove a bunch of other supporting code since the adapter doesn't actually care whether a container is web or worker.
@@ -5,7 +5,6 @@
"tasks": [
{
"label": "test current gem",
"type": "shell",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any notes on this? I don't know that I've used these but just curious

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite understand it, but this line was causing the task to use my system Ruby instead of my asdf Ruby. I removed it and things worked fine. 🤷‍♂️

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh. That's interesting! Neat!

@@ -48,6 +48,7 @@ GEM
PLATFORMS
arm64-darwin-20
arm64-darwin-21
arm64-darwin-22
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noice.

Comment on lines -10 to -12
def self.collect?(config)
config.current_runtime_container.web?
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not seeing the diff where this method was actually called 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reporter calls it on every available metrics collector. It's defined in the superclass (MetricsCollector), so it'll always return true for WebMetricsCollector.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's defined in the superclass (MetricsCollector), so it'll always return true for WebMetricsCollector.

Got it, that makes sense!

@adamlogic adamlogic merged commit affc856 into main Jul 17, 2023
51 checks passed
@adamlogic adamlogic deleted the am-web-collector branch July 17, 2023 12:39
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.

2 participants