@opentelemetry/instrumentation-winston 0.44.1 → 0.45.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/build/src/index.js
CHANGED
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
*/
|
|
17
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
18
|
if (k2 === undefined) k2 = k;
|
|
19
|
-
Object.
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
20
24
|
}) : (function(o, m, k, k2) {
|
|
21
25
|
if (k2 === undefined) k2 = k;
|
|
22
26
|
o[k2] = m[k];
|
package/build/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAEH,oDAAkC;AAClC,0CAAwB","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './instrumentation';\nexport * from './types';\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Logger as Winston3Logger } from 'winston';
|
|
2
2
|
import type { LoggerInstance as Winston2Logger, LogMethod as Winston2LogMethod } from 'winston2';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type Winston3LogMethod = Winston3Logger['write'];
|
|
4
|
+
export type Winston3ConfigureMethod = Winston3Logger['configure'];
|
|
5
5
|
export type { Winston3Logger };
|
|
6
6
|
export type { Winston2LogMethod };
|
|
7
|
-
export
|
|
7
|
+
export type Winston2LoggerModule = {
|
|
8
8
|
Logger: Winston2Logger & {
|
|
9
9
|
prototype: {
|
|
10
10
|
log: Winston2LogMethod;
|
package/build/src/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Span } from '@opentelemetry/api';
|
|
2
2
|
import { SeverityNumber } from '@opentelemetry/api-logs';
|
|
3
3
|
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
4
|
-
export
|
|
4
|
+
export type LogHookFunction = (span: Span, record: Record<string, any>) => void;
|
|
5
5
|
export interface WinstonInstrumentationConfig extends InstrumentationConfig {
|
|
6
6
|
/**
|
|
7
7
|
* Whether to disable the automatic sending of log records to the
|
package/build/src/version.d.ts
CHANGED
package/build/src/version.js
CHANGED
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.PACKAGE_NAME = exports.PACKAGE_VERSION = void 0;
|
|
19
19
|
// this is autogenerated file, see scripts/version-update.js
|
|
20
|
-
exports.PACKAGE_VERSION = '0.
|
|
20
|
+
exports.PACKAGE_VERSION = '0.45.0';
|
|
21
21
|
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-winston';
|
|
22
22
|
//# sourceMappingURL=version.js.map
|
package/build/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,YAAY,GAAG,wCAAwC,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const PACKAGE_VERSION = '0.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,YAAY,GAAG,wCAAwC,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const PACKAGE_VERSION = '0.45.0';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-winston';\n"]}
|
package/package.json
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentelemetry/instrumentation-winston",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "OpenTelemetry instrumentation for `winston` logger",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"types": "build/src/index.d.ts",
|
|
7
7
|
"repository": "open-telemetry/opentelemetry-js-contrib",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"test": "
|
|
9
|
+
"test": "npm run test-v1-v2 && npm run test-v3 && nyc merge .nyc_output ./coverage/coverage-final.json",
|
|
10
|
+
"test-v1-v2": "tav winston 2.4.7 npm run test-run",
|
|
11
|
+
"test-v3": "npm run test-run",
|
|
12
|
+
"test-run": "nyc --no-clean mocha 'test/**/*.test.ts'",
|
|
10
13
|
"test-all-versions": "tav",
|
|
11
|
-
"tdd": "npm run test -- --watch-extensions ts --watch",
|
|
14
|
+
"tdd": "npm run test-run -- --watch-extensions ts --watch",
|
|
12
15
|
"clean": "rimraf build/*",
|
|
13
16
|
"lint": "eslint . --ext .ts",
|
|
14
17
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
@@ -30,7 +33,7 @@
|
|
|
30
33
|
"author": "OpenTelemetry Authors",
|
|
31
34
|
"license": "Apache-2.0",
|
|
32
35
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
36
|
+
"node": "^18.19.0 || >=20.6.0"
|
|
34
37
|
},
|
|
35
38
|
"files": [
|
|
36
39
|
"build/src/**/*.js",
|
|
@@ -45,26 +48,26 @@
|
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
50
|
"@opentelemetry/api": "^1.3.0",
|
|
48
|
-
"@opentelemetry/context-async-hooks": "^
|
|
49
|
-
"@opentelemetry/sdk-trace-base": "^
|
|
50
|
-
"@opentelemetry/sdk-trace-node": "^
|
|
51
|
-
"@opentelemetry/winston-transport": "^0.
|
|
52
|
-
"@types/mocha": "
|
|
51
|
+
"@opentelemetry/context-async-hooks": "^2.0.0",
|
|
52
|
+
"@opentelemetry/sdk-trace-base": "^2.0.0",
|
|
53
|
+
"@opentelemetry/sdk-trace-node": "^2.0.0",
|
|
54
|
+
"@opentelemetry/winston-transport": "^0.11.0",
|
|
55
|
+
"@types/mocha": "10.0.10",
|
|
53
56
|
"@types/node": "18.18.14",
|
|
54
|
-
"@types/sinon": "
|
|
57
|
+
"@types/sinon": "17.0.4",
|
|
55
58
|
"@types/triple-beam": "^1.3.2",
|
|
56
59
|
"nyc": "15.1.0",
|
|
57
60
|
"rimraf": "5.0.10",
|
|
58
61
|
"sinon": "15.2.0",
|
|
59
62
|
"test-all-versions": "6.1.0",
|
|
60
|
-
"typescript": "
|
|
63
|
+
"typescript": "5.0.4",
|
|
61
64
|
"winston": "3.3.3",
|
|
62
65
|
"winston2": "npm:winston@2.4.7"
|
|
63
66
|
},
|
|
64
67
|
"dependencies": {
|
|
65
|
-
"@opentelemetry/api-logs": "^0.
|
|
66
|
-
"@opentelemetry/instrumentation": "^0.
|
|
68
|
+
"@opentelemetry/api-logs": "^0.200.0",
|
|
69
|
+
"@opentelemetry/instrumentation": "^0.200.0"
|
|
67
70
|
},
|
|
68
71
|
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-winston#readme",
|
|
69
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "32abc4c3c01d0e78e10022c74b6805b06e0e1fe7"
|
|
70
73
|
}
|