All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.instrumentation.testing.InstrumentationTestRunner Maven / Gradle / Ivy

/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.instrumentation.testing;

import io.opentelemetry.sdk.metrics.data.MetricData;
import io.opentelemetry.sdk.trace.data.SpanData;
import java.util.List;

/**
 * This interface defines a common set of operations for interaction with OpenTelemetry SDK and
 * traces & metrics exporters.
 *
 * @see LibraryTestRunner
 * @see AgentTestRunner
 */
public interface InstrumentationTestRunner {
  void beforeTestClass();

  void afterTestClass();

  void clearAllExportedData();

  List getExportedSpans();

  List getExportedMetrics();

  boolean forceFlushCalled();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy