Giter VIP home page Giter VIP logo

sbt-datadog's Introduction

sbt-datadog

Download

This project is highly inspired by the fantastic sbt-newrelic project.

We want to thanks Gilt for their work on sbt-newrelic that allowed us to create this project really quickly.

Prerequisites

The plugin assumes that sbt-native-packager has been included in your SBT build configuration. This can be done by adding the plugin following instructions at http://www.scala-sbt.org/sbt-native-packager/ or by adding another plugin that includes and initializes it (e.g. the SBT plugin for Play 2.6.x).

Installation

Add the following to your project/plugins.sbt file:

resolvers += Resolver.bintrayRepo("colisweb", "sbt-plugins")

addSbtPlugin("com.colisweb.sbt" % "sbt-datadog" % "0.1.8")

To enable the Datadog APM for your project, add the DatadogAPM auto-plugin to your project.

enablePlugins(DatadogAPM)

Configuration

datadogApmVersion

To use a specific Datadog Java APM Agent version, add the following to your build.sbt file:

datadogApmVersion := "0.10.0"

datadogServiceName

By default, the agent will use the sbt project name value as service.name.

To use another value, add the following to your build.sbt file:

datadogServiceName := "another name"

You can use your host (where you code run) enviroment variables in the value:

datadogServiceName := "another name ${MY_HOST_ENV_VAR}"

datadogAgentHost

By default, the agent agent.host value is localhost.

To use another value, add the following to your build.sbt file:

datadogAgentHost := "127.0.0.1"

You can use your host (where you code run) enviroment variables in the value:

datadogServiceName := "${MY_DD_HOST_IP}"

datadogAgentPort

By default, the agent agent.port value is 8126.

To use another value, add the following to your build.sbt file:

datadogAgentPort := 9999

You can use your host (where you code run) enviroment variables in the value:

datadogAgentPort := "${MY_DD_PORT}"

datadogEnv

By default, the env is not set.

To set the env, add the following to your build.sbt file:

datadogEnv := "staging"

You can use your host (where you code run) enviroment variables in the value:

datadogEnv := "${MY_ENV}"

datadogEnableNetty

Netty Http Server and Client Instrumentation. Default value is false.

To use another value, add the following to your build.sbt file:

datadogEnableNetty := true

datadogEnableAkkaHttp

Akka-Http Server and Lagom Framework Instrumentation. Default value is false.

To use another value, add the following to your build.sbt file:

datadogEnableAkkaHttp := true

datadogEnableDebug

To return debug level application logs, enable debug mode with this flag. Default value is false.

To use another value, add the following to your build.sbt file:

datadogEnableDebug := true

Other possible settings

For more configuration option, look at the Datadog Java APM agent documentation: https://docs.datadoghq.com/tracing/setup/java/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.