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

@opentelemetry/instrumentation-pino

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-pino - npm Package Compare versions

Comparing version 0.41.0 to 0.42.0

4

build/src/instrumentation.d.ts
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { PinoInstrumentationConfig } from './types';
export declare class PinoInstrumentation extends InstrumentationBase {
export declare class PinoInstrumentation extends InstrumentationBase<PinoInstrumentationConfig> {
constructor(config?: PinoInstrumentationConfig);
protected init(): InstrumentationNodeModuleDefinition[];
getConfig(): PinoInstrumentationConfig;
setConfig(config?: PinoInstrumentationConfig): void;
private _callHook;

@@ -9,0 +7,0 @@ private _getMixinFunction;

@@ -105,14 +105,8 @@ "use strict";

}
getConfig() {
return this._config;
}
setConfig(config = {}) {
this._config = config;
}
_callHook(span, record, level) {
const hook = this.getConfig().logHook;
if (!hook) {
const { logHook } = this.getConfig();
if (!logHook) {
return;
}
(0, instrumentation_1.safeExecuteInTheMiddle)(() => hook(span, record, level), err => {
(0, instrumentation_1.safeExecuteInTheMiddle)(() => logHook(span, record, level), err => {
if (err) {

@@ -119,0 +113,0 @@ api_1.diag.error('pino instrumentation: error calling logHook', err);

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

export declare const PACKAGE_VERSION = "0.41.0";
export declare const PACKAGE_VERSION = "0.42.0";
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-pino";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.PACKAGE_VERSION = '0.41.0';
exports.PACKAGE_VERSION = '0.42.0';
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-pino';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-pino",
"version": "0.41.0",
"version": "0.42.0",
"description": "OpenTelemetry instrumentation for `pino` logger",

@@ -49,15 +49,15 @@ "main": "build/src/index.js",

"@opentelemetry/api": "^1.3.0",
"@opentelemetry/contrib-test-utils": "^0.40.0",
"@opentelemetry/contrib-test-utils": "^0.41.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",
"@opentelemetry/sdk-trace-node": "^1.8.0",
"@opentelemetry/semantic-conventions": "^1.22.0",
"@opentelemetry/semantic-conventions": "^1.27.0",
"@types/mocha": "7.0.2",
"@types/node": "18.6.5",
"@types/semver": "7.5.3",
"@types/sinon": "10.0.18",
"@types/semver": "7.5.8",
"@types/sinon": "10.0.20",
"mocha": "7.2.0",
"nyc": "15.1.0",
"pino": "8.3.1",
"rimraf": "5.0.5",
"semver": "7.5.4",
"rimraf": "5.0.10",
"semver": "7.6.3",
"sinon": "15.2.0",

@@ -69,8 +69,8 @@ "test-all-versions": "6.1.0",

"dependencies": {
"@opentelemetry/api-logs": "^0.52.0",
"@opentelemetry/api-logs": "^0.53.0",
"@opentelemetry/core": "^1.25.0",
"@opentelemetry/instrumentation": "^0.52.0"
"@opentelemetry/instrumentation": "^0.53.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-pino#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