@azure/msal-browser 3.0.0-alpha.0 → 3.0.0-alpha.2
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/LICENSE +21 -21
- package/README.md +213 -213
- package/dist/app/IPublicClientApplication.d.ts +45 -45
- package/dist/app/IPublicClientApplication.js +96 -96
- package/dist/app/PublicClientApplication.d.ts +244 -244
- package/dist/app/PublicClientApplication.js +307 -307
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +63 -63
- package/dist/broker/nativeBroker/NativeMessageHandler.js +255 -255
- package/dist/broker/nativeBroker/NativeRequest.d.ts +43 -43
- package/dist/broker/nativeBroker/NativeResponse.d.ts +48 -48
- package/dist/cache/AsyncMemoryStorage.d.ts +51 -51
- package/dist/cache/AsyncMemoryStorage.js +132 -132
- package/dist/cache/BrowserCacheManager.d.ts +377 -377
- package/dist/cache/BrowserCacheManager.js +1276 -1276
- package/dist/cache/BrowserStorage.d.ts +11 -11
- package/dist/cache/BrowserStorage.js +35 -35
- package/dist/cache/CryptoKeyStore.d.ts +17 -17
- package/dist/cache/CryptoKeyStore.js +41 -41
- package/dist/cache/DatabaseStorage.d.ts +56 -56
- package/dist/cache/DatabaseStorage.js +190 -190
- package/dist/cache/IAsyncMemoryStorage.d.ts +27 -27
- package/dist/cache/ITokenCache.d.ts +10 -10
- package/dist/cache/IWindowStorage.d.ts +27 -27
- package/dist/cache/MemoryStorage.d.ts +11 -11
- package/dist/cache/MemoryStorage.js +31 -31
- package/dist/cache/TokenCache.d.ts +76 -76
- package/dist/cache/TokenCache.js +225 -225
- package/dist/config/Configuration.d.ts +203 -203
- package/dist/config/Configuration.js +101 -101
- package/dist/controllers/ControllerFactory.d.ts +9 -9
- package/dist/controllers/ControllerFactory.js +37 -37
- package/dist/controllers/IController.d.ts +66 -66
- package/dist/controllers/StandardController.d.ts +413 -413
- package/dist/controllers/StandardController.js +1272 -1272
- package/dist/crypto/BrowserCrypto.d.ts +61 -61
- package/dist/crypto/BrowserCrypto.js +131 -131
- package/dist/crypto/CryptoOps.d.ts +73 -73
- package/dist/crypto/CryptoOps.js +150 -150
- package/dist/crypto/GuidGenerator.d.ts +12 -12
- package/dist/crypto/GuidGenerator.js +96 -96
- package/dist/crypto/ISubtleCrypto.d.ts +9 -9
- package/dist/crypto/ModernBrowserCrypto.d.ts +9 -9
- package/dist/crypto/ModernBrowserCrypto.js +24 -24
- package/dist/crypto/MsBrowserCrypto.d.ts +9 -9
- package/dist/crypto/MsBrowserCrypto.js +79 -79
- package/dist/crypto/MsrBrowserCrypto.d.ts +17 -17
- package/dist/crypto/MsrBrowserCrypto.js +28 -28
- package/dist/crypto/PkceGenerator.d.ts +24 -24
- package/dist/crypto/PkceGenerator.js +58 -58
- package/dist/crypto/SignedHttpRequest.d.ts +30 -30
- package/dist/crypto/SignedHttpRequest.js +39 -39
- package/dist/encode/Base64Decode.d.ts +22 -22
- package/dist/encode/Base64Decode.js +73 -73
- package/dist/encode/Base64Encode.d.ts +31 -31
- package/dist/encode/Base64Encode.js +79 -79
- package/dist/error/BrowserAuthError.d.ts +382 -382
- package/dist/error/BrowserAuthError.js +483 -483
- package/dist/error/BrowserConfigurationAuthError.d.ts +70 -70
- package/dist/error/BrowserConfigurationAuthError.js +96 -96
- package/dist/error/NativeAuthError.d.ts +56 -56
- package/dist/error/NativeAuthError.js +88 -88
- package/dist/event/EventHandler.d.ts +41 -41
- package/dist/event/EventHandler.js +119 -119
- package/dist/event/EventMessage.d.ts +25 -25
- package/dist/event/EventMessage.js +67 -67
- package/dist/event/EventType.d.ts +26 -26
- package/dist/event/EventType.js +31 -31
- package/dist/index.d.ts +35 -35
- package/dist/index.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts +52 -52
- package/dist/interaction_client/BaseInteractionClient.js +138 -138
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +4 -4
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +10 -10
- package/dist/interaction_client/NativeInteractionClient.d.ts +148 -148
- package/dist/interaction_client/NativeInteractionClient.js +516 -516
- package/dist/interaction_client/PopupClient.d.ts +111 -111
- package/dist/interaction_client/PopupClient.js +476 -476
- package/dist/interaction_client/RedirectClient.d.ts +48 -48
- package/dist/interaction_client/RedirectClient.js +290 -290
- package/dist/interaction_client/SilentAuthCodeClient.d.ts +22 -22
- package/dist/interaction_client/SilentAuthCodeClient.js +62 -62
- package/dist/interaction_client/SilentCacheClient.d.ts +21 -21
- package/dist/interaction_client/SilentCacheClient.js +67 -67
- package/dist/interaction_client/SilentIframeClient.d.ts +31 -31
- package/dist/interaction_client/SilentIframeClient.js +127 -127
- package/dist/interaction_client/SilentRefreshClient.d.ts +19 -19
- package/dist/interaction_client/SilentRefreshClient.js +62 -62
- package/dist/interaction_client/StandardInteractionClient.d.ts +59 -59
- package/dist/interaction_client/StandardInteractionClient.js +259 -259
- package/dist/interaction_handler/InteractionHandler.d.ts +39 -39
- package/dist/interaction_handler/InteractionHandler.js +127 -127
- package/dist/interaction_handler/RedirectHandler.d.ts +24 -24
- package/dist/interaction_handler/RedirectHandler.js +118 -118
- package/dist/interaction_handler/SilentHandler.d.ts +47 -47
- package/dist/interaction_handler/SilentHandler.js +162 -162
- package/dist/internals.d.ts +23 -23
- package/dist/internals.js +4 -4
- package/dist/navigation/INavigationClient.d.ts +16 -16
- package/dist/navigation/NavigationClient.d.ts +22 -22
- package/dist/navigation/NavigationClient.js +40 -40
- package/dist/navigation/NavigationOptions.d.ts +12 -12
- package/dist/network/FetchClient.d.ts +26 -26
- package/dist/network/FetchClient.js +99 -99
- package/dist/network/XhrClient.d.ts +40 -40
- package/dist/network/XhrClient.js +117 -117
- package/dist/operatingcontext/BaseOperatingContext.d.ts +40 -40
- package/dist/operatingcontext/BaseOperatingContext.js +44 -44
- package/dist/operatingcontext/StandardOperatingContext.d.ts +25 -25
- package/dist/operatingcontext/StandardOperatingContext.js +43 -43
- package/dist/operatingcontext/TeamsAppOperatingContext.d.ts +25 -25
- package/dist/operatingcontext/TeamsAppOperatingContext.js +42 -42
- package/dist/packageMetadata.d.ts +2 -2
- package/dist/packageMetadata.js +4 -4
- package/dist/request/AuthorizationCodeRequest.d.ts +8 -8
- package/dist/request/AuthorizationUrlRequest.d.ts +8 -8
- package/dist/request/EndSessionPopupRequest.d.ts +18 -18
- package/dist/request/EndSessionRequest.d.ts +15 -15
- package/dist/request/PopupRequest.d.ts +32 -32
- package/dist/request/PopupWindowAttributes.d.ts +15 -15
- package/dist/request/RedirectRequest.d.ts +33 -33
- package/dist/request/SilentRequest.d.ts +30 -30
- package/dist/request/SsoSilentRequest.d.ts +26 -26
- package/dist/telemetry/BrowserPerformanceClient.d.ts +38 -38
- package/dist/telemetry/BrowserPerformanceClient.js +124 -124
- package/dist/telemetry/BrowserPerformanceMeasurement.d.ts +21 -21
- package/dist/telemetry/BrowserPerformanceMeasurement.js +92 -92
- package/dist/utils/BrowserConstants.d.ts +166 -166
- package/dist/utils/BrowserConstants.js +214 -214
- package/dist/utils/BrowserProtocolUtils.d.ts +18 -18
- package/dist/utils/BrowserProtocolUtils.js +34 -34
- package/dist/utils/BrowserStringUtils.d.ts +26 -26
- package/dist/utils/BrowserStringUtils.js +149 -149
- package/dist/utils/BrowserUtils.d.ts +65 -65
- package/dist/utils/BrowserUtils.js +138 -138
- package/dist/utils/MathUtils.d.ts +11 -11
- package/dist/utils/MathUtils.js +21 -21
- package/lib/msal-browser.cjs.js +18383 -0
- package/lib/msal-browser.cjs.js.map +1 -0
- package/lib/msal-browser.js +18389 -0
- package/lib/msal-browser.js.map +1 -0
- package/lib/msal-browser.min.js +74 -0
- package/package.json +97 -98
- package/node_modules/@azure/msal-common/LICENSE +0 -21
- package/node_modules/@azure/msal-common/README.md +0 -62
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts +0 -32
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts +0 -21
- package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/AuthToken.js +0 -56
- package/node_modules/@azure/msal-common/dist/account/AuthToken.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts +0 -9
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.js +0 -14
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts +0 -15
- package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts +0 -20
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.js +0 -46
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts +0 -9
- package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts +0 -66
- package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts +0 -216
- package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/Authority.js +0 -688
- package/node_modules/@azure/msal-common/dist/authority/Authority.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +0 -31
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js +0 -58
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +0 -623
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js +0 -881
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts +0 -19
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js +0 -24
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts +0 -10
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js +0 -19
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts +0 -2
- package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +0 -14
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js +0 -13
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts +0 -10
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js +0 -13
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts +0 -12
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js +0 -15
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts +0 -8
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js +0 -17
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +0 -31
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js +0 -116
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts +0 -7
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +0 -16
- package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts +0 -444
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.js +0 -1024
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts +0 -57
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js +0 -123
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +0 -100
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js +0 -259
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts +0 -40
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js +0 -73
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts +0 -48
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js +0 -85
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts +0 -14
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js +0 -18
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts +0 -89
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js +0 -144
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts +0 -35
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js +0 -64
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts +0 -37
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js +0 -67
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts +0 -13
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js +0 -34
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts +0 -14
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js +0 -30
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts +0 -166
- package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts +0 -5
- package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts +0 -24
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js +0 -30
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts +0 -63
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts +0 -72
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js +0 -453
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts +0 -51
- package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/BaseClient.js +0 -107
- package/node_modules/@azure/msal-common/dist/client/BaseClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts +0 -35
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js +0 -260
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts +0 -25
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js +0 -108
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts +0 -39
- package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts +0 -134
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js +0 -101
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts +0 -63
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js +0 -49
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts +0 -5
- package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts +0 -22
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js +0 -44
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +0 -58
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js +0 -92
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts +0 -12
- package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts +0 -48
- package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/AuthError.js +0 -58
- package/node_modules/@azure/msal-common/dist/error/AuthError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts +0 -413
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js +0 -526
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts +0 -199
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js +0 -256
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts +0 -60
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js +0 -86
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts +0 -29
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js +0 -46
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts +0 -8
- package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ServerError.js +0 -21
- package/node_modules/@azure/msal-common/dist/error/ServerError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/index.cjs.js +0 -8975
- package/node_modules/@azure/msal-common/dist/index.cjs.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/index.d.ts +0 -94
- package/node_modules/@azure/msal-common/dist/index.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/index.js +0 -54
- package/node_modules/@azure/msal-common/dist/index.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts +0 -96
- package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/logger/Logger.js +0 -205
- package/node_modules/@azure/msal-common/dist/logger/Logger.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts +0 -30
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.js +0 -21
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts +0 -33
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.js +0 -42
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts +0 -17
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts +0 -42
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js +0 -102
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts +0 -3
- package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/packageMetadata.js +0 -8
- package/node_modules/@azure/msal-common/dist/packageMetadata.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts +0 -20
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js +0 -63
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts +0 -38
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts +0 -28
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts +0 -51
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts +0 -18
- package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts +0 -22
- package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts +0 -20
- package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts +0 -19
- package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts +0 -20
- package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts +0 -217
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js +0 -385
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts +0 -34
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.js +0 -92
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts +0 -89
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.js +0 -207
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts +0 -40
- package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts +0 -14
- package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts +0 -26
- package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts +0 -16
- package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts +0 -5
- package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts +0 -73
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js +0 -325
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts +0 -26
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts +0 -45
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +0 -43
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +0 -190
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js +0 -413
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts +0 -440
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js +0 -232
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -20
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js +0 -43
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +0 -66
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js +0 -206
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts +0 -9
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/url/IUri.d.ts +0 -13
- package/node_modules/@azure/msal-common/dist/url/IUri.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts +0 -71
- package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/url/UrlString.js +0 -252
- package/node_modules/@azure/msal-common/dist/url/UrlString.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts +0 -332
- package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/Constants.js +0 -378
- package/node_modules/@azure/msal-common/dist/utils/Constants.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts +0 -7
- package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts +0 -43
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js +0 -80
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts +0 -54
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.js +0 -131
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts +0 -28
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js +0 -50
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js.map +0 -1
- package/node_modules/@azure/msal-common/package.json +0 -79
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { ApplicationTelemetry } from "../../config/ClientConfiguration";
|
|
2
|
-
import { Logger } from "../../logger/Logger";
|
|
3
|
-
import { InProgressPerformanceEvent, IPerformanceClient, PerformanceCallbackFunction, QueueMeasurement } from "./IPerformanceClient";
|
|
4
|
-
import { IPerformanceMeasurement } from "./IPerformanceMeasurement";
|
|
5
|
-
import { Counters, PerformanceEvent, PerformanceEvents, StaticFields } from "./PerformanceEvent";
|
|
6
|
-
export interface PreQueueEvent {
|
|
7
|
-
name: PerformanceEvents;
|
|
8
|
-
time: number;
|
|
9
|
-
}
|
|
10
|
-
export declare abstract class PerformanceClient implements IPerformanceClient {
|
|
11
|
-
protected authority: string;
|
|
12
|
-
protected libraryName: string;
|
|
13
|
-
protected libraryVersion: string;
|
|
14
|
-
protected applicationTelemetry: ApplicationTelemetry;
|
|
15
|
-
protected clientId: string;
|
|
16
|
-
protected logger: Logger;
|
|
17
|
-
protected callbacks: Map<string, PerformanceCallbackFunction>;
|
|
18
|
-
/**
|
|
19
|
-
* Multiple events with the same correlation id.
|
|
20
|
-
* @protected
|
|
21
|
-
* @type {Map<string, PerformanceEvent>}
|
|
22
|
-
*/
|
|
23
|
-
protected eventsByCorrelationId: Map<string, PerformanceEvent>;
|
|
24
|
-
/**
|
|
25
|
-
* Map of pre-queue times by correlation Id
|
|
26
|
-
*
|
|
27
|
-
* @protected
|
|
28
|
-
* @type {Map<string, PreQueueEvent>}
|
|
29
|
-
*/
|
|
30
|
-
protected preQueueTimeByCorrelationId: Map<string, PreQueueEvent>;
|
|
31
|
-
/**
|
|
32
|
-
* Map of queue measurements by correlation Id
|
|
33
|
-
*
|
|
34
|
-
* @protected
|
|
35
|
-
* @type {Map<string, Array<QueueMeasurement>>}
|
|
36
|
-
*/
|
|
37
|
-
protected queueMeasurements: Map<string, Array<QueueMeasurement>>;
|
|
38
|
-
/**
|
|
39
|
-
* Creates an instance of PerformanceClient,
|
|
40
|
-
* an abstract class containing core performance telemetry logic.
|
|
41
|
-
*
|
|
42
|
-
* @constructor
|
|
43
|
-
* @param {string} clientId Client ID of the application
|
|
44
|
-
* @param {string} authority Authority used by the application
|
|
45
|
-
* @param {Logger} logger Logger used by the application
|
|
46
|
-
* @param {string} libraryName Name of the library
|
|
47
|
-
* @param {string} libraryVersion Version of the library
|
|
48
|
-
*/
|
|
49
|
-
constructor(clientId: string, authority: string, logger: Logger, libraryName: string, libraryVersion: string, applicationTelemetry: ApplicationTelemetry);
|
|
50
|
-
/**
|
|
51
|
-
* Generates and returns a unique id, typically a guid.
|
|
52
|
-
*
|
|
53
|
-
* @abstract
|
|
54
|
-
* @returns {string}
|
|
55
|
-
*/
|
|
56
|
-
abstract generateId(): string;
|
|
57
|
-
/**
|
|
58
|
-
* Starts and returns an platform-specific implementation of IPerformanceMeasurement.
|
|
59
|
-
* Note: this function can be changed to abstract at the next major version bump.
|
|
60
|
-
*
|
|
61
|
-
* @param {string} measureName
|
|
62
|
-
* @param {string} correlationId
|
|
63
|
-
* @returns {IPerformanceMeasurement}
|
|
64
|
-
*/
|
|
65
|
-
startPerformanceMeasurement(measureName: string, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
66
|
-
correlationId: string): IPerformanceMeasurement;
|
|
67
|
-
/**
|
|
68
|
-
* Sets pre-queue time by correlation Id
|
|
69
|
-
*
|
|
70
|
-
* @abstract
|
|
71
|
-
* @param {PerformanceEvents} eventName
|
|
72
|
-
* @param {string} correlationId
|
|
73
|
-
* @returns
|
|
74
|
-
*/
|
|
75
|
-
abstract setPreQueueTime(eventName: PerformanceEvents, correlationId?: string): void;
|
|
76
|
-
/**
|
|
77
|
-
* Get integral fields.
|
|
78
|
-
* Override to change the set.
|
|
79
|
-
*/
|
|
80
|
-
getIntFields(): ReadonlySet<string>;
|
|
81
|
-
/**
|
|
82
|
-
* Gets map of pre-queue times by correlation Id
|
|
83
|
-
*
|
|
84
|
-
* @param {PerformanceEvents} eventName
|
|
85
|
-
* @param {string} correlationId
|
|
86
|
-
* @returns {number}
|
|
87
|
-
*/
|
|
88
|
-
getPreQueueTime(eventName: PerformanceEvents, correlationId: string): number | void;
|
|
89
|
-
/**
|
|
90
|
-
* Calculates the difference between current time and time when function was queued.
|
|
91
|
-
* Note: It is possible to have 0 as the queue time if the current time and the queued time was the same.
|
|
92
|
-
*
|
|
93
|
-
* @param {number} preQueueTime
|
|
94
|
-
* @param {number} currentTime
|
|
95
|
-
* @returns {number}
|
|
96
|
-
*/
|
|
97
|
-
calculateQueuedTime(preQueueTime: number, currentTime: number): number;
|
|
98
|
-
/**
|
|
99
|
-
* Adds queue measurement time to QueueMeasurements array for given correlation ID.
|
|
100
|
-
*
|
|
101
|
-
* @param {PerformanceEvents} eventName
|
|
102
|
-
* @param {?string} correlationId
|
|
103
|
-
* @param {?number} queueTime
|
|
104
|
-
* @param {?boolean} manuallyCompleted - indicator for manually completed queue measurements
|
|
105
|
-
* @returns
|
|
106
|
-
*/
|
|
107
|
-
addQueueMeasurement(eventName: PerformanceEvents, correlationId?: string, queueTime?: number, manuallyCompleted?: boolean): void;
|
|
108
|
-
/**
|
|
109
|
-
* Starts measuring performance for a given operation. Returns a function that should be used to end the measurement.
|
|
110
|
-
*
|
|
111
|
-
* @param {PerformanceEvents} measureName
|
|
112
|
-
* @param {?string} [correlationId]
|
|
113
|
-
* @returns {InProgressPerformanceEvent}
|
|
114
|
-
*/
|
|
115
|
-
startMeasurement(measureName: PerformanceEvents, correlationId?: string): InProgressPerformanceEvent;
|
|
116
|
-
/**
|
|
117
|
-
* Stops measuring the performance for an operation. Should only be called directly by PerformanceClient classes,
|
|
118
|
-
* as consumers should instead use the function returned by startMeasurement.
|
|
119
|
-
* Adds a new field named as "[event name]DurationMs" for sub-measurements, completes and emits an event
|
|
120
|
-
* otherwise.
|
|
121
|
-
*
|
|
122
|
-
* @param {PerformanceEvent} event
|
|
123
|
-
* @param {IPerformanceMeasurement} measurement
|
|
124
|
-
* @returns {(PerformanceEvent | null)}
|
|
125
|
-
*/
|
|
126
|
-
endMeasurement(event: PerformanceEvent, measurement?: IPerformanceMeasurement): PerformanceEvent | null;
|
|
127
|
-
/**
|
|
128
|
-
* Saves extra information to be emitted when the measurements are flushed
|
|
129
|
-
* @param fields
|
|
130
|
-
* @param correlationId
|
|
131
|
-
*/
|
|
132
|
-
addStaticFields(fields: StaticFields, correlationId: string): void;
|
|
133
|
-
/**
|
|
134
|
-
* Increment counters to be emitted when the measurements are flushed
|
|
135
|
-
* @param counters {Counters}
|
|
136
|
-
* @param correlationId {string} correlation identifier
|
|
137
|
-
*/
|
|
138
|
-
increment(counters: Counters, correlationId: string): void;
|
|
139
|
-
/**
|
|
140
|
-
* Upserts event into event cache.
|
|
141
|
-
* First key is the correlation id, second key is the event id.
|
|
142
|
-
* Allows for events to be grouped by correlation id,
|
|
143
|
-
* and to easily allow for properties on them to be updated.
|
|
144
|
-
*
|
|
145
|
-
* @private
|
|
146
|
-
* @param {PerformanceEvent} event
|
|
147
|
-
*/
|
|
148
|
-
private cacheEventByCorrelationId;
|
|
149
|
-
private getQueueInfo;
|
|
150
|
-
/**
|
|
151
|
-
* Removes measurements for a given correlation id.
|
|
152
|
-
*
|
|
153
|
-
* @param {string} correlationId
|
|
154
|
-
*/
|
|
155
|
-
discardMeasurements(correlationId: string): void;
|
|
156
|
-
/**
|
|
157
|
-
* Removes cache for a given correlation id.
|
|
158
|
-
*
|
|
159
|
-
* @param {string} correlationId correlation identifier
|
|
160
|
-
*/
|
|
161
|
-
private discardCache;
|
|
162
|
-
/**
|
|
163
|
-
* Registers a callback function to receive performance events.
|
|
164
|
-
*
|
|
165
|
-
* @param {PerformanceCallbackFunction} callback
|
|
166
|
-
* @returns {string}
|
|
167
|
-
*/
|
|
168
|
-
addPerformanceCallback(callback: PerformanceCallbackFunction): string;
|
|
169
|
-
/**
|
|
170
|
-
* Removes a callback registered with addPerformanceCallback.
|
|
171
|
-
*
|
|
172
|
-
* @param {string} callbackId
|
|
173
|
-
* @returns {boolean}
|
|
174
|
-
*/
|
|
175
|
-
removePerformanceCallback(callbackId: string): boolean;
|
|
176
|
-
/**
|
|
177
|
-
* Emits events to all registered callbacks.
|
|
178
|
-
*
|
|
179
|
-
* @param {PerformanceEvent[]} events
|
|
180
|
-
* @param {?string} [correlationId]
|
|
181
|
-
*/
|
|
182
|
-
emitEvents(events: PerformanceEvent[], correlationId: string): void;
|
|
183
|
-
/**
|
|
184
|
-
* Enforce truncation of integral fields in performance event.
|
|
185
|
-
* @param {PerformanceEvent} event performance event to update.
|
|
186
|
-
* @param {Set<string>} intFields integral fields.
|
|
187
|
-
*/
|
|
188
|
-
private truncateIntegralFields;
|
|
189
|
-
}
|
|
190
|
-
//# sourceMappingURL=PerformanceClient.d.ts.map
|
package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PerformanceClient.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/PerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC3B,gBAAgB,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACH,QAAQ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C,MAAM,EAAE,gBAAgB,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAiBnE;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;CAUjC"}
|
|
@@ -1,413 +0,0 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0 2023-05-03 */
|
|
2
|
-
'use strict';
|
|
3
|
-
import { IntFields, PerformanceEventStatus } from './PerformanceEvent.js';
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
-
* Licensed under the MIT License.
|
|
8
|
-
*/
|
|
9
|
-
class PerformanceClient {
|
|
10
|
-
/**
|
|
11
|
-
* Creates an instance of PerformanceClient,
|
|
12
|
-
* an abstract class containing core performance telemetry logic.
|
|
13
|
-
*
|
|
14
|
-
* @constructor
|
|
15
|
-
* @param {string} clientId Client ID of the application
|
|
16
|
-
* @param {string} authority Authority used by the application
|
|
17
|
-
* @param {Logger} logger Logger used by the application
|
|
18
|
-
* @param {string} libraryName Name of the library
|
|
19
|
-
* @param {string} libraryVersion Version of the library
|
|
20
|
-
*/
|
|
21
|
-
constructor(clientId, authority, logger, libraryName, libraryVersion, applicationTelemetry) {
|
|
22
|
-
this.authority = authority;
|
|
23
|
-
this.libraryName = libraryName;
|
|
24
|
-
this.libraryVersion = libraryVersion;
|
|
25
|
-
this.applicationTelemetry = applicationTelemetry;
|
|
26
|
-
this.clientId = clientId;
|
|
27
|
-
this.logger = logger;
|
|
28
|
-
this.callbacks = new Map();
|
|
29
|
-
this.eventsByCorrelationId = new Map();
|
|
30
|
-
this.queueMeasurements = new Map();
|
|
31
|
-
this.preQueueTimeByCorrelationId = new Map();
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Starts and returns an platform-specific implementation of IPerformanceMeasurement.
|
|
35
|
-
* Note: this function can be changed to abstract at the next major version bump.
|
|
36
|
-
*
|
|
37
|
-
* @param {string} measureName
|
|
38
|
-
* @param {string} correlationId
|
|
39
|
-
* @returns {IPerformanceMeasurement}
|
|
40
|
-
*/
|
|
41
|
-
startPerformanceMeasurement(measureName, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
42
|
-
correlationId // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
43
|
-
) {
|
|
44
|
-
return {};
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Get integral fields.
|
|
48
|
-
* Override to change the set.
|
|
49
|
-
*/
|
|
50
|
-
getIntFields() {
|
|
51
|
-
return IntFields;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Gets map of pre-queue times by correlation Id
|
|
55
|
-
*
|
|
56
|
-
* @param {PerformanceEvents} eventName
|
|
57
|
-
* @param {string} correlationId
|
|
58
|
-
* @returns {number}
|
|
59
|
-
*/
|
|
60
|
-
getPreQueueTime(eventName, correlationId) {
|
|
61
|
-
const preQueueEvent = this.preQueueTimeByCorrelationId.get(correlationId);
|
|
62
|
-
if (!preQueueEvent) {
|
|
63
|
-
this.logger.trace(`PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: ${correlationId}, unable to add queue measurement`);
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
else if (preQueueEvent.name !== eventName) {
|
|
67
|
-
this.logger.trace(`PerformanceClient.getPreQueueTime: no pre-queue time found for ${eventName}, unable to add queue measurement`);
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
return preQueueEvent.time;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Calculates the difference between current time and time when function was queued.
|
|
74
|
-
* Note: It is possible to have 0 as the queue time if the current time and the queued time was the same.
|
|
75
|
-
*
|
|
76
|
-
* @param {number} preQueueTime
|
|
77
|
-
* @param {number} currentTime
|
|
78
|
-
* @returns {number}
|
|
79
|
-
*/
|
|
80
|
-
calculateQueuedTime(preQueueTime, currentTime) {
|
|
81
|
-
if (preQueueTime < 1) {
|
|
82
|
-
this.logger.trace(`PerformanceClient: preQueueTime should be a positive integer and not ${preQueueTime}`);
|
|
83
|
-
return 0;
|
|
84
|
-
}
|
|
85
|
-
if (currentTime < 1) {
|
|
86
|
-
this.logger.trace(`PerformanceClient: currentTime should be a positive integer and not ${currentTime}`);
|
|
87
|
-
return 0;
|
|
88
|
-
}
|
|
89
|
-
if (currentTime < preQueueTime) {
|
|
90
|
-
this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved");
|
|
91
|
-
return 0;
|
|
92
|
-
}
|
|
93
|
-
return currentTime - preQueueTime;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Adds queue measurement time to QueueMeasurements array for given correlation ID.
|
|
97
|
-
*
|
|
98
|
-
* @param {PerformanceEvents} eventName
|
|
99
|
-
* @param {?string} correlationId
|
|
100
|
-
* @param {?number} queueTime
|
|
101
|
-
* @param {?boolean} manuallyCompleted - indicator for manually completed queue measurements
|
|
102
|
-
* @returns
|
|
103
|
-
*/
|
|
104
|
-
addQueueMeasurement(eventName, correlationId, queueTime, manuallyCompleted) {
|
|
105
|
-
if (!correlationId) {
|
|
106
|
-
this.logger.trace(`PerformanceClient.addQueueMeasurement: correlationId not provided for ${eventName}, cannot add queue measurement`);
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
if (queueTime === 0) {
|
|
110
|
-
// Possible for there to be no queue time after calculation
|
|
111
|
-
this.logger.trace(`PerformanceClient.addQueueMeasurement: queue time provided for ${eventName} is ${queueTime}`);
|
|
112
|
-
}
|
|
113
|
-
else if (!queueTime) {
|
|
114
|
-
this.logger.trace(`PerformanceClient.addQueueMeasurement: no queue time provided for ${eventName}`);
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
const queueMeasurement = {
|
|
118
|
-
eventName,
|
|
119
|
-
queueTime,
|
|
120
|
-
manuallyCompleted,
|
|
121
|
-
};
|
|
122
|
-
// Adds to existing correlation Id if present in queueMeasurements
|
|
123
|
-
const existingMeasurements = this.queueMeasurements.get(correlationId);
|
|
124
|
-
if (existingMeasurements) {
|
|
125
|
-
existingMeasurements.push(queueMeasurement);
|
|
126
|
-
this.queueMeasurements.set(correlationId, existingMeasurements);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
// Sets new correlation Id if not present in queueMeasurements
|
|
130
|
-
this.logger.trace(`PerformanceClient.addQueueMeasurement: adding correlationId ${correlationId} to queue measurements`);
|
|
131
|
-
const measurementArray = [queueMeasurement];
|
|
132
|
-
this.queueMeasurements.set(correlationId, measurementArray);
|
|
133
|
-
}
|
|
134
|
-
// Delete processed pre-queue event.
|
|
135
|
-
this.preQueueTimeByCorrelationId.delete(correlationId);
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Starts measuring performance for a given operation. Returns a function that should be used to end the measurement.
|
|
139
|
-
*
|
|
140
|
-
* @param {PerformanceEvents} measureName
|
|
141
|
-
* @param {?string} [correlationId]
|
|
142
|
-
* @returns {InProgressPerformanceEvent}
|
|
143
|
-
*/
|
|
144
|
-
startMeasurement(measureName, correlationId) {
|
|
145
|
-
// Generate a placeholder correlation if the request does not provide one
|
|
146
|
-
const eventCorrelationId = correlationId || this.generateId();
|
|
147
|
-
if (!correlationId) {
|
|
148
|
-
this.logger.info(`PerformanceClient: No correlation id provided for ${measureName}, generating`, eventCorrelationId);
|
|
149
|
-
}
|
|
150
|
-
this.logger.trace(`PerformanceClient: Performance measurement started for ${measureName}`, eventCorrelationId);
|
|
151
|
-
const performanceMeasurement = this.startPerformanceMeasurement(measureName, eventCorrelationId);
|
|
152
|
-
performanceMeasurement.startMeasurement();
|
|
153
|
-
const inProgressEvent = {
|
|
154
|
-
eventId: this.generateId(),
|
|
155
|
-
status: PerformanceEventStatus.InProgress,
|
|
156
|
-
authority: this.authority,
|
|
157
|
-
libraryName: this.libraryName,
|
|
158
|
-
libraryVersion: this.libraryVersion,
|
|
159
|
-
clientId: this.clientId,
|
|
160
|
-
name: measureName,
|
|
161
|
-
startTimeMs: Date.now(),
|
|
162
|
-
correlationId: eventCorrelationId,
|
|
163
|
-
appName: this.applicationTelemetry?.appName,
|
|
164
|
-
appVersion: this.applicationTelemetry?.appVersion,
|
|
165
|
-
};
|
|
166
|
-
// Store in progress events so they can be discarded if not ended properly
|
|
167
|
-
this.cacheEventByCorrelationId(inProgressEvent);
|
|
168
|
-
// Return the event and functions the caller can use to properly end/flush the measurement
|
|
169
|
-
return {
|
|
170
|
-
endMeasurement: (event) => {
|
|
171
|
-
return this.endMeasurement({
|
|
172
|
-
// Initial set of event properties
|
|
173
|
-
...inProgressEvent,
|
|
174
|
-
// Properties set when event ends
|
|
175
|
-
...event,
|
|
176
|
-
}, performanceMeasurement);
|
|
177
|
-
},
|
|
178
|
-
discardMeasurement: () => {
|
|
179
|
-
return this.discardMeasurements(inProgressEvent.correlationId);
|
|
180
|
-
},
|
|
181
|
-
addStaticFields: (fields) => {
|
|
182
|
-
return this.addStaticFields(fields, inProgressEvent.correlationId);
|
|
183
|
-
},
|
|
184
|
-
increment: (counters) => {
|
|
185
|
-
return this.increment(counters, inProgressEvent.correlationId);
|
|
186
|
-
},
|
|
187
|
-
measurement: performanceMeasurement,
|
|
188
|
-
event: inProgressEvent,
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Stops measuring the performance for an operation. Should only be called directly by PerformanceClient classes,
|
|
193
|
-
* as consumers should instead use the function returned by startMeasurement.
|
|
194
|
-
* Adds a new field named as "[event name]DurationMs" for sub-measurements, completes and emits an event
|
|
195
|
-
* otherwise.
|
|
196
|
-
*
|
|
197
|
-
* @param {PerformanceEvent} event
|
|
198
|
-
* @param {IPerformanceMeasurement} measurement
|
|
199
|
-
* @returns {(PerformanceEvent | null)}
|
|
200
|
-
*/
|
|
201
|
-
endMeasurement(event, measurement) {
|
|
202
|
-
const rootEvent = this.eventsByCorrelationId.get(event.correlationId);
|
|
203
|
-
if (!rootEvent) {
|
|
204
|
-
this.logger.trace(`PerformanceClient: Measurement not found for ${event.eventId}`, event.correlationId);
|
|
205
|
-
return null;
|
|
206
|
-
}
|
|
207
|
-
const isRoot = event.eventId === rootEvent.eventId;
|
|
208
|
-
let queueInfo = {
|
|
209
|
-
totalQueueTime: 0,
|
|
210
|
-
totalQueueCount: 0,
|
|
211
|
-
manuallyCompletedCount: 0,
|
|
212
|
-
};
|
|
213
|
-
if (isRoot) {
|
|
214
|
-
queueInfo = this.getQueueInfo(event.correlationId);
|
|
215
|
-
this.discardCache(rootEvent.correlationId);
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
rootEvent.incompleteSubMeasurements?.delete(event.eventId);
|
|
219
|
-
}
|
|
220
|
-
measurement?.endMeasurement();
|
|
221
|
-
const durationMs = measurement?.flushMeasurement();
|
|
222
|
-
// null indicates no measurement was taken (e.g. needed performance APIs not present)
|
|
223
|
-
if (!durationMs) {
|
|
224
|
-
this.logger.trace("PerformanceClient: Performance measurement not taken", rootEvent.correlationId);
|
|
225
|
-
return null;
|
|
226
|
-
}
|
|
227
|
-
this.logger.trace(`PerformanceClient: Performance measurement ended for ${event.name}: ${durationMs} ms`, event.correlationId);
|
|
228
|
-
// Add sub-measurement attribute to root event.
|
|
229
|
-
if (!isRoot) {
|
|
230
|
-
rootEvent[event.name + "DurationMs"] = Math.floor(durationMs);
|
|
231
|
-
return { ...rootEvent };
|
|
232
|
-
}
|
|
233
|
-
let finalEvent = { ...rootEvent, ...event };
|
|
234
|
-
let incompleteSubsCount = 0;
|
|
235
|
-
// Incomplete sub-measurements are discarded. They are likely an instrumentation bug that should be fixed.
|
|
236
|
-
finalEvent.incompleteSubMeasurements?.forEach((subMeasurement) => {
|
|
237
|
-
this.logger.trace(`PerformanceClient: Incomplete submeasurement ${subMeasurement.name} found for ${event.name}`, finalEvent.correlationId);
|
|
238
|
-
incompleteSubsCount++;
|
|
239
|
-
});
|
|
240
|
-
finalEvent.incompleteSubMeasurements = undefined;
|
|
241
|
-
finalEvent = {
|
|
242
|
-
...finalEvent,
|
|
243
|
-
durationMs: Math.round(durationMs),
|
|
244
|
-
queuedTimeMs: queueInfo.totalQueueTime,
|
|
245
|
-
queuedCount: queueInfo.totalQueueCount,
|
|
246
|
-
queuedManuallyCompletedCount: queueInfo.manuallyCompletedCount,
|
|
247
|
-
status: PerformanceEventStatus.Completed,
|
|
248
|
-
incompleteSubsCount,
|
|
249
|
-
};
|
|
250
|
-
this.truncateIntegralFields(finalEvent, this.getIntFields());
|
|
251
|
-
this.emitEvents([finalEvent], event.correlationId);
|
|
252
|
-
return finalEvent;
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Saves extra information to be emitted when the measurements are flushed
|
|
256
|
-
* @param fields
|
|
257
|
-
* @param correlationId
|
|
258
|
-
*/
|
|
259
|
-
addStaticFields(fields, correlationId) {
|
|
260
|
-
this.logger.trace("PerformanceClient: Updating static fields");
|
|
261
|
-
const event = this.eventsByCorrelationId.get(correlationId);
|
|
262
|
-
if (event) {
|
|
263
|
-
this.eventsByCorrelationId.set(correlationId, {
|
|
264
|
-
...event,
|
|
265
|
-
...fields,
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
else {
|
|
269
|
-
this.logger.trace("PerformanceClient: Event not found for", correlationId);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Increment counters to be emitted when the measurements are flushed
|
|
274
|
-
* @param counters {Counters}
|
|
275
|
-
* @param correlationId {string} correlation identifier
|
|
276
|
-
*/
|
|
277
|
-
increment(counters, correlationId) {
|
|
278
|
-
this.logger.trace("PerformanceClient: Updating counters");
|
|
279
|
-
const event = this.eventsByCorrelationId.get(correlationId);
|
|
280
|
-
if (event) {
|
|
281
|
-
for (const counter in counters) {
|
|
282
|
-
if (!event.hasOwnProperty(counter)) {
|
|
283
|
-
event[counter] = 0;
|
|
284
|
-
}
|
|
285
|
-
event[counter] += counters[counter];
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
this.logger.trace("PerformanceClient: Event not found for", correlationId);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Upserts event into event cache.
|
|
294
|
-
* First key is the correlation id, second key is the event id.
|
|
295
|
-
* Allows for events to be grouped by correlation id,
|
|
296
|
-
* and to easily allow for properties on them to be updated.
|
|
297
|
-
*
|
|
298
|
-
* @private
|
|
299
|
-
* @param {PerformanceEvent} event
|
|
300
|
-
*/
|
|
301
|
-
cacheEventByCorrelationId(event) {
|
|
302
|
-
const rootEvent = this.eventsByCorrelationId.get(event.correlationId);
|
|
303
|
-
if (rootEvent) {
|
|
304
|
-
this.logger.trace(`PerformanceClient: Performance measurement for ${event.name} added/updated`, event.correlationId);
|
|
305
|
-
rootEvent.incompleteSubMeasurements =
|
|
306
|
-
rootEvent.incompleteSubMeasurements || new Map();
|
|
307
|
-
rootEvent.incompleteSubMeasurements.set(event.eventId, {
|
|
308
|
-
name: event.name,
|
|
309
|
-
startTimeMs: event.startTimeMs,
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
this.logger.trace(`PerformanceClient: Performance measurement for ${event.name} started`, event.correlationId);
|
|
314
|
-
this.eventsByCorrelationId.set(event.correlationId, { ...event });
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
getQueueInfo(correlationId) {
|
|
318
|
-
const queueMeasurementForCorrelationId = this.queueMeasurements.get(correlationId);
|
|
319
|
-
if (!queueMeasurementForCorrelationId) {
|
|
320
|
-
this.logger.trace(`PerformanceClient: no queue measurements found for for correlationId: ${correlationId}`);
|
|
321
|
-
}
|
|
322
|
-
let totalQueueTime = 0;
|
|
323
|
-
let totalQueueCount = 0;
|
|
324
|
-
let manuallyCompletedCount = 0;
|
|
325
|
-
queueMeasurementForCorrelationId?.forEach((measurement) => {
|
|
326
|
-
totalQueueTime += measurement.queueTime;
|
|
327
|
-
totalQueueCount++;
|
|
328
|
-
manuallyCompletedCount += measurement.manuallyCompleted ? 1 : 0;
|
|
329
|
-
});
|
|
330
|
-
return {
|
|
331
|
-
totalQueueTime,
|
|
332
|
-
totalQueueCount,
|
|
333
|
-
manuallyCompletedCount,
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* Removes measurements for a given correlation id.
|
|
338
|
-
*
|
|
339
|
-
* @param {string} correlationId
|
|
340
|
-
*/
|
|
341
|
-
discardMeasurements(correlationId) {
|
|
342
|
-
this.logger.trace("PerformanceClient: Performance measurements discarded", correlationId);
|
|
343
|
-
this.eventsByCorrelationId.delete(correlationId);
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Removes cache for a given correlation id.
|
|
347
|
-
*
|
|
348
|
-
* @param {string} correlationId correlation identifier
|
|
349
|
-
*/
|
|
350
|
-
discardCache(correlationId) {
|
|
351
|
-
this.discardMeasurements(correlationId);
|
|
352
|
-
this.logger.trace("PerformanceClient: QueueMeasurements discarded", correlationId);
|
|
353
|
-
this.queueMeasurements.delete(correlationId);
|
|
354
|
-
this.logger.trace("PerformanceClient: Pre-queue times discarded", correlationId);
|
|
355
|
-
this.preQueueTimeByCorrelationId.delete(correlationId);
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* Registers a callback function to receive performance events.
|
|
359
|
-
*
|
|
360
|
-
* @param {PerformanceCallbackFunction} callback
|
|
361
|
-
* @returns {string}
|
|
362
|
-
*/
|
|
363
|
-
addPerformanceCallback(callback) {
|
|
364
|
-
const callbackId = this.generateId();
|
|
365
|
-
this.callbacks.set(callbackId, callback);
|
|
366
|
-
this.logger.verbose(`PerformanceClient: Performance callback registered with id: ${callbackId}`);
|
|
367
|
-
return callbackId;
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* Removes a callback registered with addPerformanceCallback.
|
|
371
|
-
*
|
|
372
|
-
* @param {string} callbackId
|
|
373
|
-
* @returns {boolean}
|
|
374
|
-
*/
|
|
375
|
-
removePerformanceCallback(callbackId) {
|
|
376
|
-
const result = this.callbacks.delete(callbackId);
|
|
377
|
-
if (result) {
|
|
378
|
-
this.logger.verbose(`PerformanceClient: Performance callback ${callbackId} removed.`);
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
this.logger.verbose(`PerformanceClient: Performance callback ${callbackId} not removed.`);
|
|
382
|
-
}
|
|
383
|
-
return result;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Emits events to all registered callbacks.
|
|
387
|
-
*
|
|
388
|
-
* @param {PerformanceEvent[]} events
|
|
389
|
-
* @param {?string} [correlationId]
|
|
390
|
-
*/
|
|
391
|
-
emitEvents(events, correlationId) {
|
|
392
|
-
this.logger.verbose("PerformanceClient: Emitting performance events", correlationId);
|
|
393
|
-
this.callbacks.forEach((callback, callbackId) => {
|
|
394
|
-
this.logger.trace(`PerformanceClient: Emitting event to callback ${callbackId}`, correlationId);
|
|
395
|
-
callback.apply(null, [events]);
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* Enforce truncation of integral fields in performance event.
|
|
400
|
-
* @param {PerformanceEvent} event performance event to update.
|
|
401
|
-
* @param {Set<string>} intFields integral fields.
|
|
402
|
-
*/
|
|
403
|
-
truncateIntegralFields(event, intFields) {
|
|
404
|
-
intFields.forEach((key) => {
|
|
405
|
-
if (key in event && typeof event[key] === "number") {
|
|
406
|
-
event[key] = Math.floor(event[key]);
|
|
407
|
-
}
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export { PerformanceClient };
|
|
413
|
-
//# sourceMappingURL=PerformanceClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PerformanceClient.js","sources":["../../../src/telemetry/performance/PerformanceClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;MAyBmB,iBAAiB,CAAA;AAgCnC;;;;;;;;;;AAUG;IACH,WACI,CAAA,QAAgB,EAChB,SAAiB,EACjB,MAAc,EACd,WAAmB,EACnB,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