Teleplug

View Source

Module Version Hex Docs Total Download License Last Updated

Teleplug is a dead simple opentelemetry-instrumented plug.

Installation

If available in Hex, the package can be installed by adding teleplug to your list of dependencies in mix.exs:

def deps do
  [
    {:teleplug, "~> 1.0.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/teleplug.

Use

In your pipeline add

plug Teleplug

There are some options you can pass, for example

plug Teleplug,
  trace_propagation: :as_link

see the module documentation for details

Copyright (c) 2020 Prima.it

This work is free. You can redistribute it and/or modify it under the terms of the MIT License. See the LICENSE.md file for more details.