Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/instrumentation-long-task

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-long-task - npm Package Compare versions

Comparing version 0.39.0 to 0.40.0

7

build/esm/instrumentation.d.ts
import { InstrumentationBase } from '@opentelemetry/instrumentation';
import type { LongtaskInstrumentationConfig } from './types';
export declare class LongTaskInstrumentation extends InstrumentationBase {
export declare class LongTaskInstrumentation extends InstrumentationBase<LongtaskInstrumentationConfig> {
readonly version: string;
private _observer?;
_config: LongtaskInstrumentationConfig;
/**
*
* @param config
*/
constructor(config?: LongtaskInstrumentationConfig);

@@ -12,0 +7,0 @@ init(): void;

9

build/esm/instrumentation.js

@@ -38,6 +38,2 @@ var __extends = (this && this.__extends) || (function () {

__extends(LongTaskInstrumentation, _super);
/**
*
* @param config
*/
function LongTaskInstrumentation(config) {

@@ -61,5 +57,6 @@ if (config === void 0) { config = {}; }

});
if (this._config.observerCallback) {
var observerCallback = this.getConfig().observerCallback;
if (observerCallback) {
try {
this._config.observerCallback(span, { longtaskEntry: entry });
observerCallback(span, { longtaskEntry: entry });
}

@@ -66,0 +63,0 @@ catch (err) {

@@ -1,3 +0,3 @@

export declare const PACKAGE_VERSION = "0.39.0";
export declare const PACKAGE_VERSION = "0.40.0";
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-long-task";
//# sourceMappingURL=version.d.ts.map

@@ -17,4 +17,4 @@ /*

// this is autogenerated file, see scripts/version-update.js
export var PACKAGE_VERSION = '0.39.0';
export var PACKAGE_VERSION = '0.40.0';
export var PACKAGE_NAME = '@opentelemetry/instrumentation-long-task';
//# sourceMappingURL=version.js.map
import { InstrumentationBase } from '@opentelemetry/instrumentation';
import type { LongtaskInstrumentationConfig } from './types';
export declare class LongTaskInstrumentation extends InstrumentationBase {
export declare class LongTaskInstrumentation extends InstrumentationBase<LongtaskInstrumentationConfig> {
readonly version: string;
private _observer?;
_config: LongtaskInstrumentationConfig;
/**
*
* @param config
*/
constructor(config?: LongtaskInstrumentationConfig);

@@ -12,0 +7,0 @@ init(): void;

@@ -22,6 +22,2 @@ /*

export class LongTaskInstrumentation extends InstrumentationBase {
/**
*
* @param config
*/
constructor(config = {}) {

@@ -43,5 +39,6 @@ super(PACKAGE_NAME, PACKAGE_VERSION, config);

});
if (this._config.observerCallback) {
const { observerCallback } = this.getConfig();
if (observerCallback) {
try {
this._config.observerCallback(span, { longtaskEntry: entry });
observerCallback(span, { longtaskEntry: entry });
}

@@ -48,0 +45,0 @@ catch (err) {

@@ -1,3 +0,3 @@

export declare const PACKAGE_VERSION = "0.39.0";
export declare const PACKAGE_VERSION = "0.40.0";
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-long-task";
//# sourceMappingURL=version.d.ts.map

@@ -17,4 +17,4 @@ /*

// this is autogenerated file, see scripts/version-update.js
export const PACKAGE_VERSION = '0.39.0';
export const PACKAGE_VERSION = '0.40.0';
export const PACKAGE_NAME = '@opentelemetry/instrumentation-long-task';
//# sourceMappingURL=version.js.map
import { InstrumentationBase } from '@opentelemetry/instrumentation';
import type { LongtaskInstrumentationConfig } from './types';
export declare class LongTaskInstrumentation extends InstrumentationBase {
export declare class LongTaskInstrumentation extends InstrumentationBase<LongtaskInstrumentationConfig> {
readonly version: string;
private _observer?;
_config: LongtaskInstrumentationConfig;
/**
*
* @param config
*/
constructor(config?: LongtaskInstrumentationConfig);

@@ -12,0 +7,0 @@ init(): void;

@@ -25,6 +25,2 @@ "use strict";

class LongTaskInstrumentation extends instrumentation_1.InstrumentationBase {
/**
*
* @param config
*/
constructor(config = {}) {

@@ -46,5 +42,6 @@ super(version_1.PACKAGE_NAME, version_1.PACKAGE_VERSION, config);

});
if (this._config.observerCallback) {
const { observerCallback } = this.getConfig();
if (observerCallback) {
try {
this._config.observerCallback(span, { longtaskEntry: entry });
observerCallback(span, { longtaskEntry: entry });
}

@@ -51,0 +48,0 @@ catch (err) {

@@ -1,3 +0,3 @@

export declare const PACKAGE_VERSION = "0.39.0";
export declare const PACKAGE_VERSION = "0.40.0";
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-long-task";
//# sourceMappingURL=version.d.ts.map

@@ -20,4 +20,4 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.PACKAGE_VERSION = '0.39.0';
exports.PACKAGE_VERSION = '0.40.0';
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-long-task';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-long-task",
"version": "0.39.0",
"version": "0.40.0",
"description": "OpenTelemetry instrumentation for long task Web API",

@@ -13,2 +13,3 @@ "main": "build/src/index.js",

"lint:fix": "eslint . --ext .ts --fix",
"lint:readme": "node ../../../scripts/lint-readme.js",
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",

@@ -52,29 +53,30 @@ "precompile": "tsc --version && lerna run version:update --scope @opentelemetry/instrumentation-user-interaction --include-dependencies",

"devDependencies": {
"@babel/core": "7.22.17",
"@jsdevtools/coverage-istanbul-loader": "3.0.5",
"@babel/core": "7.24.6",
"@babel/preset-env": "7.24.6",
"@opentelemetry/api": "^1.3.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",
"@types/jquery": "3.5.20",
"@types/mocha": "7.0.2",
"@types/mocha": "10.0.6",
"@types/node": "18.6.5",
"@types/sinon": "10.0.18",
"@types/webpack-env": "1.16.2",
"babel-loader": "8.2.2",
"karma": "6.3.16",
"karma-chrome-launcher": "^3.1.1",
"karma-coverage-istanbul-reporter": "3.0.3",
"karma-jquery": "0.2.4",
"@types/sinon": "10.0.20",
"@types/webpack-env": "1.16.3",
"assert": "2.0.0",
"babel-loader": "8.3.0",
"babel-plugin-istanbul": "7.0.0",
"cross-var": "1.1.0",
"karma": "6.4.4",
"karma-chrome-launcher": "3.1.0",
"karma-coverage": "2.2.1",
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"karma-webpack": "4.0.2",
"mocha": "7.2.0",
"karma-webpack": "5.0.1",
"mocha": "10.2.0",
"nyc": "15.1.0",
"rimraf": "5.0.5",
"sinon": "15.2.0",
"ts-loader": "8.3.0",
"rimraf": "5.0.10",
"sinon": "15.1.2",
"ts-loader": "9.5.1",
"ts-mocha": "10.0.0",
"typescript": "4.4.4",
"webpack": "4.46.0",
"webpack-cli": "4.7.2",
"webpack-merge": "5.8.0",
"webpack": "5.89.0",
"webpack-cli": "5.1.4",
"webpack-merge": "5.10.0",
"zone.js": "^0.11.4 || ^0.13.0 || ^0.14.0"

@@ -84,3 +86,3 @@ },

"@opentelemetry/core": "^1.8.0",
"@opentelemetry/instrumentation": "^0.52.0",
"@opentelemetry/instrumentation": "^0.53.0",
"@opentelemetry/sdk-trace-web": "^1.8.0"

@@ -93,3 +95,3 @@ },

"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/web/opentelemetry-instrumentation-long-task#readme",
"gitHead": "0af1b70f7c3c9763c85ac51fa5e334c1e1512020"
"gitHead": "9dc58afed8134f95908331bcff35c5d9ec46fe9a"
}

@@ -72,3 +72,3 @@ # OpenTelemetry Long Task Instrumentation for web

[discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions
[license-url]: https://github.com/open-telemetry/opentelemetry-js/blob/main/LICENSE
[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE
[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat

@@ -75,0 +75,0 @@ [npm-url]: https://www.npmjs.com/package/@opentelemetry/instrumentation-long-task

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc