dd-trace-java icon indicating copy to clipboard operation
dd-trace-java copied to clipboard

Support for GraalVM

Open StanBorbatTR opened this issue 3 years ago • 4 comments

We have several functions that are compiled with GraalVM and deployed to run in Lambda's custom runtime. The Lambda zip bundle contains two files application which is the binary generated by GraalVM's compiler and bootstrap which contains the following script:

#!/bin/sh
set -euo pipefail
./application -Xmx512m -Djava.library.path=$(pwd)

The wrapper only will set the Java appropriate variables in the runtime matches *java*. Is there a way for us to get this working with GraalVM? Will APM even work with a GraalVM compiled Java application?

StanBorbatTR avatar Oct 20 '22 18:10 StanBorbatTR

We are working on the APM support for GraalVM Lambda cc: @maxday

tianchu avatar Feb 27 '23 15:02 tianchu

@tianchu @maxday Are you still working on supporting GraalVM? Thanks in advance and it would be greatly appreciated to have it!

rui-ribeiro avatar Aug 21 '23 14:08 rui-ribeiro

Transferred the issue to here, as there's nothing on the Serverless we can do yet to support GraalVM, but it looks like this ticket should belong here

duncanista avatar Jan 30 '25 01:01 duncanista

https://docs.datadoghq.com/tracing/trace_collection/compatibility/java/?tab=graalvm#graalvm-native-image-support describes how to use dd-java-agent to instrument native images built by GraalVM

mcculls avatar Jan 30 '25 09:01 mcculls