deprecate ikey (#1817)
* deprecat ikey * resolve comments * remove unused import * change error message * update * shorten error messgae
This commit is contained in:
Родитель
99bb27a1eb
Коммит
cbdaa59f26
|
@ -189,6 +189,14 @@ export class Initialization implements IApplicationInsights {
|
|||
_core = new AppInsightsCore();
|
||||
_self.core = _core;
|
||||
|
||||
|
||||
if (!config.connectionString) {
|
||||
_throwInternal(_core.logger,
|
||||
eLoggingSeverity.CRITICAL,
|
||||
_eInternalMessageId.InstrumentationKeyDeprecation,
|
||||
"Instrumentation key support will end soon, see aka.ms/IkeyMigrate");
|
||||
}
|
||||
|
||||
_self.snippet = snippet;
|
||||
_self.config = config;
|
||||
_getSKUDefaults();
|
||||
|
|
|
@ -105,7 +105,8 @@ export const enum _eInternalMessageId {
|
|||
InvalidContentBlob = 102,
|
||||
TrackPageActionEventFailed = 103,
|
||||
FailedAddingCustomDefinedRequestContext = 104,
|
||||
InMemoryStorageBufferFull = 105
|
||||
InMemoryStorageBufferFull = 105,
|
||||
InstrumentationKeyDeprecation = 106
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -196,6 +197,8 @@ export const _InternalMessageId = createEnumStyle<typeof _eInternalMessageId>({
|
|||
InvalidContentBlob: _eInternalMessageId.InvalidContentBlob,
|
||||
TrackPageActionEventFailed: _eInternalMessageId.TrackPageActionEventFailed,
|
||||
FailedAddingCustomDefinedRequestContext: _eInternalMessageId.FailedAddingCustomDefinedRequestContext,
|
||||
InMemoryStorageBufferFull: _eInternalMessageId.InMemoryStorageBufferFull
|
||||
InMemoryStorageBufferFull: _eInternalMessageId.InMemoryStorageBufferFull,
|
||||
InstrumentationKeyDeprecation: _eInternalMessageId.InstrumentationKeyDeprecation
|
||||
|
||||
});
|
||||
export type _InternalMessageId = number | _eInternalMessageId;
|
||||
|
|
Загрузка…
Ссылка в новой задаче