Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-winston

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-winston - npm Package Compare versions

Comparing version 0.37.0 to 0.38.0

2

build/src/instrumentation.d.ts

@@ -7,3 +7,3 @@ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';

getConfig(): WinstonInstrumentationConfig;
setConfig(config: WinstonInstrumentationConfig): void;
setConfig(config?: WinstonInstrumentationConfig): void;
private _callHook;

@@ -10,0 +10,0 @@ private _getPatchedWrite;

@@ -27,3 +27,3 @@ "use strict";

constructor(config = {}) {
super('@opentelemetry/instrumentation-winston', version_1.VERSION, config);
super(version_1.PACKAGE_NAME, version_1.PACKAGE_VERSION, config);
}

@@ -72,3 +72,3 @@ init() {

}
setConfig(config) {
setConfig(config = {}) {
this._config = config;

@@ -75,0 +75,0 @@ }

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

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

@@ -18,5 +18,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.PACKAGE_NAME = exports.PACKAGE_VERSION = void 0;
// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.37.0';
exports.PACKAGE_VERSION = '0.38.0';
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-winston';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-winston",
"version": "0.37.0",
"description": "OpenTelemetry instrumentation for winston",
"version": "0.38.0",
"description": "OpenTelemetry instrumentation for `winston` logger",
"main": "build/src/index.js",

@@ -51,3 +51,3 @@ "types": "build/src/index.d.ts",

"@opentelemetry/sdk-trace-node": "^1.21.0",
"@opentelemetry/winston-transport": "^0.3.0",
"@opentelemetry/winston-transport": "^0.4.0",
"@types/mocha": "7.0.2",

@@ -68,7 +68,7 @@ "@types/node": "18.6.5",

"dependencies": {
"@opentelemetry/api-logs": "^0.51.0",
"@opentelemetry/instrumentation": "^0.51.0"
"@opentelemetry/api-logs": "^0.52.0",
"@opentelemetry/instrumentation": "^0.52.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-winston#readme",
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973"
"gitHead": "0af1b70f7c3c9763c85ac51fa5e334c1e1512020"
}

@@ -82,3 +82,3 @@ # OpenTelemetry instrumentation for winston

Winston logger calls in the context of a tracing span will have fields
indentifying the span added to the log record. This allows
identifying the span added to the log record. This allows
[correlating](https://opentelemetry.io/docs/specs/otel/logs/#log-correlation)

@@ -88,5 +88,5 @@ log records with tracing data. The added fields are

* `trace_id`
* `span_id`
* `trace_flags`
- `trace_id`
- `span_id`
- `trace_flags`

@@ -111,7 +111,11 @@ After adding these fields, the optional `logHook` is called to allow injecting additional fields. For example:

## Semantic Conventions
This package does not currently generate any attributes from semantic conventions.
## Useful links
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]

@@ -118,0 +122,0 @@ ## License

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