Coder Social home page Coder Social logo

sbt-elastic-apm's Introduction

sbt-elastic-apm

Download

Add the Elastic APM Java Agent to your sbt project.

This project is heavily inspired by the sbt-datadog project.

Given the similar nature of the projects this plugin was quick to setup. Merci @guizmaii!

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.

Installation

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

resolvers += Resolver.bintrayIvyRepo("shadiramadan", "sbt-plugins")

addSbtPlugin("com.shadiramadan.sbt" % "sbt-elastic-apm" % "1.0.0")

To enable the Elastic APM for your project, add the ElasticApmPlugin auto-plugin to your project.

enablePlugins(ElasticApmPlugin)

Configuration

elasticApmVersion

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

elasticApmVersion := "1.6.1"

elasticApmServiceName

By default, the agent will use the sbt project name value as elastic.apm.service_name.

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

elasticApmServiceName := "another name"

elasticApmAgentApplicationPackages

By default, the agent elastic.apm.application_packages value is com.example.

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

elasticApmAgentApplicationPackages := Seq("com.example")

elasticApmAgentServerUrls

By default, the agent elastic.apm.server_urls value is http://localhost:8200.

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

elasticApmAgentServerUrls := Seq(url("http://localhost:8200"))

sbt-elastic-apm's People

Watchers

 avatar

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.