Skip to content

Commit

Permalink
[monitor] Update tests for OTEL (#32369)
Browse files Browse the repository at this point in the history
### Packages impacted by this PR

- @azure/opentelemetry-instrumentation-azure-sdk
- @azure/monitor-opentelemetry
- @azure/monitor-opentelemetry-exporter
- @azure/monitor-query

### Issues associated with this PR

- #32334
- #32335
- #32337
- #32338
- #32339
- #32340
- #32341
- #32342
- #32343
- #32344
- #32345
- #32346
- #32347

### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
  • Loading branch information
mpodwysocki authored Dec 29, 2024
1 parent fee88cf commit 02f964f
Show file tree
Hide file tree
Showing 8 changed files with 286 additions and 316 deletions.
514 changes: 242 additions & 272 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sdk/ai/ai-inference-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
"@azure/monitor-opentelemetry-exporter": "1.0.0-beta.27",
"@azure/opentelemetry-instrumentation-azure-sdk": "1.0.0-beta.7",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/instrumentation": "^0.56.0",
"@opentelemetry/sdk-trace-node": "^1.29.0",
"@opentelemetry/instrumentation": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@types/node": "^18.0.0",
"@vitest/browser": "^2.0.5",
"@vitest/coverage-istanbul": "^2.0.5",
Expand Down
4 changes: 2 additions & 2 deletions sdk/ai/ai-projects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
"@azure-tools/test-recorder": "^4.1.0",
"@azure-tools/test-utils-vitest": "^1.0.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/instrumentation": "0.53.0",
"@opentelemetry/sdk-trace-node": "^1.9.0",
"@opentelemetry/instrumentation": "0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@vitest/browser": "^2.0.5",
"@vitest/coverage-istanbul": "^2.0.5",
"@types/node": "^18.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,24 @@
"@azure/core-tracing": "^1.2.0",
"@azure/logger": "^1.0.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/core": "^1.29.0",
"@opentelemetry/instrumentation": "^0.56.0",
"@opentelemetry/core": "^1.30.0",
"@opentelemetry/instrumentation": "^0.57.0",
"tslib": "^2.7.0"
},
"devDependencies": {
"@azure/core-rest-pipeline": "^1.5.1",
"@azure/core-rest-pipeline": "^1.18.1",
"@azure/dev-tool": "^1.0.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
"@opentelemetry/sdk-trace-base": "^1.29.0",
"@opentelemetry/sdk-trace-node": "^1.29.0",
"@opentelemetry/sdk-trace-base": "^1.30.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@types/node": "^18.0.0",
"@vitest/browser": "^2.1.1",
"@vitest/coverage-istanbul": "^2.1.1",
"@vitest/browser": "^2.1.8",
"@vitest/coverage-istanbul": "^2.1.8",
"dotenv": "^16.0.0",
"eslint": "^9.9.0",
"playwright": "^1.47.2",
"playwright": "^1.49.1",
"typescript": "~5.7.2",
"vitest": "^2.1.1"
"vitest": "^2.1.8"
},
"//sampleConfiguration": {
"skipFolder": true,
Expand Down
18 changes: 9 additions & 9 deletions sdk/monitor/monitor-opentelemetry-exporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@
"@azure/core-util": "^1.11.0",
"@azure/dev-tool": "^1.0.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
"@opentelemetry/instrumentation": "^0.56.0",
"@opentelemetry/instrumentation-http": "^0.56.0",
"@opentelemetry/sdk-trace-node": "^1.29.0",
"@opentelemetry/instrumentation": "^0.57.0",
"@opentelemetry/instrumentation-http": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@types/node": "^18.0.0",
"@vitest/browser": "^2.1.4",
"@vitest/coverage-istanbul": "^2.1.4",
Expand All @@ -96,12 +96,12 @@
"@azure/core-client": "^1.0.0",
"@azure/core-rest-pipeline": "^1.1.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/api-logs": "^0.56.0",
"@opentelemetry/core": "^1.29.0",
"@opentelemetry/resources": "^1.29.0",
"@opentelemetry/sdk-logs": "^0.56.0",
"@opentelemetry/sdk-metrics": "^1.29.0",
"@opentelemetry/sdk-trace-base": "^1.29.0",
"@opentelemetry/api-logs": "^0.57.0",
"@opentelemetry/core": "^1.30.0",
"@opentelemetry/resources": "^1.30.0",
"@opentelemetry/sdk-logs": "^0.57.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-trace-base": "^1.30.0",
"@opentelemetry/semantic-conventions": "^1.28.0",
"tslib": "^2.8.1"
},
Expand Down
38 changes: 19 additions & 19 deletions sdk/monitor/monitor-opentelemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,26 +89,26 @@
"@azure/opentelemetry-instrumentation-azure-sdk": "^1.0.0-beta.7",
"@microsoft/applicationinsights-web-snippet": "^1.2.1",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/api-logs": "^0.56.0",
"@opentelemetry/core": "^1.29.0",
"@opentelemetry/instrumentation": "^0.56.0",
"@opentelemetry/instrumentation-bunyan": "^0.44.0",
"@opentelemetry/instrumentation-http": "^0.56.0",
"@opentelemetry/instrumentation-mongodb": "^0.50.0",
"@opentelemetry/instrumentation-mysql": "^0.44.0",
"@opentelemetry/instrumentation-pg": "^0.49.0",
"@opentelemetry/instrumentation-redis": "^0.45.0",
"@opentelemetry/instrumentation-redis-4": "^0.45.0",
"@opentelemetry/instrumentation-winston": "^0.43.0",
"@opentelemetry/resource-detector-azure": "^0.4.0",
"@opentelemetry/resources": "^1.29.0",
"@opentelemetry/sdk-logs": "^0.56.0",
"@opentelemetry/sdk-metrics": "^1.29.0",
"@opentelemetry/sdk-node": "^0.56.0",
"@opentelemetry/sdk-trace-base": "^1.29.0",
"@opentelemetry/sdk-trace-node": "^1.29.0",
"@opentelemetry/api-logs": "^0.57.0",
"@opentelemetry/core": "^1.30.0",
"@opentelemetry/instrumentation": "^0.57.0",
"@opentelemetry/instrumentation-bunyan": "^0.45.0",
"@opentelemetry/instrumentation-http": "^0.57.0",
"@opentelemetry/instrumentation-mongodb": "^0.51.0",
"@opentelemetry/instrumentation-mysql": "^0.45.0",
"@opentelemetry/instrumentation-pg": "^0.50.0",
"@opentelemetry/instrumentation-redis": "^0.46.0",
"@opentelemetry/instrumentation-redis-4": "^0.46.0",
"@opentelemetry/instrumentation-winston": "^0.44.0",
"@opentelemetry/resource-detector-azure": "^0.5.0",
"@opentelemetry/resources": "^1.30.0",
"@opentelemetry/sdk-logs": "^0.57.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-base": "^1.30.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@opentelemetry/semantic-conventions": "^1.28.0",
"@opentelemetry/winston-transport": "^0.9.0",
"@opentelemetry/winston-transport": "^0.10.0",
"tslib": "^2.8.1"
},
"sideEffects": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const testAttributes: any = {
"service.name": "unknown_service:node",
"telemetry.sdk.language": "nodejs",
"telemetry.sdk.name": "opentelemetry",
"telemetry.sdk.version": "1.29.0",
"telemetry.sdk.version": "1.30.0",
};

describe("Library/Config", () => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/monitor/perf-tests/monitor-opentelemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"@azure-tools/test-perf": "^1.0.0",
"@azure/monitor-opentelemetry": "^1.8.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/api-logs": "^0.56.0",
"@opentelemetry/sdk-logs": "^0.56.0",
"@opentelemetry/api-logs": "^0.57.0",
"@opentelemetry/sdk-logs": "^0.57.0",
"dotenv": "^16.0.0",
"tslib": "^2.8.1"
},
Expand Down

0 comments on commit 02f964f

Please sign in to comment.