Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.79 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.79 KB

Datadog Serverless Azure Java Agent

Java agent used to start the Datadog Serverless Mini Agent. Intended for use with Azure Spring Apps and Azure Functions.

Getting Started

  • From the latest releases, download dd-serverless-azure-java-agent.jar and dd-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
-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

Contributing

Setting up development environment

Follow the instructions in the dd-trace-java repo to set up your Java environment: Setting up development environment.

Building the project

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