pinpoint icon indicating copy to clipboard operation
pinpoint copied to clipboard

pinpoint does not support spring cloud gateway ?

Open deanjo opened this issue 6 years ago • 23 comments

Hello, I found in use that pinpoint could not collect data from the SPIRNG Cloud Gateway project (Spring Cloud Gateway is a gateway service through which all requests are routed to specific microservices with an official address of Https://spring.io/projects/spring-cloud-gateway). But for the spring boot project, it can be collected.

deanjo avatar Feb 22 '19 09:02 deanjo

@dean-hu

You got it right~ Would be great if you can contribute a plug-in on this :)

RoySRose avatar Feb 22 '19 09:02 RoySRose

@dean-hu

You got it right~ Would be great if you can contribute a plug-in on this :)

Yeah I understand very much your reply. I really want to provide such a plugin to support the spring cloud gateway, but I still don't know how to do it. Do you intend to implement this function in the near future?

deanjo avatar Feb 25 '19 10:02 deanjo

@dean-hu

Currently, we don't have any plans for it. Most of the team members are planned to focus on something else for this year.

Developing a plug-in isn't so complicated. You can start from here It may look like there is a lot to understand before you can start. But eventually, it's just to find where to instrument.

RoySRose avatar Feb 25 '19 10:02 RoySRose

I also need this plugin~

qingmu-io avatar Mar 07 '19 06:03 qingmu-io

+1, also need this plugin~

oatiz avatar Mar 07 '19 06:03 oatiz

+1, also need this plugin~

crab890715 avatar Jul 02 '19 00:07 crab890715

+1, also need this plugin~

jasoncool520 avatar Jul 10 '19 08:07 jasoncool520

I also need this plugin~

zhgui avatar Jul 13 '19 08:07 zhgui

I also need this plugin~

geek-lwh avatar Sep 20 '19 09:09 geek-lwh

I also need this plugin~ When can I monitor the gateway??

armstrongwang5178 avatar Nov 13 '19 07:11 armstrongwang5178

+1, also need this plugin~

guoyuzhuang avatar Sep 29 '20 10:09 guoyuzhuang

Hello, I found in use that pinpoint could not collect data from the SPIRNG Cloud Gateway project (Spring Cloud Gateway is a gateway service through which all requests are routed to specific microservices with an official address of Https://spring.io/projects/spring-cloud-gateway). But for the spring boot project, it can be collected.

Have you solved the problem? How was it solved? Can you share it? My email is [email protected] ,Looking forward to your reply

guoyuzhuang avatar Sep 29 '20 11:09 guoyuzhuang

+1, also need this plugin~

SoonhyukYoon avatar Oct 19 '20 06:10 SoonhyukYoon

+1, also need this plugin~

InkTeam avatar Aug 20 '21 08:08 InkTeam

+1, also need this plugin~

cailumin avatar Aug 20 '21 08:08 cailumin

+1, also need this plugin~

maxuewen avatar Aug 20 '21 08:08 maxuewen

+1, also still need this plugin~

Wooni-sj avatar Oct 28 '21 23:10 Wooni-sj

+10086, also still need this plugin~

mofazhiku avatar Aug 16 '23 06:08 mofazhiku

Pinpoint already supports spring cloud gateway. Since spring cloud gateway uses webflux, Webflux support means support of spring cloud gateway.

emeroad avatar Aug 16 '23 07:08 emeroad

I'm used spring-cloud-starter-gateway:3.1.6 but pinpoint not support transaction and not collect data. What settings should I add? @emeroad

seoah-lab avatar Aug 24 '23 05:08 seoah-lab

Self-answer I used undertow. maybe some setting for undertow. netty is support! let's check webserver :see_no_evil:

seoah-lab avatar Aug 24 '23 07:08 seoah-lab

See webflux configuration below. https://github.com/pinpoint-apm/pinpoint/tree/master/plugins/spring-webflux

emeroad avatar Aug 24 '23 07:08 emeroad

@emeroad the version of pinpoint master 2.5.1

user ---> appA ----> spring cloud gateway(filter) ---->appB

use pinpoint to monitor spring cloud gateway、appB

the display spring cloud gateway have data , but appB no data .

if i request by browser to appB , then appB has the data.

The prinpoint.config

########################################################### #Spring WebFlux ########################################################### profiler.spring.webflux.enable=true

#Client #If you are not using Reactor-Netty, set it to true. profiler.spring.webflux.client.enable=true #Record Parameter. profiler.spring.webflux.client.param=true #Record cookies. profiler.spring.webflux.client.cookie=true #When cookies should be dumped. It could be ALWAYS or EXCEPTION. profiler.spring.webflux.client.cookie.dumptype=ALWAYS #out of n cookies will be sampled where n is the rate. (1: 100%) profiler.spring.webflux.client.cookie.sampling.rate=1 #Cookie dump size. profiler.spring.webflux.client.cookie.dumpsize=1024


########################################################### #Reactor Netty ########################################################### profiler.reactor-netty.enable=true

#Classes for detecting application server type. Comma separated list of fully qualified class names. Wildcard not supported. profiler.reactor-netty.server.bootstrap.main= #use an asynchronous endpoint. profiler.reactor-netty.server.end-point.async.enable=true #trace param in request ,default value is true profiler.reactor-netty.server.tracerequestparam=true #URLs to exclude from tracing. #Support ant style pattern. e.g. /aa/*.html, /??/exclude.html profiler.reactor-netty.server.excludeurl= #HTTP Request methods to exclude from tracing #profiler.reactor-netty.server.excludemethod=

#original IP address header #https://en.wikipedia.org/wiki/X-Forwarded-For #profiler.reactor-netty.server.realipheader=X-Forwarded-For #nginx real ip header #profiler.reactor-netty.server.realipheader=X-Real-IP #optional parameter, If the header value is ${profiler.reactor-netty.realipemptyvalue}, Ignore header value. #profiler.reactor-netty.server.realipemptyvalue=unknown


########################################################### #Netty ########################################################### #recommend netty plugin disable, when using VERTX. profiler.netty=true profiler.netty.http=true

profiler.netty.http.param=true #use channel.close() profiler.netty.channel.close=true

Robot1024 avatar Sep 13 '23 14:09 Robot1024