# monitara-exporter

> monitara exporter for opentelemetry

Latest version **0.0.21** (published 2023-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install monitara-exporter
pnpm add monitara-exporter
yarn add monitara-exporter
bun add monitara-exporter
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.21 |
| Published | 2023-02-14 |
| First published | 2023-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 23.5 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | Monitara Team |
| Maintainers | monitara |
| Keywords | monitara, oltp, opentelemetry, nodejs, tracing, profiling, metrics, stats |

## Links

- npm: https://www.npmjs.com/package/monitara-exporter
- npm.io page: https://npm.io/package/monitara-exporter

## Dependencies (8)

- [pino](https://npm.io/package/pino.md) ^8.9.0
- [moment](https://npm.io/package/moment.md) ^2.29.4
- [base-64](https://npm.io/package/base-64.md) ^1.0.0
- [queue-promise](https://npm.io/package/queue-promise.md) ^2.2.1
- [@elastic/transport](https://npm.io/package/@elastic/transport.md) ^8.3.1
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) ^8.6.0
- [@opentelemetry/sdk-node](https://npm.io/package/@opentelemetry/sdk-node.md) ^0.35.1
- [@opentelemetry/auto-instrumentations-node](https://npm.io/package/@opentelemetry/auto-instrumentations-node.md) ^0.36.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.0.21 (latest) — 2023-02-14
- 0.0.20 — 2023-02-14
- 0.0.19 — 2023-02-14
- 0.0.18 — 2023-02-14
- 0.0.17 — 2023-02-14
- 0.0.16 — 2023-02-13
- 0.0.15 — 2023-02-13
- 0.0.14 — 2023-02-13
- 0.0.13 — 2023-02-13
- 0.0.11 — 2023-02-13
- 0.0.10 — 2023-02-13
- 0.0.9 — 2023-02-13
- 0.0.8 — 2023-02-13
- 0.0.7 — 2023-02-13
- 0.0.6 — 2023-02-13
- … 4 more at https://npm.io/package/monitara-exporter/versions

## README

<div align="center">
  <h1>Monitara-Exporter</h1>

<br>

`monitara-exporter` is a small, dependency-free library for exports opentelemetry logs to monitara APM . 

</div>

## Installation

```bash
$ npm i monitara-exporter
```

## Usage
```javascript
//make sure you call monitara exporter before any other framework init
import  {MonitaraExporter}  from "monitara-exporter";

const monitaraExporter = new MonitaraExporter({
    apiKey: YOUR_API_KEY,
    node: YOUR_END_POINT_NODE,
});

monitaraExporter.start()
```

## Full Usage
```javascript
import  {MonitaraExporter}  from "monitara-exporter";
const monitaraExporter = new MonitaraExporter({
    apiKey: YOUR_API_KEY,
    node: YOUR_END_POINT_NODE,
    silent: false,
    queueConcurrent: 1,
    maxBatchSize: 200,
    interval: 2000
});
monitaraExporter.start()
```

## API

#### `new MonitaraExporter(options)`

Create a new `MonitaraExport` instance.

| Option            | Default | Description                                    |
| :---------------- | :------ | :--------------------------------------------- |
| `apiKey`          | ``      | Monitara open telemetry apiKey                 |
| `node`            | ``      | Monitara Opentelemetry end point               |
| `queueConcurrent` | `1`     | How many tasks should be executed in parallel  |
| `maxBatchSize`    | `200`   | Max documents size per task                    |
| `interval`        | `2000`  | How often should new tasks be executed (in ms) |
| `silent`          | `false` | Verbose mode                                   |

## Build

```bash
$ npm run build
```

---
_Source: https://npm.io/package/monitara-exporter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
