cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Quarkus native integration with Dynatrace Maven oneagent.

sanusasidharan
Newcomer

Hello Team,

I am trying to implement the below  feature in a Quarkus application 
https://docs.dynatrace.com/docs/ingest-from/technology-support/application-software/java/graalvm-nat...

 

The version of Quarkus is 3.8.5 as mentioned in the support document.  JDK version 21 , dynatrace-native-maven-plugin version is  2.0.1. 
It is rest based application which makes a call towards oracle database. 
What we see is that during the native complie the  dynatrace binaries are not getting attached, due to which the agent is not running when we deploy the application in Openshift.  
The --native-agent-path path is not getting set during the build time.  Had anyone integrated  dynatrace-native-maven-plugin with  Quarkus application  ? 
I need some pointers to debug this  issue. 

 

<plugin>
	<groupId>com.dynatrace.buildtools.graalnative</groupId>
	<artifactId>dynatrace-native-maven-plugin</artifactId>
	<version>2.0.1</version>
	<executions>
		<execution>
			<id>setup-agent</id>
			<phase>generate-resources</phase>
			<goals>
				<goal>setup-build-agent</goal>
				<goal>copy-runtime-agent</goal>
			</goals>
			<configuration>
				<agentDownload>
					<environmentUrl>masked</environmentUrl>
					<apiToken>masked</apiToken>
				</agentDownload>
				<agentOptions>loglevelcon=info,agentconfigpath=src/main/resources/agent.json</agentOptions>
			</configuration>
		</execution>
	</executions>
	<extensions>true</extensions>
</plugin>

 

1 REPLY 1

gusmazeikis
Observer

Hi,
I found this link where some issues with building the Quarkus Native image are mentioned.
In my case, I followed their recommendation to build it directly pointing to my local GraalVM .
"./mvnw clean package -Pdynatrace-native -Dnative -Dquarkus.native.container-build=false -Dquarkus.native.builder-image=graalvm -DskipTests
"
I hope this helps.

Regards, Gustavo.

https://github.com/quarkusio/quarkus/issues/45325.

 

Featured Posts