@opentelemetry/context-base
OpenTelemetry Base Context Manager
Last updated 6 years ago by dyladan .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @opentelemetry/context-base 
SYNC missed versions from official npm registry.

OpenTelemetry Base Context Manager

NPM Published Version dependencies devDependencies Apache License

This package provides the ContextManager interface (which is used by concrete implementations) and a no-op implementation (which is used internally when no context propagation is defined). It's intended for use both on the server and in the browser.

What is a Context Manager

To understand why they exists, we'll need to understand how Javascript works: when you make native function call (networks, setInterval etc) you generally call C++ code that will later callback your own code.

A common issue when tracing a request in javascript is to link the function that have made the native call to the callback that the native code called when the response is there. Imagine you want to track for which user you made the request, you need some sort of "context/context aware storage".

ContextManager's aim to offer exactly that, it's API offer to store an object in the current context (with()) and if needed, bind() to a specific function call to find it back when the callback fire, which can later get retrieved using active().

This package only include the interface and a Noop implementation, for more information please see the async-hooks based ContextManager for NodeJS.

Useful links

License

Apache 2.0 - See LICENSE for more information.

Current Tags

  • 0.17.1-alpha.21                                ...           canary (5 years ago)
  • 0.17.0                                ...           latest (5 years ago)

27 Versions

  • 0.17.1-alpha.21                                ...           5 years ago
  • 0.17.0                                ...           5 years ago
  • 0.16.1-alpha.11                                ...           5 years ago
  • 0.16.0                                ...           5 years ago
  • 0.15.0                                ...           5 years ago
  • 0.14.0                                ...           5 years ago
  • 0.13.0                                ...           5 years ago
  • 0.12.0                                ...           5 years ago
  • 0.12.1-alpha.54                                ...           5 years ago
  • 0.11.1-alpha.36                                ...           6 years ago
  • 0.11.0                                ...           6 years ago
  • 0.11.1-alpha.48                                ...           6 years ago
  • 0.10.3-canary.0                                ...           6 years ago
  • 0.10.2                                ...           6 years ago
  • 0.10.1                                ...           6 years ago
  • 0.10.0                                ...           6 years ago
  • 0.9.0                                ...           6 years ago
  • 0.8.3                                ...           6 years ago
  • 0.8.2                                ...           6 years ago
  • 0.8.1                                ...           6 years ago
  • 0.8.0                                ...           6 years ago
  • 0.7.0                                ...           6 years ago
  • 0.6.1                                ...           6 years ago
  • 0.6.0                                ...           6 years ago
  • 0.5.2                                ...           6 years ago
  • 0.5.1                                ...           6 years ago
  • 0.5.0                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (10)

Copyright 2013 - present © cnpmjs.org | Home |