Socket
Book a DemoInstallSign in
Socket

@oracle/trace-propagator

Package Overview
Dependencies
Maintainers
32
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oracle/trace-propagator

Utility for building headers for various formats of tracing propagation

latest
Source
npmnpm
Version
0.4.1
Version published
Maintainers
32
Created
Source

Trace Propagator

GitHub Workflow Status trace-propagator

This utility will construct the various trace propagation formats. All you need to do is give it a valid traceId and spanId.

Installation

Install the package:

npm i --save @oracle/trace-propagator

Examples

To use it in your code:

import { constructPropagation } from '@oracle/trace-propagator';

let promise = fetch(url, {
  headers: constructPropagation({ traceId, spanId })
});

Or if you have your own headers already, such as auth:

import { constructPropagation } from '@oracle/trace-propagator';

let promise = fetch(url, {
  headers: {
    Authentication: 'secret',
    ...constructPropagation({ traceId, spanId })
  }
});

Help

Open a GitHub issue for bug reports, questions, or requests for enhancements.

Contributing

This project welcomes contributions from the community. Before submitting a pull request, please review our contribution guide.

Security

Please consult the security guide for our responsible security vulnerability disclosure process.

License

Copyright (c) 2021 Oracle and/or its affiliates. Released under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl/.

Keywords

tracing

FAQs

Package last updated on 07 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts