@opencensus/propagation-b3 (0.0.8)

Published 2026-02-24 13:49:56 +00:00 by atheaadmin

Installation

@opencensus:registry=
npm install @opencensus/propagation-b3@0.0.8
"@opencensus/propagation-b3": "0.0.8"

About this package

OpenCensus B3 Format Propagation for Node.js

Gitter chat

OpenCensus B3 Format Propagation sends a span context on the wire in an HTTP request, allowing other services to create spans with the right context.

This project is still at an early stage of development. It's subject to change.

Installation

Install OpenCensus B3 Propagation with:

npm install @opencensus/propagation-b3

Usage

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

const tracing = require('@opencensus/nodejs');
const propagation = require('@opencensus/propagation-b3');

const b3 = new propagation.B3Format();

tracing.start({propagation: b3});

Similarly for Typescript:

import * as tracing from '@opencensus/nodejs';
import { B3Format } from '@opencensus/propagation-b3';

const b3 = new B3Format();

tracing.start({propagation: b3});

Dependencies

Dependencies

ID Version
@opencensus/core ^0.0.8
uuid ^3.2.1

Development Dependencies

ID Version
@types/mocha ^5.2.5
@types/node ^10.12.12
@types/uuid ^3.4.3
gts ^0.9.0
mocha ^5.0.4
ncp ^2.0.0
nyc ^11.7.1
rimraf ^2.6.2
ts-node ^7.0.1
typescript ~2.7.2

Keywords

opencensus nodejs tracing profiling
Details
npm
2026-02-24 13:49:56 +00:00
0
Google Inc.
Apache-2.0
latest
6.2 KiB
Assets (1)
Versions (1) View all
0.0.8 2026-02-24