# @polywrap/tracing-js

> Polywrap Core Tracing

Latest version **0.12.2** (published 2023-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @polywrap/tracing-js
pnpm add @polywrap/tracing-js
yarn add @polywrap/tracing-js
bun add @polywrap/tracing-js
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.12.2 |
| Published | 2023-08-21 |
| First published | 2022-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 27.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | polywrap-build-bot, dorgjelli |

## Links

- npm: https://www.npmjs.com/package/@polywrap/tracing-js
- Repository: https://github.com/polywrap/javascript-client
- npm.io page: https://npm.io/package/@polywrap/tracing-js

## Dependencies (6)

- [@opentelemetry/api](https://npm.io/package/@opentelemetry/api.md) 1.2.0
- [@opentelemetry/resources](https://npm.io/package/@opentelemetry/resources.md) 1.6.0
- [@opentelemetry/sdk-trace-web](https://npm.io/package/@opentelemetry/sdk-trace-web.md) 1.6.0
- [@opentelemetry/sdk-trace-base](https://npm.io/package/@opentelemetry/sdk-trace-base.md) 1.6.0
- [@fetsorn/opentelemetry-console-exporter](https://npm.io/package/@fetsorn/opentelemetry-console-exporter.md) 0.0.3
- [@opentelemetry/exporter-trace-otlp-http](https://npm.io/package/@opentelemetry/exporter-trace-otlp-http.md) 0.32.0

## Recent versions

- 0.12.2 (latest) — 2023-08-21
- 0.12.0-pre.1 (pre) — 2023-07-12
- 0.12.1 — 2023-08-20
- 0.12.0 — 2023-07-26
- 0.11.0 — 2023-06-27
- 0.10.1 — 2023-04-29
- 0.10.0 — 2023-04-14
- 0.10.0-pre.14 — 2023-04-13
- 0.9.7 — 2023-03-28
- 0.10.0-pre.13 — 2023-03-18
- 0.10.0-pre.12 — 2023-03-14
- 0.10.0-pre.11 — 2023-03-06
- 0.10.0-pre.10 — 2023-03-01
- 0.9.6 — 2023-02-19
- 0.10.0-pre.8 — 2023-02-16
- … 31 more at https://npm.io/package/@polywrap/tracing-js/versions

## README

# @polywrap/tracing-js

## Steps to use tracing

1. Run the zipkin client using docker

    ```
    docker run -d -p 9411:9411 openzipkin/zipkin
    ```

2. Enable tracing when creating the `PolywrapClient`

    ```typescript
    const client = new PolywrapClient({
      ...,
      tracingEnabled: true
    })
    ```

    Or you can turn on tracing while running the `PolywrapClient` by calling the `tracingEnabled` method of `PolywrapClient`.

    ```typescript
    // Turn tracing off
    client.tracingEnabled(false);
    ```

3. Once you run the app and started producing logs, go to zipkin client which is running on `http://localhost:9411`. There you can click `RUN QUERY` button without any filters to show all the logs.

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