Skip to content

Commit

Permalink
Update testing/agent-exporter/src/main/java/io/opentelemetry/javaagen…
Browse files Browse the repository at this point in the history
…t/testing/exporter/OtlpInMemoryMetricExporter.java

Co-authored-by: Trask Stalnaker <[email protected]>
  • Loading branch information
ptrdom and trask authored Feb 26, 2023
1 parent f2520c3 commit f74723c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class OtlpInMemoryMetricExporter implements MetricExporter {
private final AggregationTemporality aggregationTemporality;

OtlpInMemoryMetricExporter() {
// this configuration setting is for external users
// see https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7902
String temporalityProperty = System.getProperty("otel.javaagent.testing.exporter.temporality");
if (temporalityProperty == null) {
aggregationTemporality = AggregationTemporality.DELTA;
Expand Down

0 comments on commit f74723c

Please sign in to comment.