pinpoint-apm / pinpoint

APM, (Application Performance Management) tool for large-scale distributed systems.
https://pinpoint-apm.gitbook.io/
Apache License 2.0
13.34k stars 3.75k forks source link

There is no monitoring data when only active callers are available #7515

Open bingfengxiyang opened 3 years ago

bingfengxiyang commented 3 years ago

Prerequisites

Please check the FAQ, and search existing issues for similar questions before creating a new issue.YOU MAY DELETE THIS PREREQUISITES SECTION.

There are two Dubbo services between a and B. when B is called by a, it is monitored by pinpoint, but a is not monitored by pinpoint. However, the JVM information has data information. Please help to solve the problem

无标题 微信截图_20201225150811 微信截图_20201225150854 微信截图_20201225145537

tankilo commented 3 years ago

Check com.navercorp.pinpoint.plugin.apache.dubbo.interceptor.ApacheDubboConsumerInterceptor#before

        final Trace trace = traceContext.currentRawTraceObject();
        if (trace == null) {
            return;
        }

Your dubbo consumer need to included in those method whose interceptors will actively start new trace context. For example ,if you dubbo consumer method is called in a tomcat request, it will be traced.

This a normal behaviour in pinpoint, may be some similar issue also answer you question.