
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@opentelemetry/scope-base
Advanced tools
This package provides the ScopeManager interface (which is used by concrete implementations) and a no-op implementation (which is used internally when no scope propagation is defined). It's intended for use both on the server and in the browser.
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/scope aware storage".
ScopeManager's aim to offer exactly that, it's API offer to store an object in the current scope (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 ScopeManager for NodeJS.
Note: You will sometimes read about context management, which is sometimes also used for talking about scope management. However in OpenTelemetry, context was already heavily used as a concept in the Trace API so we named this package with scope to avoid confusion.
Apache 2.0 - See LICENSE for more information.
0.4.0
Released 2020-02-05
opentelemetry-api
opentelemetry-plugin-http
opentelemetry-exporter-jaeger
opentelemetry-plugin-user-interaction
FAQs
OpenTelemetry Base Scope Manager
The npm package @opentelemetry/scope-base receives a total of 86 weekly downloads. As such, @opentelemetry/scope-base popularity was classified as not popular.
We found that @opentelemetry/scope-base demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.