o11y 264.26.0 → 266.5.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.
Files changed (25) hide show
  1. package/dist/modules/o11y/client/orchestrator/initialize.d.ts +2 -1
  2. package/dist/modules/o11y/client/orchestrator.d.ts +1 -1
  3. package/dist/modules/o11y/collectors/orchestrator/initialize.d.ts +2 -1
  4. package/dist/modules/o11y/collectors/orchestrator.d.ts +1 -1
  5. package/dist/modules/o11y/core_envelope/orchestrator/initialize.d.ts +2 -1
  6. package/dist/modules/o11y/core_envelope/orchestrator.d.ts +1 -1
  7. package/dist/modules/o11y/monitors/orchestrator/initialize.d.ts +2 -1
  8. package/dist/modules/o11y/monitors/orchestrator.d.ts +1 -1
  9. package/dist/modules/o11y/orchestrator/orchestrator/initialize.d.ts +2 -1
  10. package/dist/modules/o11y/orchestrator/orchestrator.d.ts +1 -1
  11. package/dist/modules/o11y/orchestrator/orchestrator.js +6 -2
  12. package/dist/modules/o11y/orchestrator/orchestrator.js.map +1 -1
  13. package/dist/modules/o11y/queue/orchestrator/initialize.d.ts +2 -1
  14. package/dist/modules/o11y/queue/orchestrator.d.ts +1 -1
  15. package/dist/modules/o11y/shared/orchestrator/initialize.d.ts +2 -1
  16. package/dist/modules/o11y/shared/orchestrator.d.ts +1 -1
  17. package/dist/modules/o11y/simple_collector/orchestrator/initialize.d.ts +2 -1
  18. package/dist/modules/o11y/simple_collector/orchestrator.d.ts +1 -1
  19. package/dist/modules/o11y/telemetry-uploader/orchestrator/initialize.d.ts +2 -1
  20. package/dist/modules/o11y/telemetry-uploader/orchestrator.d.ts +1 -1
  21. package/dist/modules/o11y/tenant_class_channel/orchestrator/initialize.d.ts +2 -1
  22. package/dist/modules/o11y/tenant_class_channel/orchestrator.d.ts +1 -1
  23. package/dist/modules/o11y/web_vitals/orchestrator/initialize.d.ts +2 -1
  24. package/dist/modules/o11y/web_vitals/orchestrator.d.ts +1 -1
  25. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import type { Log } from '../telemetry-uploader/TelemetryUploader';
