
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.