use of io.temporal.common.reporter.TestStatsReporter in project sdk-java by temporalio.
the class ReplayWorkflowRunTaskHandlerCacheTests method setUp.
@Before
public void setUp() {
reporter = new TestStatsReporter();
metricsScope = new RootScopeBuilder().reporter(reporter).reportEvery(Duration.ofMillis(10));
}
use of io.temporal.common.reporter.TestStatsReporter in project sdk-java by temporalio.
the class StickyWorkerTest method setUp.
// TODO(maxim): refactor all of this ugliness into a service based implementation of
// TestWorkflowEnvironment
@Before
public void setUp() {
reporter = new TestStatsReporter();
metricsScope = new RootScopeBuilder().reporter(reporter).reportEvery(com.uber.m3.util.Duration.ofSeconds(10));
}
use of io.temporal.common.reporter.TestStatsReporter in project sdk-java by temporalio.
the class MetricsTest method setUp.
public void setUp(WorkerFactoryOptions workerFactoryOptions) {
Scope metricsScope;
reporter = new TestStatsReporter();
metricsScope = new RootScopeBuilder().reporter(reporter).reportEvery(com.uber.m3.util.Duration.ofMillis(10));
TestEnvironmentOptions testOptions = TestEnvironmentOptions.newBuilder().setMetricsScope(metricsScope).setWorkflowClientOptions(WorkflowClientOptions.newBuilder().setNamespace(NAMESPACE).build()).setWorkerFactoryOptions(workerFactoryOptions).build();
testEnvironment = TestWorkflowEnvironment.newInstance(testOptions);
}
Aggregations