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-stackdriver
Advanced tools
OpenCensus Exporter Stackdriver allows user to send collected traces to Stackdriver
OpenCensus Stackdriver Exporter allows the user to send collected traces with OpenCensus Node.js and stats with OpenCensus Core to Stackdriver Cloud Tracing and Stackdriver Monitoring.
The library is in alpha stage and the API is subject to change.
Install OpenCensus Stackdriver Exporter with:
npm install @opencensus/nodejs
npm install @opencensus/exporter-stackdriver
To use Stackdriver as your exporter, make sure you have enabled Stackdriver Tracing on Google Cloud Platform. Enable your Application Default Credentials for authentication with:
export GOOGLE_APPLICATION_CREDENTIALS=path/to/your/credential.json
Create and register the exporter on your application and pass your Project ID.
For Javascript:
const tracing = require('@opencensus/nodejs');
const { StackdriverTraceExporter } = require('@opencensus/exporter-stackdriver');
// Add your project id to the Stackdriver options
const exporter = new StackdriverTraceExporter({projectId: "your-project-id"});
tracing.registerExporter(exporter).start();
Similarly for TypeScript:
import * as tracing from '@opencensus/nodejs';
import { StackdriverTraceExporter } from '@opencensus/exporter-stackdriver';
// Add your project id to the Stackdriver options
const exporter = new StackdriverTraceExporter({projectId: "your-project-id"});
Now, register the exporter and start tracing.
tracing.start({'exporter': exporter});
or
tracing.registerExporter(exporter).start();
Viewing your traces:
With the above you should now be able to navigate to the Stackdriver UI at: https://console.cloud.google.com/traces/traces
Install OpenCensus Stackdriver Exporter with:
npm install @opencensus/core
npm install @opencensus/exporter-stackdriver
To use Stackdriver as your exporter, make sure you have enabled Stackdriver Monitoring on Google Cloud Platform. Enable your Application Default Credentials for authentication with:
export GOOGLE_APPLICATION_CREDENTIALS=path/to/your/credential.json
Create and register the exporter on your application.
For Javascript:
const { globalStats } = require('@opencensus/core');
const { StackdriverStatsExporter } = require('@opencensus/exporter-stackdriver');
// Add your project id to the Stackdriver options
const exporter = new StackdriverStatsExporter({ projectId: "your-project-id" });
// Pass the created exporter to Stats
globalStats.registerExporter(exporter);
Similarly for TypeScript:
import { globalStats } from '@opencensus/core';
import { StackdriverStatsExporter } from '@opencensus/exporter-stackdriver';
// Add your project id to the Stackdriver options
const exporter = new StackdriverStatsExporter({ projectId: "your-project-id" });
// Pass the created exporter to Stats
globalStats.registerExporter(exporter);
Viewing your metrics:
With the above you should now be able to navigate to the Stackdriver UI at: https://console.cloud.google.com/monitoring
0.1.0 - 2021-07-27
FAQs
OpenCensus Exporter Stackdriver allows user to send collected traces to Stackdriver
We found that @opencensus/exporter-stackdriver 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.