Skip to content

Commit

Permalink
[monitor] Update to latest OTEL (#28868)
Browse files Browse the repository at this point in the history
### Packages impacted by this PR

- @azure-tests/perf-monitor-opentelemetry

### Issues associated with this PR


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

Updates to latest OTEL packages

### 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
- [x] 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 Mar 11, 2024
1 parent 15f13e9 commit c49462c
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 71 deletions.
56 changes: 4 additions & 52 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 8 additions & 10 deletions sdk/monitor/perf-tests/monitor-opentelemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,25 @@
"version": "1.0.0",
"description": "",
"main": "",
"type": "module",
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@azure/monitor-opentelemetry": "^1.3.0",
"@azure/test-utils-perf": "^1.0.0",
"dotenv": "^16.0.0",
"uuid": "^8.3.0",
"@opentelemetry/api": "^1.7.0",
"@azure/monitor-opentelemetry": "^1.3.0",
"@opentelemetry/api-logs": "^0.48.0",
"@opentelemetry/sdk-logs": "^0.48.0"
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/api-logs": "^0.49.1",
"@opentelemetry/sdk-logs": "^0.49.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/uuid": "^8.0.0",
"@azure/dev-tool": "^1.0.0",
"@types/node": "^18.0.0",
"eslint": "^8.0.0",
"rimraf": "^5.0.5",
"tslib": "^2.2.0",
"ts-node": "^10.0.0",
"typescript": "~5.3.3",
"@azure/dev-tool": "^1.0.0"
"typescript": "~5.3.3"
},
"private": true,
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the MIT License.

import { createPerfProgram } from "@azure/test-utils-perf";
import { SpanExportTest } from "./spanExport.spec";
import { LogExportTest } from "./logExport.spec";
import { MetricExportTest } from "./metricExport.spec";
import { SpanExportTest } from "./spanExport.spec.js";
import { LogExportTest } from "./logExport.spec.js";
import { MetricExportTest } from "./metricExport.spec.js";

const perfProgram = createPerfProgram(SpanExportTest, LogExportTest, MetricExportTest);
perfProgram.run();
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import { PerfOptionDictionary } from "@azure/test-utils-perf";
import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec";
import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec.js";
import { logs, SeverityNumber } from "@opentelemetry/api-logs";

type MonitorOpenTelemetryTestOptions = Record<string, unknown>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import { PerfOptionDictionary } from "@azure/test-utils-perf";
import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec";
import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec.js";
import { metrics } from "@opentelemetry/api";

type MonitorOpenTelemetryTestOptions = Record<string, unknown>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import { PerfOptionDictionary } from "@azure/test-utils-perf";
import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec";
import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec.js";
import { trace, Span, Tracer, context } from "@opentelemetry/api";

type MonitorOpenTelemetryTestOptions = Record<string, unknown>;
Expand Down
13 changes: 10 additions & 3 deletions sdk/monitor/perf-tests/monitor-opentelemetry/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
{
"extends": "../../../../tsconfig.package",
"compilerOptions": {
"module": "commonjs",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "./dist-esm",
"declarationDir": "./types",
"paths": {
"@azure/monitor-opentelemetry-exporter": ["./src/index"]
"@azure/monitor-opentelemetry-exporter": [
"./src/index"
]
}
},
"include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"]
"include": [
"src/**/*.ts",
"test/**/*.ts",
"samples-dev/**/*.ts"
]
}

0 comments on commit c49462c

Please sign in to comment.