Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opencensus-beam/oc_google_reporter
Google Trace v1 reporter for opencensus-erlang
https://github.com/opencensus-beam/oc_google_reporter
erlang google-trace metrics opencensus tracing
Last synced: 3 months ago
JSON representation
Google Trace v1 reporter for opencensus-erlang
- Host: GitHub
- URL: https://github.com/opencensus-beam/oc_google_reporter
- Owner: opencensus-beam
- License: apache-2.0
- Created: 2017-09-22T15:27:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-26T15:04:24.000Z (over 4 years ago)
- Last Synced: 2024-03-14T21:45:37.519Z (8 months ago)
- Topics: erlang, google-trace, metrics, opencensus, tracing
- Language: Erlang
- Size: 19.5 KB
- Stars: 4
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-beam-monitoring - Google Reporter
README
oc_google_reporter
=====Reporter for [opencensus]() that implements support for version 1 and 2 of [Google Cloud Trace](https://cloud.google.com/trace/docs/reference/).
### Using
Add dependency to `rebar.config` and the `.app.src` of the application you are adding tracing to:
```
{deps, [opencensus, oc_google_reporter]}.
``````
{application, ..., [
{applications, [kernel, stdlib, oc_google_reporter, opencensus, ...]}
...
]}
```Add configuration for `opencensus` is added to `sys.config`, set to use the `oc_google_reporter` or `oc_google_reporter_v2` reporter:
```
{opencensus, [{sampler, {oc_sampler_always, []}},
{reporter, {oc_google_reporter_v2, #{project_id => <<"GOOGLE PROJECT">>,
credentials_source => default}}}]}
```The Google credentials are handled by the [augle](https://github.com/tsloughter/augle) library.