2
- import type { Environment } from '../interfaces';
2
+ import type { Environment, InstrumentedAppMethods } from '../interfaces';
3
3
  export interface OrchestratorConfig {
4
4
  endpoint: string;
5
5
  environment: Environment;
@@ -13,3 +13,4 @@ export interface OrchestratorConfig {
13
13
  }
14
14
  export declare function initialize(config: OrchestratorConfig): void;
15
15
  export declare function isInitialized(): boolean;
16
+ export declare function getInstrumentedApp(): InstrumentedAppMethods | undefined;
@@ -1,3 +1,3 @@
1
- export { initialize, isInitialized } from './orchestrator/initialize';
1
+ export { initialize, isInitialized, getInstrumentedApp } from './orchestrator/initialize';
2
2
  export type { OrchestratorConfig } from './orchestrator/initialize';
3
3
  export type { TenantClass } from './queue/types';
@@ -1,5 +1,5 @@
1
1
  import type { Log } from '../telemetry-uploader/TelemetryUploader';
2
- import type { Environment } from '../interfaces';
2
+ import type { Environment, InstrumentedAppMethods } from '../interfaces';
3
3
  export interface OrchestratorConfig {
4
4
  endpoint: string;
5
5
  environment: Environment;
@@ -13,3 +13,4 @@ export interface OrchestratorConfig {
13
13
  }
14
14
  export declare function initialize(config: OrchestratorConfig): void;
15
15
  export declare function isInitialized(): boolean;
16
+ export declare function getInstrumentedApp(): InstrumentedAppMethods | undefined;
@@ -1,3 +1,3 @@
1
- export { initialize, isInitialized } from './orchestrator/initialize';
1
+ export { initialize, isInitialized, getInstrumentedApp } from './orchestrator/initialize';
2
2
  export type { OrchestratorConfig } from './orchestrator/initialize';
3
3
  export type { TenantClass } from './queue/types';
@@ -1,5 +1,5 @@
1
1
  import type { Log } from '../telemetry-uploader/TelemetryUploader';
2
- import type { Environment } from '../interfaces';
2
+ import type { Environment, InstrumentedAppMethods } from '../interfaces';
3
3
  export interface OrchestratorConfig {
4
4
  endpoint: string;
5
5
  environment: Environment;
@@ -13,3 +13,4 @@ export interface OrchestratorConfig {
13
13
  }
14
14
  export declare function initialize(config: OrchestratorConfig): void;
15
15
  export declare function isInitialized(): boolean;
16
+ export declare function getInstrumentedApp(): InstrumentedAppMethods | undefined;
@@ -1,3 +1,3 @@
1
- export { initialize, isInitialized } from './orchestrator/initialize';
1
+ export { initialize, isInitialized, getInstrumentedApp } from './orchestrator/initialize';
2
2
  export type { OrchestratorConfig } from './orchestrator/initialize';
3
3
  export type { TenantClass } from './queue/types';
@@ -1,5 +1,5 @@
1
1
  import type { Log } from '../telemetry-uploader/TelemetryUploader';
2
- import type { Environment } from '../interfaces';
2
+ import type { Environment, InstrumentedAppMethods } from '../interfaces';
3
3
  export interface OrchestratorConfig {
4
4
  endpoint: string;
5
5
  environment: Environment;
@@ -13,3 +13,4 @@ export interface OrchestratorConfig {
13
13
  }
14
14
  export declare function initialize(config: OrchestratorConfig): void;
15
15
  export declare function isInitialized(): boolean;
16
+ export declare function getInstrumentedApp(): InstrumentedAppMethods | undefined;
@@ -1,3 +1,3 @@
1
- export { initialize, isInitialized } from './orchestrator/initialize';
1
+ export { initialize, isInitialized, getInstrumentedApp } from './orchestrator/initialize';
2
2
  export type { OrchestratorConfig } from './orchestrator/initialize';
3
3
  export type { TenantClass } from './queue/types';
@@ -1,5 +1,5 @@
1
1
  import type { Log } from '../telemetry-uploader/TelemetryUploader';
2
- import type { Environment } from '../interfaces';
2
+ import type { Environment, InstrumentedAppMethods } from '../interfaces';
3
3
  export interface OrchestratorConfig {
4
4
  endpoint: string;
5
5
  environment: Environment;
@@ -13,3 +13,4 @@ export interface OrchestratorConfig {
13
13
  }
14
14
  export declare function initialize(config: OrchestratorConfig): void;
15
15
  export declare function isInitialized(): boolean;
16
+ export declare function getInstrumentedApp(): InstrumentedAppMethods | undefined;
@@ -1,3 +1,3 @@
1
- export { initialize, isInitialized } from './orchestrator/initialize';
1
+ export { initialize, isInitialized, getInstrumentedApp } from './orchestrator/initialize';
2
2
  export type { OrchestratorConfig } from './orchestrator/initialize';
3
3
  export type { TenantClass } from './queue/types';
@@ -4390,6 +4390,7 @@ const idleDetectorInstr = getInstrumentation('IdleDetector');
4390
4390
 
4391
4391
  const SENTINEL_KEY = '__SF_O11Y_AUTO_INSTALLED__';
4392
4392
  let initialized = false;
4393
+ let app;
4393
4394
  function initialize(config) {
4394
4395
  var _a;
4395
4396
  if (initialized) {
@@ -4418,7 +4419,7 @@ function initialize(config) {
4418
4419
  onUploadError: config.onUploadError
4419
4420
  };
4420
4421
  const uploader = new TelemetryUploader(uploaderOptions);
4421
- const app = registerInstrumentedApp(config.environment.appName);
4422
+ app = registerInstrumentedApp(config.environment.appName);
4422
4423
  app.registerLogCollector(uploader.logCollector);
4423
4424
  app.registerMetricsCollector(uploader.logCollector);
4424
4425
  drainAndOverwrite('__SF_O11Y_QUEUE__', 'app');
@@ -4430,6 +4431,9 @@ function initialize(config) {
4430
4431
  function isInitialized() {
4431
4432
  return initialized;
4432
4433
  }
4434
+ function getInstrumentedApp() {
4435
+ return app;
4436
+ }
4433
4437
 
4434
- export { initialize, isInitialized };
4438
+ export { getInstrumentedApp, initialize, isInitialized };
4435
4439
  //# sourceMappingURL=orchestrator.js.map