@vkontakte/videoplayer-shared 1.0.59-beta.0 → 1.0.59-dev.01d2a3f6.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/es2015.cjs.js +3 -3
- package/es2015.esm.js +3 -3
- package/es2018.cjs.js +3 -3
- package/es2018.esm.js +3 -3
- package/es2024.cjs.js +3 -3
- package/es2024.esm.js +3 -3
- package/esnext.cjs.js +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +3 -1
- package/types/Tracer/Tracer.d.ts +6 -12
- package/types/Tracer/types.d.ts +3 -21
- package/types/reactive/Subscription.d.ts +1 -1
- package/types/reactive/index.d.ts +0 -1
- package/types/reactive/SubscriptionRemovable.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-shared",
|
|
3
|
-
"version": "1.0.59-
|
|
3
|
+
"version": "1.0.59-dev.01d2a3f6.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Shared code for vk.com videoplayer",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
],
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@opentelemetry/api": "^1.8.0",
|
|
58
|
+
"@opentelemetry/core": "^1.25.0",
|
|
59
|
+
"@opentelemetry/instrumentation": "^0.52.0",
|
|
58
60
|
"@opentelemetry/sdk-trace-web": "^1.24.1",
|
|
59
61
|
"@tracer/opentelemetry": "https://artifactory-external.vkpartner.ru/artifactory/api/npm/npm-odkl-nexus/@tracer/opentelemetry/-/opentelemetry-1.1.7.tgz"
|
|
60
62
|
}
|
package/types/Tracer/Tracer.d.ts
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Attributes } from '@opentelemetry/api';
|
|
2
2
|
import { ITracer } from './types';
|
|
3
3
|
export declare class Tracer implements ITracer {
|
|
4
|
-
private readonly
|
|
5
|
-
private span;
|
|
6
|
-
private context;
|
|
7
|
-
private childTracers;
|
|
8
|
-
private
|
|
9
|
-
private spanExporter;
|
|
10
|
-
private static dynamicImportStatus;
|
|
11
|
-
private static dynamicImports;
|
|
12
|
-
private static dynamicImportPromise;
|
|
4
|
+
private readonly tracer;
|
|
5
|
+
private readonly span;
|
|
6
|
+
private readonly context;
|
|
7
|
+
private readonly childTracers;
|
|
8
|
+
private readonly spanExporter;
|
|
13
9
|
private constructor();
|
|
14
|
-
private init;
|
|
15
|
-
private loadOpentelemetry;
|
|
16
10
|
log(name: string, attributes?: Attributes): void;
|
|
17
11
|
error(name: string, attributes?: Attributes): void;
|
|
18
12
|
critical(name: string, attributes?: Attributes): void;
|
package/types/Tracer/types.d.ts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type * as TracerOpentelemetry from '@tracer/opentelemetry';
|
|
5
|
-
import type * as OpentelemetryApi from '@opentelemetry/api';
|
|
6
|
-
import type * as OpentelemetrySdk from '@opentelemetry/sdk-trace-web';
|
|
7
|
-
export type { TracerOpentelemetry };
|
|
8
|
-
export type { OpentelemetryApi };
|
|
9
|
-
export type { OpentelemetrySdk };
|
|
10
|
-
export declare enum TracerDynamicImportStatus {
|
|
11
|
-
NotStarted = "not_started",
|
|
12
|
-
InProgress = "in_progress",
|
|
13
|
-
Failed = "failed",
|
|
14
|
-
Completed = "completed",
|
|
15
|
-
Initialized = "initialized"
|
|
16
|
-
}
|
|
1
|
+
import { Attributes, Context } from '@opentelemetry/api';
|
|
2
|
+
import { ReadableSpan } from '@opentelemetry/sdk-trace-web';
|
|
3
|
+
import { Tracer as OtlpTracer } from '@opentelemetry/sdk-trace-base/build/src/Tracer';
|
|
17
4
|
export declare enum TraceEventType {
|
|
18
5
|
Log = "log",
|
|
19
6
|
Error = "error",
|
|
@@ -24,11 +11,6 @@ export interface ITracerParams {
|
|
|
24
11
|
parentContext?: Context;
|
|
25
12
|
tracer?: OtlpTracer;
|
|
26
13
|
}
|
|
27
|
-
export interface ITracerDynamicImports {
|
|
28
|
-
opentelemetryApi: typeof OpentelemetryApi;
|
|
29
|
-
opentelemetrySdk: typeof OpentelemetrySdk;
|
|
30
|
-
tracer: typeof TracerOpentelemetry;
|
|
31
|
-
}
|
|
32
14
|
export interface ITracer {
|
|
33
15
|
log: (name: string, attributes?: Attributes) => void;
|
|
34
16
|
error: (name: string, attributes?: Attributes) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ISubscription, IUnsubscriber } from './types';
|
|
2
2
|
export default class Subscription implements ISubscription {
|
|
3
|
-
|
|
3
|
+
private subscriptions;
|
|
4
4
|
unsubscribe(): void;
|
|
5
5
|
add(item: ISubscription | IUnsubscriber): ISubscription;
|
|
6
6
|
}
|
|
@@ -8,7 +8,6 @@ export { default as timeout } from './timeout';
|
|
|
8
8
|
export { default as interval } from './interval';
|
|
9
9
|
export { default as observableFrom } from './observableFrom';
|
|
10
10
|
export { default as fromEvent } from './fromEvent';
|
|
11
|
-
export { default as SubscriptionRemovable } from './SubscriptionRemovable';
|
|
12
11
|
export { default as buffer } from './operators/buffer';
|
|
13
12
|
export { default as debounce } from './operators/debounce';
|
|
14
13
|
export { default as throttle } from './operators/throttle';
|