/abstracing

An Elixir library that helps you to create OpenTelemetry spans with the least effort

Primary LanguageElixirMIT LicenseMIT

Abstracing

It's a library that helps you to create OpenTelemetry spans with the least effort.

When you use Tracing it will include all required modules to start using tracing, as well as importing the span/1, span/2 and span/3 functions.

defmodule MyModule do
  use Tracing

  def my_function do
    span do
      # ... some code here
    end
  end
end

Although it's not a fork, this project ie heavily inspired by Hatch Tracing.

Installation

The package can be installed by adding abstracing to your list of dependencies in mix.exs:

def deps do
  [
    {:abstracing, "~> 0.1.0"}
  ]
end

The docs can be found at https://hexdocs.pm/abstracing.