Skip to content

Commit

Permalink
Lowering reader interval for test
Browse files Browse the repository at this point in the history
  • Loading branch information
dnarula-mw committed Oct 12, 2023
1 parent 3af790a commit 8268a15
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/tmetrics.m
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,11 @@ function testHistogramDelta(testCase)

function testGetSetMeterProvider(testCase)
% testGetSetMeterProvider: setting and getting global instance of MeterProvider
mp = opentelemetry.sdk.metrics.MeterProvider();
exporter = opentelemetry.exporters.otlp.OtlpHttpMetricExporter(...
"PreferredAggregationTemporality", "Delta");
reader = opentelemetry.sdk.metrics.PeriodicExportingMetricReader(exporter, ...
"Interval", seconds(2), "Timeout", seconds(1));
mp = opentelemetry.sdk.metrics.MeterProvider(reader);
setMeterProvider(mp);

metername = "foo";
Expand All @@ -554,7 +558,7 @@ function testGetSetMeterProvider(testCase)
% add value and attributes
c.add(val);

pause(75);
pause(2.5);

% perform test comparisons
results = readJsonResults(testCase);
Expand Down

0 comments on commit 8268a15

Please sign in to comment.