Skip to content

Added test that verified custom metrics published by users - #335

Merged
tsurdilo merged 3 commits into
temporalio:mainfrom
antmendoza:issue_289
Sep 6, 2022
Merged

tsurdilo merged 3 commits into
temporalio:mainfrom
antmendoza:issue_289

Conversation

@antmendoza

@antmendoza antmendoza commented Aug 11, 2022

Copy link
Copy Markdown
Member

What was changed

Why?

Checklist

  1. Closes Sample for a test verifying published metrics in unit tests #289

  2. How was this tested:

  1. Any docs updates needed?

@antmendoza antmendoza changed the title Issue 289 Added test that verified custom metrics published by users Aug 11, 2022
@antmendoza

Copy link
Copy Markdown
Member Author

@tsurdilo I have replaced the use of any class from .internal. packages, as suggested.

Let me know if there is any other required amendment.

WorkflowServiceStubsOptions.newBuilder().setMetricsScope(scope).build();

WorkflowServiceStubs service = WorkflowServiceStubs.newInstance(stubOptions);
WorkflowServiceStubs service = WorkflowServiceStubs.newServiceStubs(stubOptions);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

newInstance is deprecated

@tsurdilo
tsurdilo merged commit 452e283 into temporalio:main Sep 6, 2022
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