Public api does not work

transaction = ElasticApm.startTransactionWithRemoteParent(new HeaderExtractor() {
				@Override
				public String getFirstHeader(String headerName) {
					System.out.println("inv.getAttachments().get(headerName)====");
					System.out.println("inv.getAttachment(headerName)" +
					inv.getAttachment(headerName));
					return inv.getAttachments().get(headerName);
				}
			});
			scope = transaction.activate();
			try {
				String[] interfaceArr = inv.getAttachment("interface").split("\\.");
				String className1 = interfaceArr[interfaceArr.length - 1];
				String name = className1 + "#" + inv.getMethodName();
				transaction.setName(name);
				transaction.setType("dubbo");
				
			} catch (Exception e) {
				transaction.captureException(e);
			}

i use public api to monitor dubbo project tracer;
i use span.injectTraceHeaders in the consumer side ,it works


but startTransactionWithRemoteParent I add in the provider side ,it does not works , the code does not perform.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.