GithubHelp home page GithubHelp logo

isabella232 / apm-agent-ocaml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elastic/apm-agent-ocaml

0.0 0.0 0.0 160 KB

Elastic OCaml APM provides an OCaml library for uploading traces, transactions and errors to Elastic APM.

License: Apache License 2.0

OCaml 94.87% Dockerfile 4.36% Python 0.77%

apm-agent-ocaml's Introduction

OCaml agent for Elastic APM

Test and Build OCaml APM Client

Dev setup

Clone

git clone [email protected]:elastic/apm-agent-ocaml.git
cd apm-agent-ocaml

Setup OCaml environment

opam switch create . 4.13.1
opam install ocamlformat ocamlformat-rpc ocaml-lsp-server

You can run a build in watch mode so new changes are automatically detected and rebuilt. In a terminal, in or outside of your editor:

dune build -w

Tests can also be run in watch mode with expectation tests automatically capturing changes in output! This gives an almost magical experience where test results update as new tests are written and as the library itself evolves.

dune test -w --auto-promote

If you don't have it installed already, watch mode needs fswatch which can be installed via brew on macOS:

brew install fswatch

If you're using vscode, install the OCaml Platform plugin by OCaml Labs. The OCaml plugin should automatically detect the local opam switch you just created. If you setup format on save in the editor it will automatically format new changes via the LSP server to conform to the project's standard formatting.

You should now be ready to work on the OCaml Elastic APM agent!

Running the examples locally

  • Install docker + docker compose
  • docker compose build ocaml-base
  • docker compose build
  • docker compose up -d

Once docker compose up finishes the following endpoints will be available:

apm-agent-ocaml's People

Contributors

anuragsoni avatar hcarty avatar pjhampton avatar unrealakama 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.