Search in sources :

Example 1 with SkywalkingTracerExtractInterceptor

use of org.apache.skywalking.apm.toolkit.activation.opentracing.tracer.SkywalkingTracerExtractInterceptor in project incubator-skywalking by apache.

the class SkywalkingSpanActivationTest method setUp.

@Before
public void setUp() {
    spanBuilder = new SkywalkingSpanBuilder("test").withTag(Tags.COMPONENT.getKey(), "test");
    constructorWithSpanBuilderInterceptor = new ConstructorWithSpanBuilderInterceptor();
    spanLogInterceptor = new SpanLogInterceptor();
    logArgument = new Object[] { 111111111L, event };
    logArgumentType = new Class[] { long.class, HashMap.class };
    setOperationNameInterceptor = new SpanSetOperationNameInterceptor();
    setOperationNameArgument = new Object[] { "testOperationName" };
    setOperationNameArgumentType = new Class[] { String.class };
    spanFinishInterceptor = new SpanFinishInterceptor();
    injectInterceptor = new SkywalkingTracerInjectInterceptor();
    extractInterceptor = new SkywalkingTracerExtractInterceptor();
    constructorInterceptor = new ConstructorInterceptor();
    activateInterceptor = new ActivateInterceptor();
}
Also used : ConstructorWithSpanBuilderInterceptor(org.apache.skywalking.apm.toolkit.activation.opentracing.span.ConstructorWithSpanBuilderInterceptor) SpanFinishInterceptor(org.apache.skywalking.apm.toolkit.activation.opentracing.span.SpanFinishInterceptor) SpanSetOperationNameInterceptor(org.apache.skywalking.apm.toolkit.activation.opentracing.span.SpanSetOperationNameInterceptor) SkywalkingTracerInjectInterceptor(org.apache.skywalking.apm.toolkit.activation.opentracing.tracer.SkywalkingTracerInjectInterceptor) SkywalkingTracerExtractInterceptor(org.apache.skywalking.apm.toolkit.activation.opentracing.tracer.SkywalkingTracerExtractInterceptor) ConstructorInterceptor(org.apache.skywalking.apm.toolkit.activation.opentracing.continuation.ConstructorInterceptor) ActivateInterceptor(org.apache.skywalking.apm.toolkit.activation.opentracing.continuation.ActivateInterceptor) SkywalkingSpanBuilder(org.apache.skywalking.apm.toolkit.opentracing.SkywalkingSpanBuilder) SpanLogInterceptor(org.apache.skywalking.apm.toolkit.activation.opentracing.span.SpanLogInterceptor) Before(org.junit.Before)

Aggregations

ActivateInterceptor (org.apache.skywalking.apm.toolkit.activation.opentracing.continuation.ActivateInterceptor)1 ConstructorInterceptor (org.apache.skywalking.apm.toolkit.activation.opentracing.continuation.ConstructorInterceptor)1 ConstructorWithSpanBuilderInterceptor (org.apache.skywalking.apm.toolkit.activation.opentracing.span.ConstructorWithSpanBuilderInterceptor)1 SpanFinishInterceptor (org.apache.skywalking.apm.toolkit.activation.opentracing.span.SpanFinishInterceptor)1 SpanLogInterceptor (org.apache.skywalking.apm.toolkit.activation.opentracing.span.SpanLogInterceptor)1 SpanSetOperationNameInterceptor (org.apache.skywalking.apm.toolkit.activation.opentracing.span.SpanSetOperationNameInterceptor)1 SkywalkingTracerExtractInterceptor (org.apache.skywalking.apm.toolkit.activation.opentracing.tracer.SkywalkingTracerExtractInterceptor)1 SkywalkingTracerInjectInterceptor (org.apache.skywalking.apm.toolkit.activation.opentracing.tracer.SkywalkingTracerInjectInterceptor)1 SkywalkingSpanBuilder (org.apache.skywalking.apm.toolkit.opentracing.SkywalkingSpanBuilder)1 Before (org.junit.Before)1