APISonar


org.apache.skywalking.apm.agent.core.context.trace.SpanLayer.HTTP

> org > apache > skywalking > apm > agent > core > context > trace > SpanLayer > HTTP
org APIs apache APIs skywalking APIs apm APIs agent APIs core APIs context APIs trace APIs SpanLayer APIs HTTP APIs

Example 1
private void assertHttpSpan(AbstractTracingSpan span) {
        assertThat(span.getOperationName(), is("/test/testRequestURL"));
        assertComponent(span, ComponentsDefine.TOMCAT);
        SpanAssert.assertTag(span, 0, "http://localhost:8080/test/testRequestURL");
        assertThat(span.isEntry(), is(true));
        SpanAssert.assertLayer(span, SpanLayer.HTTP);
    }
Example 2
private void assertSpan(AbstractTracingSpan span) {
        assertThat(SpanHelper.getLayer(span), CoreMatchers.is(SpanLayer.HTTP));
        assertThat(SpanHelper.getComponentId(span), is(11));
    }