@theia/telemetry 1.77.0-next.95 → 1.77.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/lib/browser/browser-telemetry-service.d.ts +4 -4
- package/lib/browser/browser-telemetry-service.d.ts.map +1 -1
- package/lib/browser/browser-telemetry-service.js +26 -33
- package/lib/browser/browser-telemetry-service.js.map +1 -1
- package/lib/browser/browser-telemetry-service.spec.js +48 -51
- package/lib/browser/browser-telemetry-service.spec.js.map +1 -1
- package/lib/browser/index.d.ts +1 -1
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +1 -4
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/telemetry-frontend-module.js +15 -17
- package/lib/browser/telemetry-frontend-module.js.map +1 -1
- package/lib/browser-only/browser-only-telemetry-service.d.ts +2 -2
- package/lib/browser-only/browser-only-telemetry-service.d.ts.map +1 -1
- package/lib/browser-only/browser-only-telemetry-service.js +5 -8
- package/lib/browser-only/browser-only-telemetry-service.js.map +1 -1
- package/lib/browser-only/browser-only-telemetry-service.spec.js +16 -19
- package/lib/browser-only/browser-only-telemetry-service.spec.js.map +1 -1
- package/lib/browser-only/telemetry-frontend-only-module.js +8 -10
- package/lib/browser-only/telemetry-frontend-only-module.js.map +1 -1
- package/lib/common/index.d.ts +6 -6
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +6 -9
- package/lib/common/index.js.map +1 -1
- package/lib/common/telemetry-consent-provider.d.ts +2 -2
- package/lib/common/telemetry-consent-provider.d.ts.map +1 -1
- package/lib/common/telemetry-consent-provider.js +18 -25
- package/lib/common/telemetry-consent-provider.js.map +1 -1
- package/lib/common/telemetry-consent-provider.spec.js +23 -25
- package/lib/common/telemetry-consent-provider.spec.js.map +1 -1
- package/lib/common/telemetry-preferences.d.ts +1 -1
- package/lib/common/telemetry-preferences.d.ts.map +1 -1
- package/lib/common/telemetry-preferences.js +27 -32
- package/lib/common/telemetry-preferences.js.map +1 -1
- package/lib/common/telemetry-preferences.spec.js +9 -11
- package/lib/common/telemetry-preferences.spec.js.map +1 -1
- package/lib/common/telemetry-protocol.d.ts +1 -1
- package/lib/common/telemetry-protocol.d.ts.map +1 -1
- package/lib/common/telemetry-protocol.js +18 -26
- package/lib/common/telemetry-protocol.js.map +1 -1
- package/lib/common/telemetry-protocol.spec.js +6 -8
- package/lib/common/telemetry-protocol.spec.js.map +1 -1
- package/lib/common/telemetry-service.d.ts +1 -1
- package/lib/common/telemetry-service.d.ts.map +1 -1
- package/lib/common/telemetry-service.js +1 -4
- package/lib/common/telemetry-service.js.map +1 -1
- package/lib/common/telemetry-service.spec.js +2 -4
- package/lib/common/telemetry-service.spec.js.map +1 -1
- package/lib/common/telemetry-topic.js +4 -10
- package/lib/common/telemetry-topic.js.map +1 -1
- package/lib/common/telemetry-topic.spec.js +19 -21
- package/lib/common/telemetry-topic.spec.js.map +1 -1
- package/lib/common/telemetry-types.js +9 -16
- package/lib/common/telemetry-types.js.map +1 -1
- package/lib/common/telemetry-types.spec.js +40 -43
- package/lib/common/telemetry-types.spec.js.map +1 -1
- package/lib/common/test/recording-logger.js +2 -6
- package/lib/common/test/recording-logger.js.map +1 -1
- package/lib/node/index.d.ts +2 -2
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +2 -5
- package/lib/node/index.js.map +1 -1
- package/lib/node/telemetry-backend-module.js +18 -20
- package/lib/node/telemetry-backend-module.js.map +1 -1
- package/lib/node/telemetry-service-impl.d.ts +6 -6
- package/lib/node/telemetry-service-impl.d.ts.map +1 -1
- package/lib/node/telemetry-service-impl.js +37 -47
- package/lib/node/telemetry-service-impl.js.map +1 -1
- package/lib/node/telemetry-service-impl.spec.js +108 -111
- package/lib/node/telemetry-service-impl.spec.js.map +1 -1
- package/lib/node/telemetry-sink.d.ts +1 -1
- package/lib/node/telemetry-sink.d.ts.map +1 -1
- package/lib/node/telemetry-sink.js +1 -4
- package/lib/node/telemetry-sink.js.map +1 -1
- package/package.json +15 -4
- package/src/browser/browser-telemetry-service.spec.ts +5 -5
- package/src/browser/browser-telemetry-service.ts +5 -5
- package/src/browser/index.ts +1 -1
- package/src/browser/telemetry-frontend-module.ts +5 -5
- package/src/browser-only/browser-only-telemetry-service.spec.ts +3 -3
- package/src/browser-only/browser-only-telemetry-service.ts +2 -2
- package/src/browser-only/telemetry-frontend-only-module.ts +2 -2
- package/src/common/index.ts +6 -6
- package/src/common/telemetry-consent-provider.spec.ts +3 -3
- package/src/common/telemetry-consent-provider.ts +2 -2
- package/src/common/telemetry-preferences.spec.ts +1 -1
- package/src/common/telemetry-preferences.ts +1 -1
- package/src/common/telemetry-protocol.spec.ts +1 -1
- package/src/common/telemetry-protocol.ts +2 -2
- package/src/common/telemetry-service.spec.ts +2 -2
- package/src/common/telemetry-service.ts +1 -1
- package/src/common/telemetry-topic.spec.ts +1 -1
- package/src/common/telemetry-types.spec.ts +1 -1
- package/src/node/index.ts +2 -2
- package/src/node/telemetry-backend-module.ts +6 -6
- package/src/node/telemetry-service-impl.spec.ts +7 -7
- package/src/node/telemetry-service-impl.ts +7 -7
- package/src/node/telemetry-sink.ts +1 -1
|
@@ -19,11 +19,11 @@ import { FrontendIdProvider } from '@theia/core/lib/browser/messaging/frontend-i
|
|
|
19
19
|
import { Emitter, ILogger } from '@theia/core/lib/common';
|
|
20
20
|
import * as sinon from 'sinon';
|
|
21
21
|
import { Container } from '@theia/core/shared/inversify';
|
|
22
|
-
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider';
|
|
23
|
-
import { TelemetryEvent, TelemetryRpc } from '../common/telemetry-protocol';
|
|
24
|
-
import { RecordingLogger } from '../common/test/recording-logger';
|
|
25
|
-
import { TelemetryLevel } from '../common/telemetry-types';
|
|
26
|
-
import { BrowserTelemetryService } from './browser-telemetry-service';
|
|
22
|
+
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider.js';
|
|
23
|
+
import { TelemetryEvent, TelemetryRpc } from '../common/telemetry-protocol.js';
|
|
24
|
+
import { RecordingLogger } from '../common/test/recording-logger.js';
|
|
25
|
+
import { TelemetryLevel } from '../common/telemetry-types.js';
|
|
26
|
+
import { BrowserTelemetryService } from './browser-telemetry-service.js';
|
|
27
27
|
|
|
28
28
|
const FRONTEND_ID = 'test-frontend-id';
|
|
29
29
|
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
import { FrontendIdProvider } from '@theia/core/lib/browser/messaging/frontend-id-provider';
|
|
18
18
|
import { ILogger } from '@theia/core/lib/common';
|
|
19
19
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
20
|
-
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider';
|
|
20
|
+
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider.js';
|
|
21
21
|
import {
|
|
22
22
|
TelemetryRpc, createTelemetryEvent, describeTelemetryTopic, isValidTelemetryEvent, snapshotTelemetryEvent
|
|
23
|
-
} from '../common/telemetry-protocol';
|
|
24
|
-
import { TelemetryService } from '../common/telemetry-service';
|
|
25
|
-
import { matchesTelemetryTopic } from '../common/telemetry-topic';
|
|
26
|
-
import { TelemetryData, TelemetryReportOptions, isKindAllowedByLevel } from '../common/telemetry-types';
|
|
23
|
+
} from '../common/telemetry-protocol.js';
|
|
24
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
25
|
+
import { matchesTelemetryTopic } from '../common/telemetry-topic.js';
|
|
26
|
+
import { TelemetryData, TelemetryReportOptions, isKindAllowedByLevel } from '../common/telemetry-types.js';
|
|
27
27
|
|
|
28
28
|
@injectable()
|
|
29
29
|
export class BrowserTelemetryService implements TelemetryService {
|
package/src/browser/index.ts
CHANGED
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
export * from './browser-telemetry-service';
|
|
17
|
+
export * from './browser-telemetry-service.js';
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
import { RemoteConnectionProvider, ServiceConnectionProvider } from '@theia/core/lib/browser';
|
|
18
18
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
19
|
-
import { PreferenceTelemetryConsentProvider, TelemetryConsentProvider } from '../common/telemetry-consent-provider';
|
|
20
|
-
import { bindTelemetryPreferences } from '../common/telemetry-preferences';
|
|
21
|
-
import { telemetryServicePath, TelemetryRpc } from '../common/telemetry-protocol';
|
|
22
|
-
import { TelemetryService } from '../common/telemetry-service';
|
|
23
|
-
import { BrowserTelemetryService } from './browser-telemetry-service';
|
|
19
|
+
import { PreferenceTelemetryConsentProvider, TelemetryConsentProvider } from '../common/telemetry-consent-provider.js';
|
|
20
|
+
import { bindTelemetryPreferences } from '../common/telemetry-preferences.js';
|
|
21
|
+
import { telemetryServicePath, TelemetryRpc } from '../common/telemetry-protocol.js';
|
|
22
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
23
|
+
import { BrowserTelemetryService } from './browser-telemetry-service.js';
|
|
24
24
|
|
|
25
25
|
export default new ContainerModule(bind => {
|
|
26
26
|
bindTelemetryPreferences(bind);
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
import { Container } from '@theia/core/shared/inversify';
|
|
18
18
|
import { expect } from 'chai';
|
|
19
|
-
import { TelemetryService } from '../common/telemetry-service';
|
|
20
|
-
import { BrowserOnlyTelemetryService } from './browser-only-telemetry-service';
|
|
21
|
-
import telemetryFrontendOnlyModule from './telemetry-frontend-only-module';
|
|
19
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
20
|
+
import { BrowserOnlyTelemetryService } from './browser-only-telemetry-service.js';
|
|
21
|
+
import telemetryFrontendOnlyModule from './telemetry-frontend-only-module.js';
|
|
22
22
|
|
|
23
23
|
describe('browser-only telemetry service', () => {
|
|
24
24
|
it('binds the no-op service when telemetry is not already bound', () => {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
-
import { TelemetryService } from '../common/telemetry-service';
|
|
19
|
-
import { TelemetryData, TelemetryReportOptions } from '../common/telemetry-types';
|
|
18
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
19
|
+
import { TelemetryData, TelemetryReportOptions } from '../common/telemetry-types.js';
|
|
20
20
|
|
|
21
21
|
@injectable()
|
|
22
22
|
export class BrowserOnlyTelemetryService implements TelemetryService {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
-
import { TelemetryService } from '../common/telemetry-service';
|
|
19
|
-
import { BrowserOnlyTelemetryService } from './browser-only-telemetry-service';
|
|
18
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
19
|
+
import { BrowserOnlyTelemetryService } from './browser-only-telemetry-service.js';
|
|
20
20
|
|
|
21
21
|
export default new ContainerModule((bind, _unbind, isBound, rebind) => {
|
|
22
22
|
bind(BrowserOnlyTelemetryService).toSelf().inSingletonScope();
|
package/src/common/index.ts
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
export * from './telemetry-consent-provider';
|
|
18
|
-
export * from './telemetry-preferences';
|
|
19
|
-
export * from './telemetry-protocol';
|
|
20
|
-
export * from './telemetry-service';
|
|
21
|
-
export * from './telemetry-topic';
|
|
22
|
-
export * from './telemetry-types';
|
|
17
|
+
export * from './telemetry-consent-provider.js';
|
|
18
|
+
export * from './telemetry-preferences.js';
|
|
19
|
+
export * from './telemetry-protocol.js';
|
|
20
|
+
export * from './telemetry-service.js';
|
|
21
|
+
export * from './telemetry-topic.js';
|
|
22
|
+
export * from './telemetry-types.js';
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
import { expect } from 'chai';
|
|
18
18
|
import { Emitter } from '@theia/core/lib/common';
|
|
19
19
|
import { Container } from '@theia/core/shared/inversify';
|
|
20
|
-
import { PreferenceTelemetryConsentProvider, TelemetryConsentProvider } from './telemetry-consent-provider';
|
|
21
|
-
import { TELEMETRY_FILTERS, TELEMETRY_LEVEL, TelemetryPreferences } from './telemetry-preferences';
|
|
22
|
-
import { TelemetryLevel } from './telemetry-types';
|
|
20
|
+
import { PreferenceTelemetryConsentProvider, TelemetryConsentProvider } from './telemetry-consent-provider.js';
|
|
21
|
+
import { TELEMETRY_FILTERS, TELEMETRY_LEVEL, TelemetryPreferences } from './telemetry-preferences.js';
|
|
22
|
+
import { TelemetryLevel } from './telemetry-types.js';
|
|
23
23
|
|
|
24
24
|
describe('telemetry consent provider', () => {
|
|
25
25
|
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
import { Emitter, Event } from '@theia/core/lib/common';
|
|
18
18
|
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
19
19
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
20
|
-
import { TELEMETRY_LEVEL, TelemetryPreferences } from './telemetry-preferences';
|
|
21
|
-
import { TelemetryLevel } from './telemetry-types';
|
|
20
|
+
import { TELEMETRY_LEVEL, TelemetryPreferences } from './telemetry-preferences.js';
|
|
21
|
+
import { TelemetryLevel } from './telemetry-types.js';
|
|
22
22
|
|
|
23
23
|
/** @experimental */
|
|
24
24
|
export const TelemetryConsentProvider = Symbol('TelemetryConsentProvider');
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
TELEMETRY_FILTERS,
|
|
21
21
|
TELEMETRY_LEVEL,
|
|
22
22
|
TelemetryPreferenceSchema
|
|
23
|
-
} from './telemetry-preferences';
|
|
23
|
+
} from './telemetry-preferences.js';
|
|
24
24
|
|
|
25
25
|
describe('telemetry preferences', () => {
|
|
26
26
|
it('defines only the level and filters preference keys', () => {
|
|
@@ -20,7 +20,7 @@ import { createPreferenceProxy, PreferenceProxy } from '@theia/core/lib/common/p
|
|
|
20
20
|
import { PreferenceContribution, PreferenceSchema } from '@theia/core/lib/common/preferences/preference-schema';
|
|
21
21
|
import { PreferenceService } from '@theia/core/lib/common/preferences/preference-service';
|
|
22
22
|
import { interfaces } from '@theia/core/shared/inversify';
|
|
23
|
-
import { TelemetryLevel } from './telemetry-types';
|
|
23
|
+
import { TelemetryLevel } from './telemetry-types.js';
|
|
24
24
|
|
|
25
25
|
/** @experimental */
|
|
26
26
|
export const TELEMETRY_LEVEL = 'telemetry.telemetryLevel';
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { expect } from 'chai';
|
|
18
|
-
import { isValidTelemetryEvent } from './telemetry-protocol';
|
|
18
|
+
import { isValidTelemetryEvent } from './telemetry-protocol.js';
|
|
19
19
|
|
|
20
20
|
describe('telemetry protocol', () => {
|
|
21
21
|
it('validates event kind, attributes, and session', () => {
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { isObject } from '@theia/core/lib/common/types';
|
|
18
|
-
import { isValidTelemetryTopic } from './telemetry-topic';
|
|
18
|
+
import { isValidTelemetryTopic } from './telemetry-topic.js';
|
|
19
19
|
import {
|
|
20
20
|
TelemetryData, TelemetryEventKind, TelemetryReportOptions, TelemetryValue, isTelemetryData, isTelemetryEventKind, snapshotTelemetryData
|
|
21
|
-
} from './telemetry-types';
|
|
21
|
+
} from './telemetry-types.js';
|
|
22
22
|
|
|
23
23
|
/** @experimental */
|
|
24
24
|
export interface TelemetryEvent<T extends object = Record<string, TelemetryValue>> {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { expect } from 'chai';
|
|
18
|
-
import { TelemetryService } from './telemetry-service';
|
|
19
|
-
import { TelemetryData } from './telemetry-types';
|
|
18
|
+
import { TelemetryService } from './telemetry-service.js';
|
|
19
|
+
import { TelemetryData } from './telemetry-types.js';
|
|
20
20
|
|
|
21
21
|
interface ConsumerPayload {
|
|
22
22
|
action: string;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { TelemetryData, TelemetryReportOptions } from './telemetry-types';
|
|
17
|
+
import { TelemetryData, TelemetryReportOptions } from './telemetry-types.js';
|
|
18
18
|
|
|
19
19
|
/** @experimental */
|
|
20
20
|
export const TelemetryService = Symbol('TelemetryService');
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isValidTelemetryTopic,
|
|
21
21
|
isValidTelemetryTopicPattern,
|
|
22
22
|
matchesTelemetryTopic
|
|
23
|
-
} from './telemetry-topic';
|
|
23
|
+
} from './telemetry-topic.js';
|
|
24
24
|
|
|
25
25
|
describe('telemetry topic contract', () => {
|
|
26
26
|
const validNames = ['company/metric', 'Company/Metric', 'company/product/metric', 'company-1/metric_2', 'company.name/metric'];
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import URI from '@theia/core/lib/common/uri';
|
|
18
18
|
import { expect } from 'chai';
|
|
19
|
-
import { TelemetryLevel, isKindAllowedByLevel, isTelemetryData, isTelemetryEventKind, snapshotTelemetryData } from './telemetry-types';
|
|
19
|
+
import { TelemetryLevel, isKindAllowedByLevel, isTelemetryData, isTelemetryEventKind, snapshotTelemetryData } from './telemetry-types.js';
|
|
20
20
|
|
|
21
21
|
const typedPayload = {
|
|
22
22
|
action: 'open',
|
package/src/node/index.ts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
export * from './telemetry-service-impl';
|
|
18
|
-
export * from './telemetry-sink';
|
|
17
|
+
export * from './telemetry-service-impl.js';
|
|
18
|
+
export * from './telemetry-sink.js';
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
import { bindRootContributionProvider, ConnectionHandler, RpcConnectionHandler } from '@theia/core/lib/common';
|
|
18
18
|
import { BackendApplicationContribution } from '@theia/core/lib/node/backend-application';
|
|
19
19
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
20
|
-
import { PreferenceTelemetryConsentProvider, TelemetryConsentProvider } from '../common/telemetry-consent-provider';
|
|
21
|
-
import { bindTelemetryPreferences } from '../common/telemetry-preferences';
|
|
22
|
-
import { telemetryServicePath, TelemetryRpc } from '../common/telemetry-protocol';
|
|
23
|
-
import { TelemetryService } from '../common/telemetry-service';
|
|
24
|
-
import { TelemetryServiceImpl } from './telemetry-service-impl';
|
|
25
|
-
import { TelemetrySink } from './telemetry-sink';
|
|
20
|
+
import { PreferenceTelemetryConsentProvider, TelemetryConsentProvider } from '../common/telemetry-consent-provider.js';
|
|
21
|
+
import { bindTelemetryPreferences } from '../common/telemetry-preferences.js';
|
|
22
|
+
import { telemetryServicePath, TelemetryRpc } from '../common/telemetry-protocol.js';
|
|
23
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
24
|
+
import { TelemetryServiceImpl } from './telemetry-service-impl.js';
|
|
25
|
+
import { TelemetrySink } from './telemetry-sink.js';
|
|
26
26
|
|
|
27
27
|
export default new ContainerModule(bind => {
|
|
28
28
|
bindTelemetryPreferences(bind);
|
|
@@ -18,13 +18,13 @@ import { expect } from 'chai';
|
|
|
18
18
|
import { ContributionProvider, Emitter, ILogger } from '@theia/core/lib/common';
|
|
19
19
|
import * as sinon from 'sinon';
|
|
20
20
|
import { Container } from '@theia/core/shared/inversify';
|
|
21
|
-
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider';
|
|
22
|
-
import { TELEMETRY_FILTERS, TELEMETRY_LEVEL, TelemetryPreferences } from '../common/telemetry-preferences';
|
|
23
|
-
import { TelemetryEvent } from '../common/telemetry-protocol';
|
|
24
|
-
import { RecordingLogger } from '../common/test/recording-logger';
|
|
25
|
-
import { TelemetryServiceImpl } from './telemetry-service-impl';
|
|
26
|
-
import { BACKEND_TELEMETRY_SESSION, TelemetryLevel } from '../common/telemetry-types';
|
|
27
|
-
import { TelemetrySink } from './telemetry-sink';
|
|
21
|
+
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider.js';
|
|
22
|
+
import { TELEMETRY_FILTERS, TELEMETRY_LEVEL, TelemetryPreferences } from '../common/telemetry-preferences.js';
|
|
23
|
+
import { TelemetryEvent } from '../common/telemetry-protocol.js';
|
|
24
|
+
import { RecordingLogger } from '../common/test/recording-logger.js';
|
|
25
|
+
import { TelemetryServiceImpl } from './telemetry-service-impl.js';
|
|
26
|
+
import { BACKEND_TELEMETRY_SESSION, TelemetryLevel } from '../common/telemetry-types.js';
|
|
27
|
+
import { TelemetrySink } from './telemetry-sink.js';
|
|
28
28
|
|
|
29
29
|
interface TestPreferences extends TelemetryPreferences {
|
|
30
30
|
setFilters(filters: Record<string, string[]>): void;
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
import { ContributionProvider, ILogger } from '@theia/core/lib/common';
|
|
18
18
|
import { BackendApplicationContribution } from '@theia/core/lib/node/backend-application';
|
|
19
19
|
import { inject, injectable, named, postConstruct } from '@theia/core/shared/inversify';
|
|
20
|
-
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider';
|
|
21
|
-
import { TELEMETRY_FILTERS, TelemetryPreferences } from '../common/telemetry-preferences';
|
|
20
|
+
import { TelemetryConsentProvider } from '../common/telemetry-consent-provider.js';
|
|
21
|
+
import { TELEMETRY_FILTERS, TelemetryPreferences } from '../common/telemetry-preferences.js';
|
|
22
22
|
import {
|
|
23
23
|
TelemetryEvent, TelemetryRpc, createTelemetryEvent, describeTelemetryEventTopic, isValidTelemetryEvent, snapshotTelemetryEvent
|
|
24
|
-
} from '../common/telemetry-protocol';
|
|
25
|
-
import { TelemetryService } from '../common/telemetry-service';
|
|
26
|
-
import { isValidTelemetrySinkId, isValidTelemetryTopicPattern, matchesTelemetryTopic } from '../common/telemetry-topic';
|
|
27
|
-
import { BACKEND_TELEMETRY_SESSION, TelemetryData, TelemetryReportOptions, isKindAllowedByLevel } from '../common/telemetry-types';
|
|
28
|
-
import { TelemetrySink } from './telemetry-sink';
|
|
24
|
+
} from '../common/telemetry-protocol.js';
|
|
25
|
+
import { TelemetryService } from '../common/telemetry-service.js';
|
|
26
|
+
import { isValidTelemetrySinkId, isValidTelemetryTopicPattern, matchesTelemetryTopic } from '../common/telemetry-topic.js';
|
|
27
|
+
import { BACKEND_TELEMETRY_SESSION, TelemetryData, TelemetryReportOptions, isKindAllowedByLevel } from '../common/telemetry-types.js';
|
|
28
|
+
import { TelemetrySink } from './telemetry-sink.js';
|
|
29
29
|
|
|
30
30
|
const MAX_PENDING_EVENTS = 1_000;
|
|
31
31
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { MaybePromise } from '@theia/core/lib/common';
|
|
18
|
-
import { TelemetryEvent } from '../common/telemetry-protocol';
|
|
18
|
+
import { TelemetryEvent } from '../common/telemetry-protocol.js';
|
|
19
19
|
|
|
20
20
|
/** @experimental */
|
|
21
21
|
export const TelemetrySink = Symbol('TelemetrySink');
|