@opentelemetry/instrumentation-winston 0.27.2 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.29.0](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-winston-v0.28.0...instrumentation-winston-v0.29.0) (2022-06-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * update core dependencies stable ^1.3.1 experimental ^0.29.2 ([141b155](https://github.com/open-telemetry/opentelemetry-js-contrib/commit/141b155e344980b51264e26b26c117b2113bcef6))
9
+
10
+ ## [0.28.0](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-winston-v0.27.3...instrumentation-winston-v0.28.0) (2022-05-14)
11
+
12
+
13
+ ### Features
14
+
15
+ * add supported node versions for all packages ([#973](https://github.com/open-telemetry/opentelemetry-js-contrib/issues/973)) ([baaacbd](https://github.com/open-telemetry/opentelemetry-js-contrib/commit/baaacbdd35ca4baab0afae64647aa8c0380ee4b7))
16
+ * remove colors dependency ([#943](https://github.com/open-telemetry/opentelemetry-js-contrib/issues/943)) ([b21b96c](https://github.com/open-telemetry/opentelemetry-js-contrib/commit/b21b96c1a3a4f871370f970d6b2825f00e1fe595)), closes [#826](https://github.com/open-telemetry/opentelemetry-js-contrib/issues/826)
17
+ * use Otel SDK 1.2/0.28 ([#984](https://github.com/open-telemetry/opentelemetry-js-contrib/issues/984)) ([098c2ed](https://github.com/open-telemetry/opentelemetry-js-contrib/commit/098c2ed6f9c5ab7bd865685018c0777245aab3b7))
18
+
19
+ ### [0.27.3](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-winston-v0.27.2...instrumentation-winston-v0.27.3) (2022-03-14)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * avoid leaking winston types ([#932](https://github.com/open-telemetry/opentelemetry-js-contrib/issues/932)) ([31c4886](https://github.com/open-telemetry/opentelemetry-js-contrib/commit/31c4886e168c24496a2c60721eb0d9e3b8732d27))
25
+
3
26
  ### [0.27.2](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-winston-v0.27.1...instrumentation-winston-v0.27.2) (2022-03-02)
4
27
 
5
28
 
package/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # OpenTelemetry instrumentation for winston
2
2
 
3
3
  [![NPM Published Version][npm-img]][npm-url]
4
- [![dependencies][dependencies-image]][dependencies-url]
5
- [![devDependencies][devDependencies-image]][devDependencies-url]
6
4
  [![Apache License][license-image]][license-image]
7
5
 
8
6
  This module provides automatic instrumentation for injection of trace context to [`winston`](https://www.npmjs.com/package/winston).
@@ -73,9 +71,5 @@ Apache 2.0 - See [LICENSE][license-url] for more information.
73
71
  [discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions
74
72
  [license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE
75
73
  [license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat
76
- [dependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js-contrib.svg?path=plugins%2Fnode%2Fopentelemetry-instrumentation-winston
77
- [dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=plugins%2Fnode%2Fopentelemetry-instrumentation-winston
78
- [devDependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js-contrib.svg?path=plugins%2Fnode%2Fopentelemetry-instrumentation-winston&type=dev
79
- [devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-contrib?path=plugins%2Fnode%2Fopentelemetry-instrumentation-winston&type=dev
80
74
  [npm-url]: https://www.npmjs.com/package/@opentelemetry/instrumentation-winston
81
75
  [npm-img]: https://badge.fury.io/js/%40opentelemetry%2Finstrumentation-winston.svg
@@ -1,5 +1,5 @@
1
1
  import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
2
- import { WinstonInstrumentationConfig } from './types';
2
+ import type { WinstonInstrumentationConfig } from './types';
3
3
  export declare class WinstonInstrumentation extends InstrumentationBase {
4
4
  constructor(config?: WinstonInstrumentationConfig);
5
5
  protected init(): InstrumentationNodeModuleDefinition<{}>[];
@@ -0,0 +1,14 @@
1
+ import type { Logger as Winston3Logger } from 'winston';
2
+ import type { LoggerInstance as Winston2Logger, LogMethod as Winston2LogMethod } from 'winston2';
3
+ export declare type Winston3LogMethod = Winston3Logger['write'];
4
+ export type { Winston3Logger };
5
+ export type { Winston2LogMethod };
6
+ export declare type Winston2LoggerModule = {
7
+ Logger: Winston2Logger & {
8
+ prototype: {
9
+ log: Winston2LogMethod;
10
+ };
11
+ };
12
+ };
13
+ export type { Winston2Logger };
14
+ //# sourceMappingURL=internal-types.d.ts.map
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright The OpenTelemetry Authors
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ //# sourceMappingURL=internal-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-types.js","sourceRoot":"","sources":["../../src/internal-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -1,20 +1,7 @@
1
1
  import { Span } from '@opentelemetry/api';
2
2
  import { InstrumentationConfig } from '@opentelemetry/instrumentation';
3
- import type { Logger as Winston3Logger } from 'winston';
4
- import type { LoggerInstance as Winston2Logger, LogMethod as Winston2LogMethod } from 'winston2';
5
3
  export declare type LogHookFunction = (span: Span, record: Record<string, any>) => void;
6
4
  export interface WinstonInstrumentationConfig extends InstrumentationConfig {
7
5
  logHook?: LogHookFunction;
8
6
  }
9
- export declare type Winston3LogMethod = Winston3Logger['write'];
10
- export type { Winston3Logger };
11
- export type { Winston2LogMethod };
12
- export declare type Winston2LoggerModule = {
13
- Logger: Winston2Logger & {
14
- prototype: {
15
- log: Winston2LogMethod;
16
- };
17
- };
18
- };
19
- export type { Winston2Logger };
20
7
  //# sourceMappingURL=types.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.27.2";
1
+ export declare const VERSION = "0.29.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -17,5 +17,5 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.VERSION = void 0;
19
19
  // this is autogenerated file, see scripts/version-update.js
20
- exports.VERSION = '0.27.2';
20
+ exports.VERSION = '0.29.0';
21
21
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/instrumentation-winston",
3
- "version": "0.27.2",
3
+ "version": "0.29.0",
4
4
  "description": "OpenTelemetry instrumentation for winston",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/src/index.d.ts",
@@ -12,11 +12,11 @@
12
12
  "clean": "rimraf build/*",
13
13
  "lint": "eslint . --ext .ts",
14
14
  "lint:fix": "eslint . --ext .ts --fix",
15
- "precompile": "tsc --version && lerna run version --scope @opentelemetry/instrumentation-winston --include-dependencies",
15
+ "precompile": "tsc --version && lerna run version:update --scope @opentelemetry/instrumentation-winston --include-dependencies",
16
16
  "prewatch": "npm run precompile",
17
17
  "prepare": "npm run compile",
18
18
  "version:update": "node ../../../scripts/version-update.js",
19
- "compile": "npm run version:update && tsc -p ."
19
+ "compile": "tsc -p ."
20
20
  },
21
21
  "keywords": [
22
22
  "instrumentation",
@@ -30,7 +30,7 @@
30
30
  "author": "OpenTelemetry Authors",
31
31
  "license": "Apache-2.0",
32
32
  "engines": {
33
- "node": ">=8.5.0"
33
+ "node": ">=8.12.0"
34
34
  },
35
35
  "files": [
36
36
  "build/src/**/*.js",
@@ -44,17 +44,16 @@
44
44
  "access": "public"
45
45
  },
46
46
  "peerDependencies": {
47
- "@opentelemetry/api": "^1.0.2"
47
+ "@opentelemetry/api": "^1.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@opentelemetry/api": "1.0.2",
51
- "@opentelemetry/context-async-hooks": "1.0.1",
52
- "@opentelemetry/sdk-trace-base": "1.0.1",
53
- "@opentelemetry/sdk-trace-node": "1.0.1",
50
+ "@opentelemetry/api": "^1.0.0",
51
+ "@opentelemetry/context-async-hooks": "^1.3.1",
52
+ "@opentelemetry/sdk-trace-base": "^1.3.1",
53
+ "@opentelemetry/sdk-trace-node": "^1.3.1",
54
54
  "@types/mocha": "7.0.2",
55
55
  "@types/node": "16.11.21",
56
56
  "@types/sinon": "10.0.2",
57
- "colors": "1.4.0",
58
57
  "gts": "3.1.0",
59
58
  "mocha": "7.2.0",
60
59
  "nyc": "15.1.0",
@@ -67,7 +66,8 @@
67
66
  "winston2": "npm:winston@2.4.5"
68
67
  },
69
68
  "dependencies": {
70
- "@opentelemetry/instrumentation": "^0.27.0"
69
+ "@opentelemetry/instrumentation": "^0.29.2"
71
70
  },
72
- "gitHead": "78717b6dda677bf737811c34df21ef0ec88c31a3"
71
+ "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-winston#readme",
72
+ "gitHead": "9633cf49c4099e97dd2a285d0399455e17a593e3"
73
73
  }