@azure/opentelemetry-instrumentation-azure-sdk 1.0.0-beta.7 → 1.0.0-beta.9
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/LICENSE +3 -3
- package/README.md +34 -36
- package/dist/browser/configuration.js +1 -1
- package/dist/browser/configuration.js.map +1 -1
- package/dist/browser/instrumentation-browser.d.mts.map +1 -1
- package/dist/browser/instrumentation-browser.mjs.map +1 -1
- package/dist/browser/instrumentation.d.ts +2 -1
- package/dist/browser/instrumentation.js +1 -1
- package/dist/browser/instrumenter.d.ts +1 -1
- package/dist/browser/instrumenter.d.ts.map +1 -1
- package/dist/browser/instrumenter.js.map +1 -1
- package/dist/browser/spanWrapper.d.ts +2 -2
- package/dist/browser/spanWrapper.d.ts.map +1 -1
- package/dist/browser/spanWrapper.js +17 -2
- package/dist/browser/spanWrapper.js.map +1 -1
- package/dist/browser/transformations.d.ts +3 -2
- package/dist/browser/transformations.d.ts.map +1 -1
- package/dist/browser/transformations.js.map +1 -1
- package/dist/commonjs/configuration.js +1 -1
- package/dist/commonjs/configuration.js.map +1 -1
- package/dist/commonjs/instrumentation.d.ts +8 -5
- package/dist/commonjs/instrumentation.d.ts.map +1 -1
- package/dist/commonjs/instrumentation.js +6 -4
- package/dist/commonjs/instrumentation.js.map +1 -1
- package/dist/commonjs/instrumenter.d.ts +1 -1
- package/dist/commonjs/instrumenter.d.ts.map +1 -1
- package/dist/commonjs/instrumenter.js.map +1 -1
- package/dist/commonjs/spanWrapper.d.ts +2 -2
- package/dist/commonjs/spanWrapper.d.ts.map +1 -1
- package/dist/commonjs/spanWrapper.js +17 -2
- package/dist/commonjs/spanWrapper.js.map +1 -1
- package/dist/commonjs/transformations.d.ts +3 -2
- package/dist/commonjs/transformations.d.ts.map +1 -1
- package/dist/commonjs/transformations.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/configuration.js.map +1 -1
- package/dist/esm/instrumentation.d.ts +8 -5
- package/dist/esm/instrumentation.d.ts.map +1 -1
- package/dist/esm/instrumentation.js +6 -4
- package/dist/esm/instrumentation.js.map +1 -1
- package/dist/esm/instrumenter.d.ts +1 -1
- package/dist/esm/instrumenter.d.ts.map +1 -1
- package/dist/esm/instrumenter.js.map +1 -1
- package/dist/esm/spanWrapper.d.ts +2 -2
- package/dist/esm/spanWrapper.d.ts.map +1 -1
- package/dist/esm/spanWrapper.js +17 -2
- package/dist/esm/spanWrapper.js.map +1 -1
- package/dist/esm/transformations.d.ts +3 -2
- package/dist/esm/transformations.d.ts.map +1 -1
- package/dist/esm/transformations.js.map +1 -1
- package/dist/react-native/configuration.js +1 -1
- package/dist/react-native/configuration.js.map +1 -1
- package/dist/react-native/instrumentation.d.ts +8 -5
- package/dist/react-native/instrumentation.d.ts.map +1 -1
- package/dist/react-native/instrumentation.js +6 -4
- package/dist/react-native/instrumentation.js.map +1 -1
- package/dist/react-native/instrumenter.d.ts +1 -1
- package/dist/react-native/instrumenter.d.ts.map +1 -1
- package/dist/react-native/instrumenter.js.map +1 -1
- package/dist/react-native/spanWrapper.d.ts +2 -2
- package/dist/react-native/spanWrapper.d.ts.map +1 -1
- package/dist/react-native/spanWrapper.js +17 -2
- package/dist/react-native/spanWrapper.js.map +1 -1
- package/dist/react-native/transformations.d.ts +3 -2
- package/dist/react-native/transformations.d.ts.map +1 -1
- package/dist/react-native/transformations.js.map +1 -1
- package/package.json +23 -32
- package/types/latest/opentelemetry-instrumentation-azure-sdk.d.ts +0 -52
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/opentelemetry-instrumentation-azure-sdk",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.9",
|
|
4
4
|
"description": "Instrumentation client for the Azure SDK.",
|
|
5
5
|
"sdk-type": "client",
|
|
6
6
|
"type": "module",
|
|
@@ -18,34 +18,25 @@
|
|
|
18
18
|
},
|
|
19
19
|
"types": "./dist/commonjs/index.d.ts",
|
|
20
20
|
"scripts": {
|
|
21
|
-
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
|
|
22
21
|
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
23
22
|
"build:samples": "echo Obsolete",
|
|
24
|
-
"build:test": "echo skipped. actual commands inlined in browser test scripts",
|
|
25
23
|
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
|
26
|
-
"clean": "rimraf --glob dist dist-* temp types *.tgz *.log",
|
|
24
|
+
"clean": "dev-tool run vendored rimraf --glob dist dist-* temp types *.tgz *.log",
|
|
27
25
|
"execute:samples": "dev-tool samples run samples-dev",
|
|
28
26
|
"extract-api": "dev-tool run build-package && dev-tool run extract-api",
|
|
29
27
|
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
|
30
28
|
"generate:client": "autorest --typescript ./swagger/README.md",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"integration-test:node": "echo skipped",
|
|
34
|
-
"lint": "eslint package.json api-extractor.json README.md src test",
|
|
35
|
-
"lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]",
|
|
29
|
+
"lint": "eslint package.json api-extractor.json src test",
|
|
30
|
+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
|
|
36
31
|
"pack": "npm pack 2>&1",
|
|
37
|
-
"test": "npm run
|
|
38
|
-
"test:browser": "npm run clean &&
|
|
39
|
-
"test:node": "
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"unit-test:node": "dev-tool run test:vitest --no-test-proxy",
|
|
43
|
-
"update-snippets": "echo skipped"
|
|
32
|
+
"test": "npm run test:node && npm run test:browser",
|
|
33
|
+
"test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --no-test-proxy --browser",
|
|
34
|
+
"test:node": "dev-tool run test:vitest --no-test-proxy",
|
|
35
|
+
"test:node:esm": "dev-tool run test:vitest --esm --no-test-proxy",
|
|
36
|
+
"update-snippets": "dev-tool run update-snippets"
|
|
44
37
|
},
|
|
45
38
|
"files": [
|
|
46
39
|
"dist/",
|
|
47
|
-
"dist-esm/src/",
|
|
48
|
-
"types/latest/",
|
|
49
40
|
"README.md",
|
|
50
41
|
"LICENSE"
|
|
51
42
|
],
|
|
@@ -71,36 +62,36 @@
|
|
|
71
62
|
"@azure/core-tracing": "^1.2.0",
|
|
72
63
|
"@azure/logger": "^1.0.0",
|
|
73
64
|
"@opentelemetry/api": "^1.9.0",
|
|
74
|
-
"@opentelemetry/core": "^
|
|
75
|
-
"@opentelemetry/instrumentation": "^0.
|
|
76
|
-
"tslib": "^2.7.0"
|
|
65
|
+
"@opentelemetry/core": "^2.0.0",
|
|
66
|
+
"@opentelemetry/instrumentation": "^0.200.0",
|
|
67
|
+
"tslib": "^2.7.0",
|
|
68
|
+
"@opentelemetry/sdk-trace-web": "^2.0.0"
|
|
77
69
|
},
|
|
78
70
|
"devDependencies": {
|
|
79
|
-
"@azure/core-rest-pipeline": "^1.
|
|
71
|
+
"@azure/core-rest-pipeline": "^1.18.1",
|
|
80
72
|
"@azure/dev-tool": "^1.0.0",
|
|
81
73
|
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
|
82
|
-
"@
|
|
83
|
-
"@opentelemetry/sdk-trace-
|
|
84
|
-
"@opentelemetry/sdk-trace-node": "^1.26.0",
|
|
74
|
+
"@opentelemetry/sdk-trace-base": "^2.0.0",
|
|
75
|
+
"@opentelemetry/sdk-trace-node": "^2.0.0",
|
|
85
76
|
"@types/node": "^18.0.0",
|
|
86
|
-
"@vitest/browser": "^
|
|
87
|
-
"@vitest/coverage-istanbul": "^
|
|
77
|
+
"@vitest/browser": "^3.0.9",
|
|
78
|
+
"@vitest/coverage-istanbul": "^3.0.9",
|
|
88
79
|
"dotenv": "^16.0.0",
|
|
89
80
|
"eslint": "^9.9.0",
|
|
90
|
-
"playwright": "^1.
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"vitest": "^2.1.1"
|
|
81
|
+
"playwright": "^1.49.1",
|
|
82
|
+
"typescript": "~5.8.2",
|
|
83
|
+
"vitest": "^3.0.9"
|
|
94
84
|
},
|
|
95
85
|
"//sampleConfiguration": {
|
|
96
86
|
"skipFolder": true,
|
|
97
87
|
"disableDocsMs": true,
|
|
98
88
|
"productName": "Azure OpenTelemetry Instrumentation",
|
|
99
89
|
"productSlugs": [],
|
|
100
|
-
"apiRefLink": "https://
|
|
90
|
+
"apiRefLink": "https://learn.microsoft.com/javascript/api/",
|
|
101
91
|
"requiredResources": {}
|
|
102
92
|
},
|
|
103
93
|
"tshy": {
|
|
94
|
+
"project": "./tsconfig.src.json",
|
|
104
95
|
"exports": {
|
|
105
96
|
"./package.json": "./package.json",
|
|
106
97
|
".": "./src/index.ts"
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { AzureLogger } from '@azure/logger';
|
|
2
|
-
import { Instrumentation } from '@opentelemetry/instrumentation';
|
|
3
|
-
import { InstrumentationBase } from '@opentelemetry/instrumentation';
|
|
4
|
-
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
5
|
-
import { InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The instrumentation module for the Azure SDK. Implements OpenTelemetry's {@link Instrumentation}.
|
|
9
|
-
*/
|
|
10
|
-
export declare class AzureSdkInstrumentation extends InstrumentationBase {
|
|
11
|
-
constructor(options?: AzureSdkInstrumentationOptions);
|
|
12
|
-
/**
|
|
13
|
-
* Entrypoint for the module registration.
|
|
14
|
-
*
|
|
15
|
-
* @returns The patched \@azure/core-tracing module after setting its instrumenter.
|
|
16
|
-
*/
|
|
17
|
-
protected init(): void | InstrumentationModuleDefinition | InstrumentationModuleDefinition[];
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Configuration options that can be passed to {@link createAzureSdkInstrumentation} function.
|
|
22
|
-
*/
|
|
23
|
-
export declare interface AzureSdkInstrumentationOptions extends InstrumentationConfig {
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Enables Azure SDK Instrumentation using OpenTelemetry for Azure SDK client libraries.
|
|
28
|
-
*
|
|
29
|
-
* When registered, any Azure data plane package will begin emitting tracing spans for internal calls
|
|
30
|
-
* as well as network calls
|
|
31
|
-
*
|
|
32
|
-
* Example usage:
|
|
33
|
-
* ```ts
|
|
34
|
-
* const openTelemetryInstrumentation = require("@opentelemetry/instrumentation");
|
|
35
|
-
* openTelemetryInstrumentation.registerInstrumentations({
|
|
36
|
-
* instrumentations: [createAzureSdkInstrumentation()],
|
|
37
|
-
* })
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
*
|
|
42
|
-
* As OpenTelemetry instrumentations rely on patching required modules, you should register
|
|
43
|
-
* this instrumentation as early as possible and before loading any Azure Client Libraries.
|
|
44
|
-
*/
|
|
45
|
-
export declare function createAzureSdkInstrumentation(options?: AzureSdkInstrumentationOptions): Instrumentation;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The \@azure/logger configuration for this package.
|
|
49
|
-
*/
|
|
50
|
-
export declare const logger: AzureLogger;
|
|
51
|
-
|
|
52
|
-
export { }
|