Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@opencensus/exporter-object
Advanced tools
OpenCensus Object Exporter allows the user to collect and access traces with OpenCensus Node.js.
OpenCensus Object Trace Exporter allows the user to collect and programmatically access traces with OpenCensus Node.js. This module is useful for when you need to access collected spans programmatically, for example for testing purposes.
Install OpenCensus Object Trace Exporter with:
npm install @opencensus/nodejs
npm install @opencensus/exporter-object
For javascript:
const tracing = require('@opencensus/nodejs');
const { ObjectTraceExporter } = require('@opencensus/exporter-object');
const exporter = new ObjectTraceExporter();
Similarly for Typescript:
import * as tracing from '@opencensus/nodejs';
import { ObjectTraceExporter } from '@opencensus/exporter-object';
const exporter = new ObjectTraceExporter();
Now, register the exporter and start tracing.
tracing.start({'exporter': exporter});
or
tracing.registerExporter(exporter).start();
exporter.startedSpans.forEach((span: Span)) => {}
exporter.endedSpans.forEach((span: Span)) => {}
exporter.publishedSpans.forEach((span: Span)) => {}
Empties startedSpans
, endedSpans
and publishedSpans
span stores.
exporter.reset();
0.1.0 - 2021-07-27
FAQs
OpenCensus Object Exporter allows the user to collect and access traces with OpenCensus Node.js.
We found that @opencensus/exporter-object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.