# @fetsorn/opentelemetry-console-exporter

> OpenTelemetry Console Exporter allows the user to send collected traces to the console.

Latest version **0.0.3** (published 2022-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fetsorn/opentelemetry-console-exporter
pnpm add @fetsorn/opentelemetry-console-exporter
yarn add @fetsorn/opentelemetry-console-exporter
bun add @fetsorn/opentelemetry-console-exporter
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2022-07-26 |
| First published | 2022-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 25.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | fetsorn |
| Maintainers | fetsorn |
| Keywords | opentelemetry, nodejs, tracing |

## Links

- npm: https://www.npmjs.com/package/@fetsorn/opentelemetry-console-exporter
- Repository: https://github.com/fetsorn/opentelemetry-console-exporter
- Homepage: https://github.com/fetsorn/opentelemetry-console-exporter#readme
- Issues: https://github.com/fetsorn/opentelemetry-console-exporter/issues
- npm.io page: https://npm.io/package/@fetsorn/opentelemetry-console-exporter

## Recent versions

- 0.0.3 (latest) — 2022-07-26
- 0.0.2 — 2022-07-13
- 0.0.1 — 2022-07-13

## README

# OpenTelemetry Console Trace Exporter
[![NPM Published Version][npm-img]][npm-url]

OpenTelemetry Console Trace Exporter allows the user to send collected traces to console.debug.

## Setup

Google Cloud Trace is a managed service provided by Google Cloud Platform.

## Installation

```bash
npm install --save @fetsorn/opentelemetry-console-exporter
```

## Usage
Install the exporter on your application, register the exporter, and start tracing. 
```js
const { ConsoleExporter } = require('@fetsorn/opentelemetry-console-exporter');

const exporter = new TraceExporter({
  // If you want more detailed view, you will need to specify `isDetailed = true` here
});
```

Now, register the exporter.

```js
provider.addSpanProcessor(new BatchSpanProcessor(exporter));
```

Exporter requires `BatchSpanProcessor` to analyze the trace hierarchy.

- [BatchSpanProcessor](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.4.0/specification/trace/sdk.md#batching-processor): The implementation of the `SpanProcessor` that batches ended spans and pushes them to the configured `SpanExporter`.


## Useful links
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
- Check out how this exporter is used in Polywrap: <https://github.com/polywrap/monorepo>

[npm-url]: https://www.npmjs.com/package/@fetsorn/opentelemetry-console-exporter
[npm-img]: https://badge.fury.io/js/%40fetsorn%2Fopentelemetry-console-exporter.svg
[license-url]: https://github.com/fetsorn/opentelemetry-console-exporter/blob/main/LICENSE
[license-image]: https://img.shields.io/npm/l/@fetsorn/opentelemetry-console-exporter

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