Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/opencensus-beam/opencensus_telemetry

Opencensus integration with Telemetry library
https://github.com/opencensus-beam/opencensus_telemetry

elixir erlang metrics opencensus telemetry

Last synced: 29 days ago
JSON representation

Opencensus integration with Telemetry library

Awesome Lists containing this project

README

        

# Opencensus.Telemetry

[![CircleCI](https://circleci.com/gh/opencensus-beam/opencensus_telemetry.svg?style=svg)](https://circleci.com/gh/opencensus-beam/opencensus_telemetry)
[![codecov](https://codecov.io/gh/opencensus-beam/opencensus_telemetry/branch/master/graph/badge.svg)](https://codecov.io/gh/opencensus-beam/opencensus_telemetry)

Integration between [`telemetry`][telemetry] and [`opencensus`][oc].

## Installation

Rebar3:

```erlang
{deps, [{opencensus_telemetry, "~> 0.1.0"}]}.
```

Mix:

```elixir
def deps do
[
{:opencensus_telemetry, "~> 0.1.0"}
]
end
```

## Usage

To add measure on event just run:

```erlang
oc_telemetry:attach("measure/name", [event, name], "Description", unit).
```

Or in Elixir:

```elixir
:oc_telemetry.attach("measure/name", [:event, :name], "Description", :unit)
```

## License

See [LICENSE](LICENSE) file.

[telemetry]: https://github.com/beam-telemetry/telemetry
[oc]: https://github.com/census-instrumentation/opencensus-erlang