![JAR search and dependency download from the Maven repository](/logo.png)
io.opentelemetry.instrumentation.test.LibraryTestTrait.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-testing-common Show documentation
Show all versions of opentelemetry-testing-common Show documentation
OpenTelemetry Javaagent testing commons
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.test
import io.opentelemetry.instrumentation.testing.LibraryTestRunner
/**
* A trait which initializes instrumentation library tests, including a test span exporter. All
* library tests should implement this trait.
*/
trait LibraryTestTrait {
// library test runner has to be initialized statically so that GlobalOpenTelemetry is set as soon as possible
private static final LibraryTestRunner RUNNER = LibraryTestRunner.instance()
LibraryTestRunner testRunner() {
RUNNER
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy