# @opencensus/propagation-stackdriver

> Opencensus propagation package for Stackdriver format.

Latest version **0.1.0** (published 2021-07-27) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @opencensus/propagation-stackdriver
pnpm add @opencensus/propagation-stackdriver
yarn add @opencensus/propagation-stackdriver
bun add @opencensus/propagation-stackdriver
```

## 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.1.0 |
| Published | 2021-07-27 |
| First published | 2018-05-31 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 31.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 273 |
| Author | OpenCensus Authors |
| Maintainers | kjin, ofrobots, google-admin, isaikevych, google-wombot, mayurkale22 |
| Keywords | opencensus, nodejs, tracing, profiling, stackdriver, trace |

## Links

- npm: https://www.npmjs.com/package/@opencensus/propagation-stackdriver
- Repository: https://github.com/census-instrumentation/opencensus-node
- Homepage: https://github.com/census-instrumentation/opencensus-node#readme
- Issues: https://github.com/census-instrumentation/opencensus-node/issues
- npm.io page: https://npm.io/package/@opencensus/propagation-stackdriver

## Dependencies (3)

- [uuid](https://npm.io/package/uuid.md) ^8.0.0
- [hex2dec](https://npm.io/package/hex2dec.md) ^1.0.1
- [@opencensus/core](https://npm.io/package/@opencensus/core.md) ^0.1.0

## Recent versions

- 0.1.0 (latest) — 2021-07-27
- 0.0.22 — 2020-06-05
- 0.0.21 — 2020-03-30
- 0.0.20 — 2020-02-19
- 0.0.19 — 2019-11-22
- 0.0.18 — 2019-10-09
- 0.0.17 — 2019-09-03
- 0.0.16 — 2019-07-20
- 0.0.15 — 2019-07-09
- 0.0.14 — 2019-06-04
- 0.0.13 — 2019-05-20
- 0.0.12 — 2019-05-13
- 0.0.11 — 2019-04-09
- 0.0.10 — 2019-04-03
- 0.0.9 — 2019-02-13
- … 9 more at https://npm.io/package/@opencensus/propagation-stackdriver/versions

## README

# OpenCensus Stackdriver Propagation for Node.js
[![Gitter chat][gitter-image]][gitter-url]

OpenCensus Stackdriver Propagation allow other services to create spans with the right context.

The library is in alpha stage and the API is subject to change.

## Installation

Install OpenCensus Stackdriver Propagation with:
```bash
npm install @opencensus/propagation-stackdriver
```

## Usage

To propagate span context arround services with Stackdriver Propagation, pass an instance of Stackdriver Propagation to your tracing instance. For Javascript:

```javascript
const tracing = require('@opencensus/nodejs');
const propagation = require('@opencensus/propagation-stackdriver');

const sd = propagation.v1;

tracing.start({propagation: sd});
```

Similarly for Typescript:

```typescript
import * as tracing from '@opencensus/nodejs';
import * as propagation from '@opencensus/propagation-stackdriver';

const sd = propagation.v1;

tracing.start({propagation: sd});
```

## Useful links
- For more information on OpenCensus, visit: <https://opencensus.io/>
- To checkout the OpenCensus for Node.js, visit: <https://github.com/census-instrumentation/opencensus-node>
- For help or feedback on this project, join us on [gitter](https://gitter.im/census-instrumentation/Lobby)

[gitter-image]: https://badges.gitter.im/census-instrumentation/lobby.svg
[gitter-url]: https://gitter.im/census-instrumentation/lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

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