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

@opentelemetry/instrumentation-fastify

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-fastify - npm Package Compare versions

Comparing version 0.38.0 to 0.39.0

4

build/src/instrumentation.d.ts

@@ -5,6 +5,4 @@ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';

/** Fastify instrumentation for OpenTelemetry */
export declare class FastifyInstrumentation extends InstrumentationBase {
export declare class FastifyInstrumentation extends InstrumentationBase<FastifyInstrumentationConfig> {
constructor(config?: FastifyInstrumentationConfig);
setConfig(config?: FastifyInstrumentationConfig): void;
getConfig(): FastifyInstrumentationConfig;
init(): InstrumentationNodeModuleDefinition[];

@@ -11,0 +9,0 @@ private _hookOnRequest;

@@ -33,8 +33,2 @@ "use strict";

}
setConfig(config = {}) {
this._config = Object.assign({}, config);
}
getConfig() {
return this._config;
}
init() {

@@ -185,4 +179,5 @@ return [

const span = (0, utils_1.startSpan)(reply, instrumentation.tracer, spanName, spanAttributes);
if (instrumentation.getConfig().requestHook) {
(0, instrumentation_1.safeExecuteInTheMiddle)(() => instrumentation.getConfig().requestHook(span, { request }), e => {
const { requestHook } = instrumentation.getConfig();
if (requestHook) {
(0, instrumentation_1.safeExecuteInTheMiddle)(() => requestHook(span, { request }), e => {
if (e) {

@@ -189,0 +184,0 @@ instrumentation._diag.error('request hook failed', e);

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

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

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

// this is autogenerated file, see scripts/version-update.js
exports.PACKAGE_VERSION = '0.38.0';
exports.PACKAGE_VERSION = '0.39.0';
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-fastify';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-fastify",
"version": "0.38.0",
"version": "0.39.0",
"description": "OpenTelemetry instrumentation for `fastify` http web application framework",

@@ -50,14 +50,14 @@ "main": "build/src/index.js",

"@opentelemetry/context-async-hooks": "^1.8.0",
"@opentelemetry/contrib-test-utils": "^0.40.0",
"@opentelemetry/instrumentation-http": "^0.52.0",
"@opentelemetry/contrib-test-utils": "^0.41.0",
"@opentelemetry/instrumentation-http": "^0.53.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",
"@opentelemetry/sdk-trace-node": "^1.8.0",
"@types/express": "4.17.18",
"@types/express": "4.17.21",
"@types/mocha": "7.0.2",
"@types/node": "18.15.3",
"@types/semver": "7.5.5",
"@types/semver": "7.5.8",
"fastify": "4.18.0",
"mocha": "7.2.0",
"nyc": "15.1.0",
"rimraf": "5.0.5",
"rimraf": "5.0.10",
"semver": "^7.5.4",

@@ -70,7 +70,7 @@ "test-all-versions": "6.1.0",

"@opentelemetry/core": "^1.8.0",
"@opentelemetry/instrumentation": "^0.52.0",
"@opentelemetry/semantic-conventions": "^1.22.0"
"@opentelemetry/instrumentation": "^0.53.0",
"@opentelemetry/semantic-conventions": "^1.27.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-fastify#readme",
"gitHead": "ad8436d6a4174f2288cb939080cd4e74da94b0d7"
"gitHead": "9dc58afed8134f95908331bcff35c5d9ec46fe9a"
}

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