Skip to content

[common] metricsfx separation of modules with external tally and without #6928

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

Merged
merged 1 commit into from
May 19, 2025

Conversation

3vilhamster
Copy link
Contributor

@3vilhamster 3vilhamster commented May 19, 2025

What changed?
Updated metricsfx to separate FX modules with and without scope.

Why?
Mainly doing it to separate concerns for shard distributor customizations in the monorepo that uses different types for configurations.

The main concern:
If it is not provided, we need a configuration to build it.
I can make it optional, but then there could be missing metrics. Then I'll need to add validation for this config since it has a default noop value, so in case of missing metrics, it can start without metrics.

To make it clearer, I separate modules into two: one when it is configured from the outside and the other when it should be built from the configuration that must be provided.

How did you test it?
Added unit tests

Potential risks

Release notes

Documentation Changes

@jakobht
Copy link
Member

jakobht commented May 19, 2025

I don't understand why we want to separate it like this? It looks like we want the scope to be optional. If it's not there we construct it, if it is there we reuse it.
Why is it better to split it like this?

@3vilhamster 3vilhamster merged commit 7325688 into cadence-workflow:master May 19, 2025
23 of 24 checks passed
@3vilhamster 3vilhamster deleted the fix-metrics-fx branch May 19, 2025 12:30
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