Java agent used to start the Datadog Serverless Mini Agent. Intended for use with Azure Spring Apps and Azure Functions.
- From the latest releases, download
dd-serverless-azure-java-agent.jar
anddd-java-agent.jar
to your app:wget -O dd-serverless-azure-java-agent.jar 'https://dtdg.co/latest-serverless-azure-java-agent'
wget -O dd-java-agent.jar 'https://dtdg.co/latest-java-tracer'
- Add the Datadog Serverless Azure Java Agent and Datadog Java Tracer as Java agents using the appropriate JVM Options environment variable:
- Azure Spring App
JVM_OPTIONS
- Azure Function, Consumption Plan
languageWorkers__java__arguments
- Azure Function, Premium/Dedicated Plan
JAVA_OPTS
- Azure Spring App
-javaagent:/path/to/dd-serverless-azure-java-agent.jar -javaagent:/path/to/dd-java-agent.jar
- Set Datadog environment variables
DD_API_KEY
=<YOUR API KEY>
DD_SITE
=datadoghq.com
DD_SERVICE
=<SERVICE NAME>
DD_ENV
=<ENVIRONMENT
DD_VERSION
=<VERSION>
DD_TRACE_TRACER_METRICS_ENABLED
=true
Follow the instructions in the dd-trace-java
repo to set up your Java environment: Setting up development environment.
Build the Datadog Serverless Mini Agent from libdatadog and add the binaries, datadog-serverless-trace-mini-agent
and datadog-serverless-trace-mini-agent.exe
, to src/main/resources
.
To build the project run:
./build.sh