pinpoint
pinpoint copied to clipboard
My Rest API Server with jetty and jersey was not drawn in server map
I have two applications: one is a http client with jdk 17 java.net.http.HttpClient (not supported by Pinpoint 2.5.2) and other is our rest api (jersey) with an embedded jetty and jersey. When I started the client, I can see the client was drawn in server map but the rest api was not. My configuration is
For client,
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.0.4.1.jdk/Contents/Home
export AGENT_PATH=$HOME/pinpoint-agent-2.5.2
export PUMP_MODULE=$HOME/myclient
PROPERTIES="-Dpring.profiles.active=release"
PROPERTIES="$PROPERTIES -Dpinpoint.applicationName=datapump"
PROPERTIES="$PROPERTIES -Dpinpoint.agentId=1"
$JAVA_HOME/bin/java -javaagent:$AGENT_PATH/pinpoint-bootstrap-2.5.2.jar $PROPERTIES --module-path $PUMP_MODULE/lib --module myclient/myclient.Main
Note that I did
profiler.include=jdk.internal.net.http.HttpClientImpl
I can see all functions expected in Call Tree
For Rest API,
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.0.4.1.jdk/Contents/Home
export AGENT_PATH=$HOME/api/pinpoint-agent-2.5.2
export APP_MODULE=$HOME/rest-api
PROPERTIES="-Dpring.profiles.active=release"
PROPERTIES="$PROPERTIES -Dpinpoint.applicationName=api"
PROPERTIES="$PROPERTIES -Dpinpoint.agentId=2"
$JAVA_HOME/bin/java -javaagent:$AGENT_PATH/pinpoint-bootstrap-2.5.2.jar $PROPERTIES --module-path $APP_MODULE/lib --module rest-api/rest.api.Main
What did I miss? Thanks in advance.