
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@ms-cloudpack/telemetry
Advanced tools
A library for telemetry that gets reported to Application Insights by using Open Telemetry standards.
Currently, this library only supports Tracing. Metrics and Logs can be added later when needed.
const telemetryClient = new TelemetryClient({
serviceNamespace: 'cloudpack',
serviceName: 'cli',
productVersion: '1.2.3',
instrumentationKey: '<Application insights Instrumentation Key>',
logLevel: 'verbose',
});
telemetryClient.setSharedSpanAttribute('sessionId', 'my-session-id');
These attributes will get added to all spans.
const tracer = telemetryClient.getTracer();
const span = tracer.createSpan('my-unit-of-work');
// do work
span.addEvent('my-event', { myCustomAttribute: 'my-custom-value' });
try {
// do more work
} catch (err) {
span.recordException(err);
}
// end the span when the unit-of-work completed.
span.end();
telemetryClient.shutdown();
FAQs
Helpers for reporting telemetry in Cloudpack.
The npm package @ms-cloudpack/telemetry receives a total of 514 weekly downloads. As such, @ms-cloudpack/telemetry popularity was classified as not popular.
We found that @ms-cloudpack/telemetry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.