o11y 266.29.0 → 266.30.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 (38) hide show
  1. package/dist/modules/o11y/client/client.js +8 -0
  2. package/dist/modules/o11y/client/client.js.map +1 -1
  3. package/dist/modules/o11y/client/interfaces/Instrumentation.d.ts +1 -0
  4. package/dist/modules/o11y/client/library/InstrumentationImpl.d.ts +1 -0
  5. package/dist/modules/o11y/client/queue/types.d.ts +1 -1
  6. package/dist/modules/o11y/collectors/interfaces/Instrumentation.d.ts +1 -0
  7. package/dist/modules/o11y/collectors/library/InstrumentationImpl.d.ts +1 -0
  8. package/dist/modules/o11y/collectors/queue/types.d.ts +1 -1
  9. package/dist/modules/o11y/core_envelope/interfaces/Instrumentation.d.ts +1 -0
  10. package/dist/modules/o11y/core_envelope/library/InstrumentationImpl.d.ts +1 -0
  11. package/dist/modules/o11y/core_envelope/queue/types.d.ts +1 -1
  12. package/dist/modules/o11y/monitors/interfaces/Instrumentation.d.ts +1 -0
  13. package/dist/modules/o11y/monitors/library/InstrumentationImpl.d.ts +1 -0
  14. package/dist/modules/o11y/monitors/queue/types.d.ts +1 -1
  15. package/dist/modules/o11y/orchestrator/interfaces/Instrumentation.d.ts +1 -0
  16. package/dist/modules/o11y/orchestrator/library/InstrumentationImpl.d.ts +1 -0
  17. package/dist/modules/o11y/orchestrator/queue/types.d.ts +1 -1
  18. package/dist/modules/o11y/queue/interfaces/Instrumentation.d.ts +1 -0
  19. package/dist/modules/o11y/queue/library/InstrumentationImpl.d.ts +1 -0
  20. package/dist/modules/o11y/queue/queue/types.d.ts +1 -1
  21. package/dist/modules/o11y/queue/queue.js +1 -0
  22. package/dist/modules/o11y/queue/queue.js.map +1 -1
  23. package/dist/modules/o11y/shared/interfaces/Instrumentation.d.ts +1 -0
  24. package/dist/modules/o11y/shared/library/InstrumentationImpl.d.ts +1 -0
  25. package/dist/modules/o11y/shared/queue/types.d.ts +1 -1
  26. package/dist/modules/o11y/simple_collector/interfaces/Instrumentation.d.ts +1 -0
  27. package/dist/modules/o11y/simple_collector/library/InstrumentationImpl.d.ts +1 -0
  28. package/dist/modules/o11y/simple_collector/queue/types.d.ts +1 -1
  29. package/dist/modules/o11y/telemetry_uploader/interfaces/Instrumentation.d.ts +1 -0
  30. package/dist/modules/o11y/telemetry_uploader/library/InstrumentationImpl.d.ts +1 -0
  31. package/dist/modules/o11y/telemetry_uploader/queue/types.d.ts +1 -1
  32. package/dist/modules/o11y/tenant_class_channel/interfaces/Instrumentation.d.ts +1 -0
  33. package/dist/modules/o11y/tenant_class_channel/library/InstrumentationImpl.d.ts +1 -0
  34. package/dist/modules/o11y/tenant_class_channel/queue/types.d.ts +1 -1
  35. package/dist/modules/o11y/web_vitals/interfaces/Instrumentation.d.ts +1 -0
  36. package/dist/modules/o11y/web_vitals/library/InstrumentationImpl.d.ts +1 -0
  37. package/dist/modules/o11y/web_vitals/queue/types.d.ts +1 -1
  38. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { networkSchema, simpleSchema, payloadDiagsSchema, errorSchema, activitySchema, instrumentedEventSchema, idleDetectorReportSchema } from 'o11y_schema/sf_instrumentation';
2
2
  import { utility, PublicSafety, schemaUtil, UpCounterImpl, maxStringLengthAppLimit, payloadUtility, metricsUtility, co11y } from 'o11y/shared';
3
+ import { pdpEventSchema } from 'o11y_schema/sf_pdp';
3
4
  import { STAMP_TENANT_CLASS } from 'o11y/tenant_class_channel';
4
5
 
5
6
  class TaskerImpl {
@@ -1683,6 +1684,12 @@ class InstrumentationImpl {
1683
1684
  }
1684
1685
  }, { op: 'log' });
1685
1686
  }
1687
+ logPdpEvent(pdpEventData, options) {
1688
+ this._safety.tryCatch(() => {
1689
+ utility.requireArgument(pdpEventData, 'pdpEventData', 'object');
1690
+ this.log(pdpEventSchema, pdpEventData, options);
1691
+ }, { op: 'logPdpEvent' });
1692
+ }
1686
1693
  _logInternal(loggerName, schema, data, timestamp, rootId) {
1687
1694
  const tenantClass = pendingTenantClass.get(this);
1688
1695
  const sequence = this._nextGen.addLog(loggerName, schema, data, timestamp, rootId, tenantClass);
@@ -2481,6 +2488,7 @@ class NextgenImpl {
2481
2488
  const tracing = new Tracing(this.getInstrumentation('Network'), this._idleDetector);
2482
2489
  return {
2483
2490
  log: this._appInstr.log.bind(this._appInstr),
2491
+ logPdpEvent: this._appInstr.logPdpEvent.bind(this._appInstr),
2484
2492
  error: this._appInstr.error.bind(this._appInstr),
2485
2493
  startActivity: this._appInstr.startActivity.bind(this._appInstr),
2486
2494
  domEvent: this._appInstr.domEvent.bind(this._appInstr),