Skip to content

Commit 6dfab1f

Browse files
authored
Merge pull request #1 from opencensus-beam/circleci
add circleci config and update readme
2 parents c1600fc + 8f1e193 commit 6dfab1f

3 files changed

Lines changed: 23 additions & 5 deletions

File tree

‎.circleci/config.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2.1
2+
orbs:
3+
rebar3: tsloughter/rebar3@0.5.4
4+
workflows:
5+
build-test:
6+
jobs:
7+
- rebar3/compile
8+
- rebar3/ct:
9+
requires:
10+
- rebar3/compile

‎README.md‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
opencensus_zipkin
1+
OpenCensus Zipkin Reporter
22
=====
33

4-
An OTP library
4+
[![CircleCI](https://circleci.com/gh/opencensus-beam/opencensus_zipkin.svg?style=svg)](https://circleci.com/gh/opencensus-beam/opencensus_zipkin)
5+
[![Hex.pm](https://img.shields.io/hexpm/v/opencensus_zipkin.svg?style=flat)](https://hex.pm/packages/opencensus_zipkin)
56

6-
Build
7-
-----
7+
To use, add `opencensus_zipkin` dependency as a runtime application (in rebar3 this means add to the `applications` list of `.app.src`) and set as the reporter in the `opencensus` configuration:
8+
9+
``` erlang
10+
{opencensus, [
11+
{reporter, {oc_reporter_zipkin, [{address, "http://localhost:9411/api/v2/spans"},
12+
{local_endpoint, #{<<"serviceName">> => <<"service">>}]}}}
13+
...]}
14+
```
815

9-
$ rebar3 compile

‎test/oc_reporter_zipkin_SUITE.erl‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ init_per_suite(Config) ->
1919
Config.
2020

2121
end_per_suite(_Config) ->
22+
ok = application:unload(opencensus),
2223
ok.
24+
2325
init_per_testcase(zipkin_reporter, Config) ->
2426
application:set_env(opencensus, reporter, {oc_reporter_zipkin, [{address, "http://ct-host:9411/endpoint"},
2527
{local_endpoint,

0 commit comments

Comments
 (0)