Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@opencensus/exporter-ocagent
Advanced tools
OpenCensus Agent Exporter allows user to send collected trace to the OpenCensus Agent
OpenCensus Agent Exporter allows the user to send collected traces with OpenCensus Node.js to the OpenCensus Agent or Collector.
The library is in alpha stage and the API is subject to change.
Install OpenCensus Agent Exporter with:
npm install @opencensus/nodejs
npm install @opencensus/exporter-ocagent
Instance the exporter on your application. For javascript:
const tracing = require('@opencensus/nodejs');
const ocagent = require('@opencensus/exporter-ocagent');
const exporter = new ocagent.OCAgentExporter({
// ... configuration options ...
});
tracing.registerExporter(exporter).start();
Similarly for Typescript:
import * as tracing from '@opencensus/nodejs';
import { OCAgentExporter } from '@opencensus/exporter-ocagent';
const exporter = new OCAgentExporter({
// ... configuration options ...
});
Now, register the exporter and start tracing.
tracing.start({exporter: exporter});
or
tracing.registerExporter(exporter).start();
The following options are available through the construtor options.
Option | Type | Description |
---|---|---|
serviceName | string | Name of the service. Defaults to Anonymous Service . |
host | string | Host or ip of the agent. Defaults to localhost . |
port | number | Port of the agent. Defaults to 55678 . |
credentials | grpc.ChannelCredentials | Credentials to use for grpc connection to agent. Defaults to grpc.credentials.createInsecure() . |
attributes | {[key: string]: string} | Map of key-value pairs to associate with the Node. |
bufferSize | number | Maximum size of the span buffer. |
bufferTimeout | number | Max time (in milliseconds) for the buffer can wait before exporting spans. |
logger | Logger | Logger to use for output. |
0.1.0 - 2021-07-27
FAQs
OpenCensus Agent Exporter allows user to send collected trace to the OpenCensus Agent
The npm package @opencensus/exporter-ocagent receives a total of 2,311 weekly downloads. As such, @opencensus/exporter-ocagent popularity was classified as popular.
We found that @opencensus/exporter-ocagent 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.