Skip to content

Commit

Permalink
CAMEL-21202 - Adding the instrumented thread pool factory to the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ammachado committed Sep 11, 2024
1 parent d54614e commit b0f1608
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@
import io.opentelemetry.context.Context;
import io.opentelemetry.sdk.logs.data.LogRecordData;
import io.opentelemetry.sdk.trace.data.SpanData;
import org.apache.camel.BindToRegistry;
import org.apache.camel.CamelContext;
import org.apache.camel.CamelContextAware;
import org.apache.camel.spi.InterceptStrategy;
import org.apache.camel.spi.ThreadPoolFactory;
import org.apache.camel.test.junit5.CamelTestSupport;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.AfterEach;
Expand Down Expand Up @@ -63,6 +65,9 @@ class CamelOpenTelemetryTestSupport extends CamelTestSupport {
@RegisterExtension
public final CamelOpenTelemetryExtension otelExtension = CamelOpenTelemetryExtension.create();

@BindToRegistry
ThreadPoolFactory threadPoolFactory = new OpenTelemetryInstrumentedThreadPoolFactory();

SpanTestData[] expected;
Tracer tracer;
OpenTelemetryTracer otTracer;
Expand Down

0 comments on commit b0f1608

Please sign in to comment.