Skip to content

Commit

Permalink
Remove the dependency on servlet and other tidyup (#116)
Browse files Browse the repository at this point in the history
* remove the unused variables and dependencies
  • Loading branch information
Emily-Jiang committed Aug 10, 2023
1 parent e1292e5 commit ac65f0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions tracing/tck/pom.xml
Expand Up @@ -96,12 +96,7 @@
<artifactId>awaitility</artifactId>
<version>${version.awaitility}</version>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>

</dependencies>

<build>
Expand Down
Expand Up @@ -45,12 +45,10 @@

import io.opentelemetry.api.baggage.Baggage;
import io.opentelemetry.api.trace.SpanKind;
import io.opentelemetry.api.trace.Tracer;
import io.opentelemetry.context.Scope;
import io.opentelemetry.sdk.autoconfigure.spi.traces.ConfigurableSpanExporterProvider;
import io.opentelemetry.sdk.trace.data.SpanData;
import jakarta.inject.Inject;
import jakarta.servlet.http.HttpServletRequest;

class JaxRsServerAsyncTest extends Arquillian {

Expand All @@ -63,7 +61,7 @@ public static WebArchive createDeployment() {
.add("otel.traces.exporter", "in-memory");

return ShrinkWrap.create(WebArchive.class)
.addClasses(InMemorySpanExporter.class, InMemorySpanExporterProvider.class, HttpServletRequest.class,
.addClasses(InMemorySpanExporter.class, InMemorySpanExporterProvider.class,
JaxRsServerAsyncTestEndpointClient.class, JaxRsServerAsyncTestEndpoint.class)
.addAsLibrary(TestLibraries.AWAITILITY_LIB)
.addAsServiceProvider(ConfigurableSpanExporterProvider.class, InMemorySpanExporterProvider.class)
Expand All @@ -73,9 +71,6 @@ public static WebArchive createDeployment() {

private static final String TEST_VALUE = "test.value";

@Inject
private Tracer tracer;

@Inject
private InMemorySpanExporter spanExporter;

Expand Down

0 comments on commit ac65f0b

Please sign in to comment.