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

adding "model" to all metrics frames if one exists #463

Closed
wants to merge 1 commit into from

Conversation

mattieruth
Copy link
Contributor

this allows us to differentiate across models when handling metrics frames. should also make subclassing easier in general so that the model and processor are always included with various metrics so long as they exist.

@@ -124,13 +134,16 @@ def report_only_initial_ttfb(self):
def can_generate_metrics(self) -> bool:
return False

def _model_name(self) -> str | None:
return self._model if hasattr(self, "_model") else None
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure this is a good idea. We don't want to force people to remember they have to use _model as a variable name. I believe it might be better to just optionally pass the model to the FrameProcessor functions. Just being more explicit about it.

@mattieruth
Copy link
Contributor Author

replacing this approach with #468

@mattieruth mattieruth closed this Sep 17, 2024
@aconchillo aconchillo deleted the add-model-to-all-metrics-when-applicable branch October 23, 2024 20:55
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