Skip to content

Commit 67f7e70

Browse files
authored
chore: update API to 0.18.0 (#1977)
1 parent 8af4444 commit 67f7e70

File tree

92 files changed

+362
-556
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+362
-556
lines changed

integration-tests/propagation-validation-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"compile": "tsc --build"
1212
},
1313
"dependencies": {
14-
"@opentelemetry/api": "^0.17.0",
14+
"@opentelemetry/api": "^0.18.0",
1515
"@opentelemetry/context-async-hooks": "^0.17.0",
1616
"@opentelemetry/core": "^0.17.0",
1717
"@opentelemetry/tracing": "^0.17.0",

packages/opentelemetry-api-metrics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"access": "public"
4949
},
5050
"dependencies": {
51-
"@opentelemetry/api": "^0.17.0"
51+
"@opentelemetry/api": "^0.18.0"
5252
},
5353
"devDependencies": {
5454
"@types/mocha": "8.2.0",

packages/opentelemetry-context-async-hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
"typescript": "4.1.3"
5454
},
5555
"dependencies": {
56-
"@opentelemetry/context-base": "^0.17.0"
56+
"@opentelemetry/api": "^0.18.0"
5757
}
5858
}

packages/opentelemetry-context-async-hooks/src/AbstractAsyncHooksContextManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { ContextManager, Context } from '@opentelemetry/context-base';
17+
import { ContextManager, Context } from '@opentelemetry/api';
1818
import { EventEmitter } from 'events';
1919

2020
type Func<T> = (...args: unknown[]) => T;

packages/opentelemetry-context-async-hooks/src/AsyncHooksContextManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { Context, ROOT_CONTEXT } from '@opentelemetry/context-base';
17+
import { Context, ROOT_CONTEXT } from '@opentelemetry/api';
1818
import * as asyncHooks from 'async_hooks';
1919
import { AbstractAsyncHooksContextManager } from './AbstractAsyncHooksContextManager';
2020

packages/opentelemetry-context-async-hooks/src/AsyncLocalStorageContextManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { Context, ROOT_CONTEXT } from '@opentelemetry/context-base';
17+
import { Context, ROOT_CONTEXT } from '@opentelemetry/api';
1818
import { AsyncLocalStorage } from 'async_hooks';
1919
import { AbstractAsyncHooksContextManager } from './AbstractAsyncHooksContextManager';
2020

packages/opentelemetry-context-async-hooks/test/AsyncHooksContextManager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
AsyncLocalStorageContextManager,
2121
} from '../src';
2222
import { EventEmitter } from 'events';
23-
import { createContextKey, ROOT_CONTEXT } from '@opentelemetry/context-base';
23+
import { createContextKey, ROOT_CONTEXT } from '@opentelemetry/api';
2424

2525
for (const contextManagerClass of [
2626
AsyncHooksContextManager,

packages/opentelemetry-context-zone-peer-dep/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"zone.js": "0.11.3"
7171
},
7272
"dependencies": {
73-
"@opentelemetry/context-base": "^0.17.0"
73+
"@opentelemetry/api": "^0.18.0"
7474
},
7575
"peerDependencies": {
7676
"zone.js": "^0.10.2 || ^0.11.0"

packages/opentelemetry-context-zone-peer-dep/src/ZoneContextManager.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import {
18-
Context,
19-
ContextManager,
20-
ROOT_CONTEXT,
21-
} from '@opentelemetry/context-base';
17+
import { Context, ContextManager, ROOT_CONTEXT } from '@opentelemetry/api';
2218
import { Func, TargetWithEvents } from './types';
2319
import { isListenerObject } from './util';
2420

packages/opentelemetry-context-zone-peer-dep/test/ZoneContextManager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import 'zone.js';
1818
import * as sinon from 'sinon';
1919
import * as assert from 'assert';
2020
import { ZoneContextManager } from '../src';
21-
import { ROOT_CONTEXT, createContextKey } from '@opentelemetry/context-base';
21+
import { ROOT_CONTEXT, createContextKey } from '@opentelemetry/api';
2222

2323
let clock: any;
2424

0 commit comments

Comments
 (0)