Registry / testing / opentelemetry-sdk-testing

opentelemetry-sdk-testing

JSON →
library1.61.0javamavenunverified

Testing utilities for the OpenTelemetry SDK, providing mocks and assertions for telemetry data.

<dependency> <groupId>io.opentelemetry</groupId> <artifactId>opentelemetry-sdk-testing</artifactId> <version>1.61.0</version> </dependency>
INSTALL
IMPORT
SIG · OPENTELEMETRY-SDK-
O
opentelemetry-sdk-testing
testingjavav1.61.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OpenTelemetryRule
io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule

Uses OpenTelemetryRule JUnit rule to set up and verify spans in tests.

import io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule; import org.junit.Rule; import org.junit.Test; public class ExampleTest { @Rule public OpenTelemetryRule otelTesting = OpenTelemetryRule.create(); @Test public void testSpan() { // your test code } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.61.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
opentelemetry-sdk-testing — mvn dependency:get opentelemetry-sdk-testing · libregistry