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

Refactor metrics with domain tag #2386

Merged
merged 3 commits into from
Aug 14, 2019
Merged

Refactor metrics with domain tag #2386

merged 3 commits into from
Aug 14, 2019

Conversation

vancexu
Copy link
Contributor

@vancexu vancexu commented Aug 14, 2019

Small efforts to reduce some duplicates

func (t *timerQueueActiveProcessorImpl) getMetricScopeWithDomainTag(scope int, domainID string) (metrics.Scope, error) {
domainEntry, err := t.shard.GetDomainCache().GetDomainByID(domainID)
if err != nil {
return nil, &workflow.InternalServiceError{Message: "unable to get domain from cache by domainID."}
Copy link
Collaborator

@longquanzheng longquanzheng Aug 14, 2019

Choose a reason for hiding this comment

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

Actually we should return this error instead of making a new one. Because the err from domainCache could should have more useful info than this simple text.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

make sense. updated

Copy link
Collaborator

@longquanzheng longquanzheng left a comment

Choose a reason for hiding this comment

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

LGTM. But please address a small comment before landing it.

@vancexu vancexu merged commit e5be8e6 into master Aug 14, 2019
@vancexu vancexu deleted the f branch August 14, 2019 18:21
neil-xie added a commit that referenced this pull request Jul 8, 2022
neil-xie added a commit that referenced this pull request Jul 12, 2022
neil-xie added a commit that referenced this pull request Jul 15, 2022
neil-xie added a commit that referenced this pull request Jul 16, 2022
neil-xie added a commit that referenced this pull request Jul 16, 2022
neil-xie added a commit that referenced this pull request Jul 16, 2022
* Add new es record for uninitialized workflow (#2386)

* Add nil check for visibility manager when adding uninitialized wf execution record (#2386)

* Update TestProcessRecordWorkflowStartedTask to include unit test for record wf execution uninitialized method

* Fix the test add method of es processor (#2386)

* Disable the feature by default (#2386)

* Fix the unit test when feature is disabled

* Fix the unit test when feature is disabled (#2386)
neil-xie added a commit that referenced this pull request Jul 18, 2022
neil-xie added a commit that referenced this pull request Jul 18, 2022
neil-xie added a commit that referenced this pull request Jul 18, 2022
neil-xie added a commit that referenced this pull request Jul 18, 2022
neil-xie added a commit that referenced this pull request Jul 18, 2022
neil-xie added a commit that referenced this pull request Jul 18, 2022
neil-xie added a commit that referenced this pull request Jul 18, 2022
neil-xie added a commit that referenced this pull request Jul 18, 2022
…omain name (#4904)

* Update EnableRecordWorkflowExecutionUninitialized flag to filter by domain name (#2386)

* Update EnableRecordWorkflowExecutionUninitialized flag to filter by domain name (#2386)
abhishekj720 pushed a commit to abhishekj720/cadence that referenced this pull request Jul 21, 2022
* Add new es record for uninitialized workflow (uber#2386)

* Add nil check for visibility manager when adding uninitialized wf execution record (uber#2386)

* Update TestProcessRecordWorkflowStartedTask to include unit test for record wf execution uninitialized method

* Fix the test add method of es processor (uber#2386)

* Disable the feature by default (uber#2386)

* Fix the unit test when feature is disabled

* Fix the unit test when feature is disabled (uber#2386)
abhishekj720 pushed a commit to abhishekj720/cadence that referenced this pull request Jul 21, 2022
…omain name (uber#4904)

* Update EnableRecordWorkflowExecutionUninitialized flag to filter by domain name (uber#2386)

* Update EnableRecordWorkflowExecutionUninitialized flag to filter by domain name (uber#2386)
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