Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@opencensus/exporter-zpages
Advanced tools
A collection of HTML pages to display stats and trace data and allow library configuration control
OpenCensus Zpages Exporter implements a collection of HTML pages that display stats and trace data sent from OpenCensus Node.js.
The library is in alpha stage and the API is subject to change.
npm install @opencensus/nodejs
npm install @opencensus/exporter-zpages
Zpages always runs on localhost, but you can change the port in the options. If the option startServer
is set to true
, Zpages server will start when a new Zpages instance is created. It's also possible to predefined some span names. These empty spans will be listed on Zpages.
To use Zpages, instance the exporter on your application and pass the options. For javascript:
const tracing = require('@opencensus/nodejs');
const zpages = require('@opencensus/exporter-zipkin');
// Add your zipkin url and application name to the Zipkin options
const options = {
port: 8080, // default
startServer: true, // default
spanNames: ['predefined/span1', 'predefined/span2']
}
const exporter = new zpages.ZpagesExporter(options);
Similarly for Typescript:
import * as tracing from '@opencensus/nodejs';
import {ZpagesExporter, ZpagesExporterOptions} from '@opencensus/zpages-exporter';
// Add your zipkin url and application name to the Zipkin options
const options: ZpagesExporterOptions = {
port: 8080, // default
startServer: true, // default
spanNames: ['predefined/span1', 'predefined/span2']
};
const exporter = new ZpagesExporter(options);
Now, register the exporter and start tracing.
tracing.start({'exporter': exporter});
or
tracing.registerExporter(exporter).start();
If options.startServer
is set to false
, the server can be started by calling startServer
method:
zpages.startServer();
The server will run at http:\\localhost:port
.
There are four pages you can browse.
/tracez: Trace list.
/traceconfigz: Trace settings.
/rpcz: RPC stats (not yet implemented).
/stats: Stats page (not yet implemented).
If it is necessary to stop the server programmatically, use the following command:
zpages.stopServer();
0.0.16 - 2019-07-20
tracer
property available on spans.FAQs
A collection of HTML pages to display stats and trace data and allow library configuration control
The npm package @opencensus/exporter-zpages receives a total of 0 weekly downloads. As such, @opencensus/exporter-zpages popularity was classified as not popular.
We found that @opencensus/exporter-zpages 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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.