@newrelic/browser-agent 1.293.0 → 1.294.0-rc.1
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/CHANGELOG.md +12 -0
- package/dist/cjs/common/aggregate/event-aggregator.js +3 -0
- package/dist/cjs/common/config/runtime.js +4 -0
- package/dist/cjs/common/constants/agent-constants.js +1 -1
- package/dist/cjs/common/constants/env.cdn.js +1 -1
- package/dist/cjs/common/constants/env.npm.js +1 -1
- package/dist/cjs/common/event-emitter/contextual-ee.js +3 -2
- package/dist/cjs/common/url/clean-url.js +2 -1
- package/dist/cjs/common/util/attribute-size.js +31 -0
- package/dist/cjs/features/ajax/aggregate/index.js +6 -0
- package/dist/cjs/features/generic_events/aggregate/index.js +1 -14
- package/dist/cjs/features/generic_events/constants.js +1 -3
- package/dist/cjs/features/logging/aggregate/index.js +2 -23
- package/dist/cjs/features/page_view_timing/aggregate/index.js +2 -0
- package/dist/cjs/features/soft_navigations/aggregate/ajax-node.js +4 -4
- package/dist/cjs/features/soft_navigations/aggregate/bel-node.js +0 -4
- package/dist/cjs/features/soft_navigations/aggregate/index.js +12 -12
- package/dist/cjs/features/soft_navigations/aggregate/initial-page-load-interaction.js +3 -2
- package/dist/cjs/features/soft_navigations/aggregate/interaction.js +18 -11
- package/dist/cjs/features/spa/aggregate/interaction.js +1 -1
- package/dist/cjs/features/utils/agent-session.js +13 -5
- package/dist/cjs/features/utils/aggregate-base.js +25 -2
- package/dist/cjs/features/utils/event-buffer.js +12 -3
- package/dist/cjs/features/utils/event-store-manager.js +6 -6
- package/dist/esm/common/aggregate/event-aggregator.js +3 -0
- package/dist/esm/common/config/runtime.js +4 -0
- package/dist/esm/common/constants/agent-constants.js +1 -1
- package/dist/esm/common/constants/env.cdn.js +1 -1
- package/dist/esm/common/constants/env.npm.js +1 -1
- package/dist/esm/common/event-emitter/contextual-ee.js +3 -2
- package/dist/esm/common/url/clean-url.js +2 -1
- package/dist/esm/common/util/attribute-size.js +24 -0
- package/dist/esm/features/ajax/aggregate/index.js +6 -0
- package/dist/esm/features/generic_events/aggregate/index.js +1 -14
- package/dist/esm/features/generic_events/constants.js +0 -2
- package/dist/esm/features/logging/aggregate/index.js +2 -23
- package/dist/esm/features/page_view_timing/aggregate/index.js +2 -0
- package/dist/esm/features/soft_navigations/aggregate/ajax-node.js +4 -4
- package/dist/esm/features/soft_navigations/aggregate/bel-node.js +0 -4
- package/dist/esm/features/soft_navigations/aggregate/index.js +12 -12
- package/dist/esm/features/soft_navigations/aggregate/initial-page-load-interaction.js +3 -2
- package/dist/esm/features/soft_navigations/aggregate/interaction.js +18 -11
- package/dist/esm/features/spa/aggregate/interaction.js +1 -1
- package/dist/esm/features/utils/agent-session.js +13 -5
- package/dist/esm/features/utils/aggregate-base.js +25 -2
- package/dist/esm/features/utils/event-buffer.js +12 -3
- package/dist/esm/features/utils/event-store-manager.js +7 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/common/aggregate/event-aggregator.d.ts +1 -0
- package/dist/types/common/aggregate/event-aggregator.d.ts.map +1 -1
- package/dist/types/common/config/runtime.d.ts.map +1 -1
- package/dist/types/common/constants/agent-constants.d.ts +1 -1
- package/dist/types/common/event-emitter/contextual-ee.d.ts.map +1 -1
- package/dist/types/common/url/clean-url.d.ts +2 -2
- package/dist/types/common/url/clean-url.d.ts.map +1 -1
- package/dist/types/common/util/attribute-size.d.ts +4 -0
- package/dist/types/common/util/attribute-size.d.ts.map +1 -0
- package/dist/types/features/ajax/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/generic_events/aggregate/index.d.ts +0 -1
- package/dist/types/features/generic_events/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/generic_events/constants.d.ts +0 -2
- package/dist/types/features/generic_events/constants.d.ts.map +1 -1
- package/dist/types/features/logging/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/page_view_timing/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/soft_navigations/aggregate/ajax-node.d.ts +2 -2
- package/dist/types/features/soft_navigations/aggregate/ajax-node.d.ts.map +1 -1
- package/dist/types/features/soft_navigations/aggregate/bel-node.d.ts +0 -3
- package/dist/types/features/soft_navigations/aggregate/bel-node.d.ts.map +1 -1
- package/dist/types/features/soft_navigations/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/soft_navigations/aggregate/initial-page-load-interaction.d.ts +0 -1
- package/dist/types/features/soft_navigations/aggregate/initial-page-load-interaction.d.ts.map +1 -1
- package/dist/types/features/soft_navigations/aggregate/interaction.d.ts +8 -2
- package/dist/types/features/soft_navigations/aggregate/interaction.d.ts.map +1 -1
- package/dist/types/features/utils/agent-session.d.ts.map +1 -1
- package/dist/types/features/utils/aggregate-base.d.ts +10 -0
- package/dist/types/features/utils/aggregate-base.d.ts.map +1 -1
- package/dist/types/features/utils/event-buffer.d.ts +5 -2
- package/dist/types/features/utils/event-buffer.d.ts.map +1 -1
- package/dist/types/features/utils/event-store-manager.d.ts +3 -3
- package/dist/types/features/utils/event-store-manager.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/common/aggregate/event-aggregator.js +4 -0
- package/src/common/config/runtime.js +2 -0
- package/src/common/constants/agent-constants.js +1 -1
- package/src/common/event-emitter/contextual-ee.js +3 -2
- package/src/common/url/clean-url.js +2 -1
- package/src/common/util/attribute-size.js +24 -0
- package/src/features/ajax/aggregate/index.js +7 -0
- package/src/features/generic_events/aggregate/index.js +1 -12
- package/src/features/generic_events/constants.js +0 -2
- package/src/features/logging/aggregate/index.js +3 -20
- package/src/features/page_view_timing/aggregate/index.js +3 -0
- package/src/features/soft_navigations/aggregate/ajax-node.js +4 -4
- package/src/features/soft_navigations/aggregate/bel-node.js +0 -5
- package/src/features/soft_navigations/aggregate/index.js +13 -10
- package/src/features/soft_navigations/aggregate/initial-page-load-interaction.js +3 -2
- package/src/features/soft_navigations/aggregate/interaction.js +14 -8
- package/src/features/spa/aggregate/interaction.js +1 -1
- package/src/features/utils/agent-session.js +13 -2
- package/src/features/utils/aggregate-base.js +22 -2
- package/src/features/utils/event-buffer.js +12 -3
- package/src/features/utils/event-store-manager.js +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../src/index.js","../src/cdn/experimental.js","../src/cdn/lite.js","../src/cdn/pro.js","../src/cdn/spa.js","../src/common/aggregate/aggregator.js","../src/common/aggregate/event-aggregator.js","../src/common/config/configurable.js","../src/common/config/info.js","../src/common/config/init-types.js","../src/common/config/init.js","../src/common/config/loader-config.js","../src/common/config/runtime.js","../src/common/constants/agent-constants.js","../src/common/constants/env.cdn.js","../src/common/constants/env.js","../src/common/constants/env.npm.js","../src/common/constants/runtime.js","../src/common/constants/shared-channel.js","../src/common/deny-list/deny-list.js","../src/common/dispatch/global-event.js","../src/common/dom/iframe.js","../src/common/dom/query-selector.js","../src/common/dom/selector-path.js","../src/common/drain/drain.js","../src/common/event-emitter/contextual-ee.js","../src/common/event-emitter/event-context.js","../src/common/event-emitter/handle.js","../src/common/event-emitter/register-handler.js","../src/common/event-listener/event-listener-opts.js","../src/common/harvest/harvester.js","../src/common/harvest/types.js","../src/common/ids/bundle-id.js","../src/common/ids/id.js","../src/common/ids/unique-id.js","../src/common/serialize/bel-serializer.js","../src/common/session/constants.js","../src/common/session/session-entity.js","../src/common/storage/local-storage.js","../src/common/timer/interaction-timer.js","../src/common/timer/timer.js","../src/common/timing/nav-timing.js","../src/common/timing/now.js","../src/common/timing/time-keeper.js","../src/common/unload/eol.js","../src/common/url/canonicalize-url.js","../src/common/url/clean-url.js","../src/common/url/encode.js","../src/common/url/location.js","../src/common/url/parse-url.js","../src/common/url/protocol.js","../src/common/util/console.js","../src/common/util/data-size.js","../src/common/util/event-origin.js","../src/common/util/feature-flags.js","../src/common/util/get-or-set.js","../src/common/util/invoke.js","../src/common/util/obfuscate.js","../src/common/util/stringify.js","../src/common/util/submit-data.js","../src/common/util/target.js","../src/common/util/text.js","../src/common/util/traverse.js","../src/common/util/type-check.js","../src/common/vitals/constants.js","../src/common/vitals/cumulative-layout-shift.js","../src/common/vitals/first-contentful-paint.js","../src/common/vitals/first-paint.js","../src/common/vitals/interaction-to-next-paint.js","../src/common/vitals/largest-contentful-paint.js","../src/common/vitals/time-to-first-byte.js","../src/common/vitals/vital-metric.js","../src/common/window/load.js","../src/common/window/nreum.js","../src/common/window/page-visibility.js","../src/common/wrap/wrap-events.js","../src/common/wrap/wrap-fetch.js","../src/common/wrap/wrap-function.js","../src/common/wrap/wrap-history.js","../src/common/wrap/wrap-jsonp.js","../src/common/wrap/wrap-logger.js","../src/common/wrap/wrap-mutation.js","../src/common/wrap/wrap-promise.js","../src/common/wrap/wrap-timer.js","../src/common/wrap/wrap-websocket.js","../src/common/wrap/wrap-xhr.js","../src/features/ajax/constants.js","../src/features/ajax/index.js","../src/features/ajax/aggregate/gql.js","../src/features/ajax/aggregate/index.js","../src/features/ajax/instrument/distributed-tracing.js","../src/features/ajax/instrument/index.js","../src/features/ajax/instrument/response-size.js","../src/features/generic_events/constants.js","../src/features/generic_events/index.js","../src/features/generic_events/aggregate/index.js","../src/features/generic_events/aggregate/user-actions/aggregated-user-action.js","../src/features/generic_events/aggregate/user-actions/user-actions-aggregator.js","../src/features/generic_events/instrument/index.js","../src/features/jserrors/constants.js","../src/features/jserrors/index.js","../src/features/jserrors/aggregate/canonical-function-name.js","../src/features/jserrors/aggregate/compute-stack-trace.js","../src/features/jserrors/aggregate/format-stack-trace.js","../src/features/jserrors/aggregate/index.js","../src/features/jserrors/aggregate/internal-errors.js","../src/features/jserrors/aggregate/string-hash-code.js","../src/features/jserrors/instrument/index.js","../src/features/jserrors/shared/cast-error.js","../src/features/jserrors/shared/uncaught-error.js","../src/features/logging/constants.js","../src/features/logging/index.js","../src/features/logging/aggregate/index.js","../src/features/logging/instrument/index.js","../src/features/logging/shared/log.js","../src/features/logging/shared/utils.js","../src/features/metrics/constants.js","../src/features/metrics/index.js","../src/features/metrics/aggregate/framework-detection.js","../src/features/metrics/aggregate/index.js","../src/features/metrics/aggregate/websocket-detection.js","../src/features/metrics/instrument/index.js","../src/features/page_action/constants.js","../src/features/page_action/index.js","../src/features/page_action/instrument/index.js","../src/features/page_view_event/constants.js","../src/features/page_view_event/index.js","../src/features/page_view_event/aggregate/index.js","../src/features/page_view_event/aggregate/initialized-features.js","../src/features/page_view_event/instrument/index.js","../src/features/page_view_timing/constants.js","../src/features/page_view_timing/index.js","../src/features/page_view_timing/aggregate/index.js","../src/features/page_view_timing/instrument/index.js","../src/features/session_replay/constants.js","../src/features/session_replay/index.js","../src/features/session_replay/aggregate/index.js","../src/features/session_replay/instrument/index.js","../src/features/session_replay/shared/recorder-events.js","../src/features/session_replay/shared/recorder.js","../src/features/session_replay/shared/stylesheet-evaluator.js","../src/features/session_replay/shared/utils.js","../src/features/session_trace/constants.js","../src/features/session_trace/index.js","../src/features/session_trace/aggregate/index.js","../src/features/session_trace/aggregate/trace/node.js","../src/features/session_trace/aggregate/trace/storage.js","../src/features/session_trace/instrument/index.js","../src/features/soft_navigations/constants.js","../src/features/soft_navigations/index.js","../src/features/soft_navigations/aggregate/ajax-node.js","../src/features/soft_navigations/aggregate/bel-node.js","../src/features/soft_navigations/aggregate/index.js","../src/features/soft_navigations/aggregate/initial-page-load-interaction.js","../src/features/soft_navigations/aggregate/interaction.js","../src/features/soft_navigations/instrument/index.js","../src/features/spa/constants.js","../src/features/spa/index.js","../src/features/spa/aggregate/index.js","../src/features/spa/aggregate/interaction-node.js","../src/features/spa/aggregate/interaction.js","../src/features/spa/aggregate/serializer.js","../src/features/spa/instrument/index.js","../src/features/utils/agent-session.js","../src/features/utils/aggregate-base.js","../src/features/utils/entity-manager.js","../src/features/utils/event-buffer.js","../src/features/utils/event-store-manager.js","../src/features/utils/feature-base.js","../src/features/utils/feature-gates.js","../src/features/utils/instrument-base.js","../src/features/utils/nr1-debugger.js","../src/interfaces/registered-entity.js","../src/loaders/agent-base.js","../src/loaders/agent.js","../src/loaders/api-base.js","../src/loaders/browser-agent.js","../src/loaders/micro-agent-base.js","../src/loaders/micro-agent.js","../src/loaders/api/addPageAction.js","../src/loaders/api/addRelease.js","../src/loaders/api/addToTrace.js","../src/loaders/api/constants.js","../src/loaders/api/finished.js","../src/loaders/api/interaction-types.js","../src/loaders/api/interaction.js","../src/loaders/api/log.js","../src/loaders/api/measure.js","../src/loaders/api/noticeError.js","../src/loaders/api/pauseReplay.js","../src/loaders/api/recordCustomEvent.js","../src/loaders/api/recordReplay.js","../src/loaders/api/register-api-types.js","../src/loaders/api/register-api.js","../src/loaders/api/register.js","../src/loaders/api/setApplicationVersion.js","../src/loaders/api/setCustomAttribute.js","../src/loaders/api/setErrorHandler.js","../src/loaders/api/setPageViewName.js","../src/loaders/api/setUserId.js","../src/loaders/api/sharedHandlers.js","../src/loaders/api/start.js","../src/loaders/api/topLevelCallers.js","../src/loaders/api/wrapLogger.js","../src/loaders/configure/configure.js","../src/loaders/configure/nonce.js","../src/loaders/configure/public-path.js","../src/loaders/features/enabled-features.js","../src/loaders/features/featureDependencies.js","../src/loaders/features/features.js"],"version":"5.7.3"}
|
|
1
|
+
{"root":["../src/index.js","../src/cdn/experimental.js","../src/cdn/lite.js","../src/cdn/pro.js","../src/cdn/spa.js","../src/common/aggregate/aggregator.js","../src/common/aggregate/event-aggregator.js","../src/common/config/configurable.js","../src/common/config/info.js","../src/common/config/init-types.js","../src/common/config/init.js","../src/common/config/loader-config.js","../src/common/config/runtime.js","../src/common/constants/agent-constants.js","../src/common/constants/env.cdn.js","../src/common/constants/env.js","../src/common/constants/env.npm.js","../src/common/constants/runtime.js","../src/common/constants/shared-channel.js","../src/common/deny-list/deny-list.js","../src/common/dispatch/global-event.js","../src/common/dom/iframe.js","../src/common/dom/query-selector.js","../src/common/dom/selector-path.js","../src/common/drain/drain.js","../src/common/event-emitter/contextual-ee.js","../src/common/event-emitter/event-context.js","../src/common/event-emitter/handle.js","../src/common/event-emitter/register-handler.js","../src/common/event-listener/event-listener-opts.js","../src/common/harvest/harvester.js","../src/common/harvest/types.js","../src/common/ids/bundle-id.js","../src/common/ids/id.js","../src/common/ids/unique-id.js","../src/common/serialize/bel-serializer.js","../src/common/session/constants.js","../src/common/session/session-entity.js","../src/common/storage/local-storage.js","../src/common/timer/interaction-timer.js","../src/common/timer/timer.js","../src/common/timing/nav-timing.js","../src/common/timing/now.js","../src/common/timing/time-keeper.js","../src/common/unload/eol.js","../src/common/url/canonicalize-url.js","../src/common/url/clean-url.js","../src/common/url/encode.js","../src/common/url/location.js","../src/common/url/parse-url.js","../src/common/url/protocol.js","../src/common/util/attribute-size.js","../src/common/util/console.js","../src/common/util/data-size.js","../src/common/util/event-origin.js","../src/common/util/feature-flags.js","../src/common/util/get-or-set.js","../src/common/util/invoke.js","../src/common/util/obfuscate.js","../src/common/util/stringify.js","../src/common/util/submit-data.js","../src/common/util/target.js","../src/common/util/text.js","../src/common/util/traverse.js","../src/common/util/type-check.js","../src/common/vitals/constants.js","../src/common/vitals/cumulative-layout-shift.js","../src/common/vitals/first-contentful-paint.js","../src/common/vitals/first-paint.js","../src/common/vitals/interaction-to-next-paint.js","../src/common/vitals/largest-contentful-paint.js","../src/common/vitals/time-to-first-byte.js","../src/common/vitals/vital-metric.js","../src/common/window/load.js","../src/common/window/nreum.js","../src/common/window/page-visibility.js","../src/common/wrap/wrap-events.js","../src/common/wrap/wrap-fetch.js","../src/common/wrap/wrap-function.js","../src/common/wrap/wrap-history.js","../src/common/wrap/wrap-jsonp.js","../src/common/wrap/wrap-logger.js","../src/common/wrap/wrap-mutation.js","../src/common/wrap/wrap-promise.js","../src/common/wrap/wrap-timer.js","../src/common/wrap/wrap-websocket.js","../src/common/wrap/wrap-xhr.js","../src/features/ajax/constants.js","../src/features/ajax/index.js","../src/features/ajax/aggregate/gql.js","../src/features/ajax/aggregate/index.js","../src/features/ajax/instrument/distributed-tracing.js","../src/features/ajax/instrument/index.js","../src/features/ajax/instrument/response-size.js","../src/features/generic_events/constants.js","../src/features/generic_events/index.js","../src/features/generic_events/aggregate/index.js","../src/features/generic_events/aggregate/user-actions/aggregated-user-action.js","../src/features/generic_events/aggregate/user-actions/user-actions-aggregator.js","../src/features/generic_events/instrument/index.js","../src/features/jserrors/constants.js","../src/features/jserrors/index.js","../src/features/jserrors/aggregate/canonical-function-name.js","../src/features/jserrors/aggregate/compute-stack-trace.js","../src/features/jserrors/aggregate/format-stack-trace.js","../src/features/jserrors/aggregate/index.js","../src/features/jserrors/aggregate/internal-errors.js","../src/features/jserrors/aggregate/string-hash-code.js","../src/features/jserrors/instrument/index.js","../src/features/jserrors/shared/cast-error.js","../src/features/jserrors/shared/uncaught-error.js","../src/features/logging/constants.js","../src/features/logging/index.js","../src/features/logging/aggregate/index.js","../src/features/logging/instrument/index.js","../src/features/logging/shared/log.js","../src/features/logging/shared/utils.js","../src/features/metrics/constants.js","../src/features/metrics/index.js","../src/features/metrics/aggregate/framework-detection.js","../src/features/metrics/aggregate/index.js","../src/features/metrics/aggregate/websocket-detection.js","../src/features/metrics/instrument/index.js","../src/features/page_action/constants.js","../src/features/page_action/index.js","../src/features/page_action/instrument/index.js","../src/features/page_view_event/constants.js","../src/features/page_view_event/index.js","../src/features/page_view_event/aggregate/index.js","../src/features/page_view_event/aggregate/initialized-features.js","../src/features/page_view_event/instrument/index.js","../src/features/page_view_timing/constants.js","../src/features/page_view_timing/index.js","../src/features/page_view_timing/aggregate/index.js","../src/features/page_view_timing/instrument/index.js","../src/features/session_replay/constants.js","../src/features/session_replay/index.js","../src/features/session_replay/aggregate/index.js","../src/features/session_replay/instrument/index.js","../src/features/session_replay/shared/recorder-events.js","../src/features/session_replay/shared/recorder.js","../src/features/session_replay/shared/stylesheet-evaluator.js","../src/features/session_replay/shared/utils.js","../src/features/session_trace/constants.js","../src/features/session_trace/index.js","../src/features/session_trace/aggregate/index.js","../src/features/session_trace/aggregate/trace/node.js","../src/features/session_trace/aggregate/trace/storage.js","../src/features/session_trace/instrument/index.js","../src/features/soft_navigations/constants.js","../src/features/soft_navigations/index.js","../src/features/soft_navigations/aggregate/ajax-node.js","../src/features/soft_navigations/aggregate/bel-node.js","../src/features/soft_navigations/aggregate/index.js","../src/features/soft_navigations/aggregate/initial-page-load-interaction.js","../src/features/soft_navigations/aggregate/interaction.js","../src/features/soft_navigations/instrument/index.js","../src/features/spa/constants.js","../src/features/spa/index.js","../src/features/spa/aggregate/index.js","../src/features/spa/aggregate/interaction-node.js","../src/features/spa/aggregate/interaction.js","../src/features/spa/aggregate/serializer.js","../src/features/spa/instrument/index.js","../src/features/utils/agent-session.js","../src/features/utils/aggregate-base.js","../src/features/utils/entity-manager.js","../src/features/utils/event-buffer.js","../src/features/utils/event-store-manager.js","../src/features/utils/feature-base.js","../src/features/utils/feature-gates.js","../src/features/utils/instrument-base.js","../src/features/utils/nr1-debugger.js","../src/interfaces/registered-entity.js","../src/loaders/agent-base.js","../src/loaders/agent.js","../src/loaders/api-base.js","../src/loaders/browser-agent.js","../src/loaders/micro-agent-base.js","../src/loaders/micro-agent.js","../src/loaders/api/addPageAction.js","../src/loaders/api/addRelease.js","../src/loaders/api/addToTrace.js","../src/loaders/api/constants.js","../src/loaders/api/finished.js","../src/loaders/api/interaction-types.js","../src/loaders/api/interaction.js","../src/loaders/api/log.js","../src/loaders/api/measure.js","../src/loaders/api/noticeError.js","../src/loaders/api/pauseReplay.js","../src/loaders/api/recordCustomEvent.js","../src/loaders/api/recordReplay.js","../src/loaders/api/register-api-types.js","../src/loaders/api/register-api.js","../src/loaders/api/register.js","../src/loaders/api/setApplicationVersion.js","../src/loaders/api/setCustomAttribute.js","../src/loaders/api/setErrorHandler.js","../src/loaders/api/setPageViewName.js","../src/loaders/api/setUserId.js","../src/loaders/api/sharedHandlers.js","../src/loaders/api/start.js","../src/loaders/api/topLevelCallers.js","../src/loaders/api/wrapLogger.js","../src/loaders/configure/configure.js","../src/loaders/configure/nonce.js","../src/loaders/configure/public-path.js","../src/loaders/features/enabled-features.js","../src/loaders/features/featureDependencies.js","../src/loaders/features/features.js"],"version":"5.7.3"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* This typecasting allow features that uses Aggregator as their event handler to share the same AggregateBase.events utilization by those features.
|
|
4
4
|
*/
|
|
5
5
|
export class EventAggregator {
|
|
6
|
+
byteSize(): number;
|
|
6
7
|
isEmpty({ aggregatorTypes }: {
|
|
7
8
|
aggregatorTypes: any;
|
|
8
9
|
}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-aggregator.d.ts","sourceRoot":"","sources":["../../../../src/common/aggregate/event-aggregator.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH;IAIE;;YAGC;IAED,wFAIC;IAED,kEAGC;IAED;;aAgBC;IAED,0BAGC;IAED,sCAMC;IAED;;aAYC;IAED;;aAGC;;CACF"}
|
|
1
|
+
{"version":3,"file":"event-aggregator.d.ts","sourceRoot":"","sources":["../../../../src/common/aggregate/event-aggregator.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH;IAIE,mBAEC;IAED;;YAGC;IAED,wFAIC;IAED,kEAGC;IAED;;aAgBC;IAED,0BAGC;IAED,sCAMC;IAED;;aAYC;IAED;;aAGC;;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../src/common/config/runtime.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../src/common/config/runtime.js"],"names":[],"mappings":"AA4CO,gDAON"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright 2020-2025 New Relic, Inc. All rights reserved.
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
export const IDEAL_PAYLOAD_SIZE:
|
|
5
|
+
export const IDEAL_PAYLOAD_SIZE: 16000;
|
|
6
6
|
export const MAX_PAYLOAD_SIZE: 1000000;
|
|
7
7
|
export const DEFAULT_KEY: "NR_CONTAINER_AGENT";
|
|
8
8
|
//# sourceMappingURL=agent-constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextual-ee.d.ts","sourceRoot":"","sources":["../../../../src/common/event-emitter/contextual-ee.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAWA,+BAA0C;AA6ExC,+
|
|
1
|
+
{"version":3,"file":"contextual-ee.d.ts","sourceRoot":"","sources":["../../../../src/common/event-emitter/contextual-ee.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAWA,+BAA0C;AA6ExC,+FAuBC;AAqBD,6CAEC;AAND,2CAEC;AAMD,mEAaC;AA7FD,+BAKC;AA0FD,iDAGC;AA5HD,qCAA2B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Cleans a URL by removing the query string and fragment (hash portion).
|
|
3
|
-
* @param {string} url - The original URL to be cleaned.
|
|
3
|
+
* @param {string} [url] - The original URL to be cleaned.
|
|
4
4
|
* @param {boolean} [keepHash=false] - Whether to preserve the hash portion of the URL.
|
|
5
5
|
* @returns {string} The cleaned URL.
|
|
6
6
|
*/
|
|
7
|
-
export function cleanURL(url
|
|
7
|
+
export function cleanURL(url?: string, keepHash?: boolean): string;
|
|
8
8
|
//# sourceMappingURL=clean-url.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clean-url.d.ts","sourceRoot":"","sources":["../../../../src/common/url/clean-url.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"clean-url.d.ts","sourceRoot":"","sources":["../../../../src/common/url/clean-url.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,+BAJW,MAAM,aACN,OAAO,GACL,MAAM,CAKlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute-size.d.ts","sourceRoot":"","sources":["../../../../src/common/util/attribute-size.js"],"names":[],"mappings":"AAMA;;EAiBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/aggregate/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IAEjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/aggregate/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IAEjC,2BA+BC;IA5BC,mBAAwB;IA8B1B,6FA0EC;IAED,iDA6CC;CACF;8BAlK6B,4BAA4B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export class Aggregate extends AggregateBase {
|
|
2
2
|
static featureName: string;
|
|
3
3
|
constructor(agentRef: any);
|
|
4
|
-
eventsPerHarvest: number;
|
|
5
4
|
referrerUrl: string | undefined;
|
|
6
5
|
userActionAggregator: UserActionsAggregator;
|
|
7
6
|
/** Some keys are set by the query params or request headers sent with the harvest and override the body values, so check those before adding new standard body values...
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/generic_events/aggregate/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/generic_events/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,2BA2NC;IAzNC,gCAAkG;IAwC9F,4CAAuD;IAoL7D;;;;;;;;;;;;OAYG;IACH,eAJW,MAAM,YAAC,qBACP,MAAM,YAAC,QAiCjB;IAED,qCAEC;IAED;;;MAEC;IAED,gCAEC;IAED,mCASC;CACF;8BA5S6B,4BAA4B;sCAKpB,wCAAwC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/features/generic_events/constants.js"],"names":[],"mappings":"AAMA,kCAAuD;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/features/generic_events/constants.js"],"names":[],"mappings":"AAMA,kCAAuD;AAEvD,uCAA6F;AAC7F,8CAAuD;AAEvD,0CAA2C,CAAC,CAAA;AAC5C,sCAAuC,IAAI,CAAA;AAE3C,4CAAsF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/aggregate/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,2BAqCC;IAnCC,8BAAmG;IAY5F,iBAAmC;IAyB5C,0CAKC;IAED,4HAsCC;IAED;;YAKM,0FAA0F;;;QAoB5F,0DAA0D;;QAM7D;IAED;;MAGC;IAED,yDAAyD;IACzD,yBASC;IAED,yCAIC;CACF;8BAzJ6B,4BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_timing/aggregate/index.js"],"names":[],"mappings":"AAsBA;IACE,2BAAiC;IAMjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_timing/aggregate/index.js"],"names":[],"mappings":"AAsBA;IACE,2BAAiC;IAMjC,2BA8BC;IA5BC,4BAA+B;IAC/B,0BAA6B;IA6B/B;;;OAGG;IACH,6BAFW,MAAM,QAOhB;IAED;;;;MA6BC;IAED;;;OAGG;IACH,4BAFa,IAAI,CAahB;IAED,gDAUC;IAED,4BAGC;IAGD,qCAwBC;;CACF;8BAzJ6B,4BAA4B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export class AjaxNode extends BelNode {
|
|
2
|
-
constructor(
|
|
2
|
+
constructor(ajaxEvent: any);
|
|
3
3
|
belType: number;
|
|
4
4
|
method: any;
|
|
5
5
|
status: any;
|
|
@@ -12,7 +12,7 @@ export class AjaxNode extends BelNode {
|
|
|
12
12
|
traceId: any;
|
|
13
13
|
spanTimestamp: any;
|
|
14
14
|
gql: any;
|
|
15
|
-
serialize(parentStartTimestamp: any): string;
|
|
15
|
+
serialize(parentStartTimestamp: any, agentRef: any): string;
|
|
16
16
|
}
|
|
17
17
|
import { BelNode } from './bel-node';
|
|
18
18
|
//# sourceMappingURL=ajax-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ajax-node.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/ajax-node.js"],"names":[],"mappings":"AAQA;IACE,
|
|
1
|
+
{"version":3,"file":"ajax-node.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/ajax-node.js"],"names":[],"mappings":"AAQA;IACE,4BAiBC;IAfC,gBAA6B;IAC7B,YAA8B;IAC9B,YAA8B;IAC9B,YAA8B;IAC9B,UAA0B;IAC1B,YAAmC;IACnC,YAAoC;IACpC,+BAAwD;IACxD,YAA8B;IAC9B,aAAgC;IAChC,mBAA4C;IAC5C,SAAwB;IAM1B,4DA+BC;CACF;wBAtDuB,YAAY"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export class BelNode {
|
|
2
|
-
constructor(agentRef: any);
|
|
3
2
|
belType: any;
|
|
4
3
|
/** List of other BelNode derivatives. Each children should be of a subclass that implements its own 'serialize' function. */
|
|
5
4
|
children: any[];
|
|
@@ -8,8 +7,6 @@ export class BelNode {
|
|
|
8
7
|
callbackEnd: number;
|
|
9
8
|
callbackDuration: number;
|
|
10
9
|
nodeId: number;
|
|
11
|
-
obfuscator: any;
|
|
12
|
-
info: any;
|
|
13
10
|
addChild(child: any): void;
|
|
14
11
|
/** Virtual fn for stringifying an instance. */
|
|
15
12
|
serialize(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bel-node.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/bel-node.js"],"names":[],"mappings":"AAMA;
|
|
1
|
+
{"version":3,"file":"bel-node.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/bel-node.js"],"names":[],"mappings":"AAMA;IACE,aAAO;IACP,6HAA6H;IAC7H,gBAAa;IACb,WAAK;IACL,SAAG;IACH,oBAAe;IACf,yBAAoB;IACpB,eAAoB;IAEpB,2BAEC;IAED,+CAA+C;IAC/C,kBAAe;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/index.js"],"names":[],"mappings":"AAeA;IACE,2BAAiC;IACjC;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/index.js"],"names":[],"mappings":"AAeA;IACE,2BAAiC;IACjC;;OAsDC;IAjDC,2BAAwC;IACxC,iBAA8B;IAE9B,uDAA0E;IAe1E,yBAA+B;IAC/B,0CAAiC;IACjC,sBAA4B;IA+B9B,qCAUC;IAED,0EAiBC;IAED,2BAiBC;IAED;;;;;;;OAOG;IACH,6BAHW,mBAAmB,OAsB7B;;CA6FF;8BA1O6B,4BAA4B;2CAGf,iCAAiC;4BAChD,eAAe"}
|
package/dist/types/features/soft_navigations/aggregate/initial-page-load-interaction.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initial-page-load-interaction.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/initial-page-load-interaction.js"],"names":[],"mappings":"AAWA;IACE,
|
|
1
|
+
{"version":3,"file":"initial-page-load-interaction.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/initial-page-load-interaction.js"],"names":[],"mappings":"AAWA;IACE,2BAMC;IAED,sBAAqD;IACrD,gCAAyE;IAEzE;;;OAGG;IACH,oCA6BC;CACF;4BApD2B,eAAe"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* link https://github.com/newrelic/nr-querypack/blob/main/schemas/bel/7.qpschema
|
|
3
3
|
**/
|
|
4
4
|
export class Interaction extends BelNode {
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(uiEvent: any, uiEventTimestamp: any, currentRouteKnown: any, currentUrl: any);
|
|
6
6
|
id: string;
|
|
7
7
|
initialPageURL: string;
|
|
8
8
|
customName: any;
|
|
@@ -42,7 +42,13 @@ export class Interaction extends BelNode {
|
|
|
42
42
|
get firstPaint(): void;
|
|
43
43
|
get firstContentfulPaint(): void;
|
|
44
44
|
get navTiming(): void;
|
|
45
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Serializes (BEL) the interaction data for transmission.
|
|
47
|
+
* @param {Number} firstStartTimeOfPayload timestamp
|
|
48
|
+
* @param {Agent} agentRef Pass in the agent reference directly so that the event itself doesnt need to store the pointers and ruin the evaluation of the event size by including unused object references.
|
|
49
|
+
* @returns {String} A string that is the serialized representation of this interaction.
|
|
50
|
+
*/
|
|
51
|
+
serialize(firstStartTimeOfPayload: number, agentRef: Agent): string;
|
|
46
52
|
#private;
|
|
47
53
|
}
|
|
48
54
|
import { BelNode } from './bel-node';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/interaction.js"],"names":[],"mappings":"AAYA;;IAEI;AACJ;IAkBE,
|
|
1
|
+
{"version":3,"file":"interaction.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/interaction.js"],"names":[],"mappings":"AAYA;;IAEI;AACJ;IAkBE,0FAaC;IA9BD,WAAmB;IACnB,uBAAgC;IAChC,gBAAU;IACV,qBAAqB;IACrB,oBAAoB;IACpB,eAAS;IACT,aAAO;IACP,cAAQ;IACR,+EAA+E;IAC/E,eAA8B;IAC9B,qBAAgB;IAChB,yBAAoB;IACpB,sBAAoB;IACpB,6BAA2B;IAC3B,cAAW;IACX,uBAAiB;IAIf,gBAAoC;IACpC,aAAsB;IAEtB,cAAiC;IACjC,wCAGE;IACF,mBAAyC;IAAxB,qBAAwB;IAEzC,YAAsE;IAAxD,YAAwD;IAGxE,gCAEC;IAED,iDAGC;IAED,mCAEC;IAED,8BAIC;IAED,kCAaC;IAqBD;;;;;OAKG;IACH,0BAHW,mBAAmB,WAM7B;IAGD,uBAAoB;IACpB,iCAA8B;IAC9B,sBAAmB;IAEnB;;;;;OAKG;IACH,qDAHW,KAAK,UAgDf;;CACF;wBA/JuB,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-session.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/agent-session.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-session.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/agent-session.js"],"names":[],"mappings":"AAaA,sDAgDC"}
|
|
@@ -6,8 +6,18 @@ export class AggregateBase extends FeatureBase {
|
|
|
6
6
|
*/
|
|
7
7
|
constructor(agentRef: Object, featureName: string);
|
|
8
8
|
agentRef: Object;
|
|
9
|
+
/** @type {Boolean} indicates if custom attributes are combined in each event payload for size estimation purposes. this is set to true in derived classes that need to evaluate custom attributes separately from the event payload */
|
|
10
|
+
customAttributesAreSeparate: boolean;
|
|
11
|
+
/** @type {Boolean} indicates if the feature can harvest early. This is set to false in derived classes that need to block early harvests, like ajax under certain conditions */
|
|
12
|
+
canHarvestEarly: boolean;
|
|
9
13
|
harvestOpts: {};
|
|
10
14
|
events: any;
|
|
15
|
+
/**
|
|
16
|
+
* Evaluates whether a harvest should be made early by estimating the size of the current payload. Currently, this only happens if the event storage is EventBuffer, since that triggers this method directly.
|
|
17
|
+
* If conditions are met, a new harvest will be triggered immediately.
|
|
18
|
+
* @returns void
|
|
19
|
+
*/
|
|
20
|
+
decideEarlyHarvest(): void;
|
|
11
21
|
/**
|
|
12
22
|
* New handler for waiting for multiple flags. Useful when expecting multiple flags simultaneously (ex. stn vs sr)
|
|
13
23
|
* @param {string[]} flagNames
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregate-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/aggregate-base.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aggregate-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/aggregate-base.js"],"names":[],"mappings":"AAsBA;IACE;;;;OAIG;IACH,sBAHW,MAAM,eACN,MAAM,EAyBhB;IArBC,iBAAwB;IAIxB,uOAAuO;IACvO,qCAAwC;IACxC,gLAAgL;IAChL,yBAA2B;IAE3B,gBAAqB;IA6BjB,YAAwJ;IAW9J;;;;OAIG;IACH,2BAOC;IAED;;;;OAIG;IACH,yBAHW,MAAM,EAAE,gBAwBlB;IAED;;OAEG;IACH,cAGC;IADC,6BAAmB;IAGrB,qCAEC;IAED;;;;;;OAMG;IACH,uDAJW,MAAM,GAAC,SAAS,SAyB1B;IAED;;;;;;;OAOG;IACH,4BALG;QAAwB,SAAS,GAAzB,MAAM,YAAC;KACf,QAQF;IAED;;;OAGG;IACH,6CAsBC;IAED;;;OAGG;IACH,2CAOC;IALC,gBAA6C;IAO/C;;;;OAIG;IACH,uCAHW,GAAC,UACD,GAAC,QAIX;;CACF;4BA9N2B,gBAAgB"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export class EventBuffer {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Creates an event buffer that can hold feature-processed events.
|
|
4
|
+
* @param {Number} maxPayloadSize The maximum size of the payload that can be stored in this buffer.
|
|
5
|
+
* @param {Object} [featureAgg] - the feature aggregate instance
|
|
4
6
|
*/
|
|
5
|
-
constructor(maxPayloadSize?: number);
|
|
7
|
+
constructor(maxPayloadSize?: number, featureAgg?: Object);
|
|
6
8
|
maxPayloadSize: number;
|
|
9
|
+
featureAgg: Object | undefined;
|
|
7
10
|
isEmpty(): boolean;
|
|
8
11
|
get(): any[];
|
|
9
12
|
byteSize(): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-buffer.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/event-buffer.js"],"names":[],"mappings":"AAOA;IAME
|
|
1
|
+
{"version":3,"file":"event-buffer.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/event-buffer.js"],"names":[],"mappings":"AAOA;IAME;;;;OAIG;IACH,kDAFW,MAAM,EAKhB;IAFC,uBAAoC;IACpC,+BAA4B;IAG9B,mBAEC;IAED,aAEC;IAED,mBAEC;IAED,+CAEC;IAED;;;;OAIG;IACH,WAHW,GAAG,WAeb;IAED;;OAEG;IACH,cAGC;IAED;;OAEG;IACH,aAGC;IAED;;OAEG;IACH,kBAGC;IAED;;OAEG;IACH,mBAKC;;CACF"}
|
|
@@ -7,14 +7,14 @@ export class EventStoreManager {
|
|
|
7
7
|
* @param {object} agentRef - reference to base agent class
|
|
8
8
|
* @param {EventBuffer|EventAggregator} storageClass - the type of storage to use in this manager; 'EventBuffer' (1), 'EventAggregator' (2)
|
|
9
9
|
* @param {string} [defaultEntityGuid] - the entity guid to use as the default storage instance; if not provided, a new one is created
|
|
10
|
-
* @param {
|
|
10
|
+
* @param {Object} featureAgg - the feature aggregate instance that initialized this manager
|
|
11
11
|
*/
|
|
12
|
-
constructor(agentRef: object, storageClass: EventBuffer | EventAggregator, defaultEntityGuid?: string,
|
|
12
|
+
constructor(agentRef: object, storageClass: EventBuffer | EventAggregator, defaultEntityGuid?: string, featureAgg: Object);
|
|
13
13
|
agentRef: object;
|
|
14
14
|
entityManager: any;
|
|
15
15
|
StorageClass: any;
|
|
16
16
|
appStorageMap: Map<string, any>;
|
|
17
|
-
|
|
17
|
+
featureAgg: Object;
|
|
18
18
|
setEventStore(targetEntityGuid: any): void;
|
|
19
19
|
/**
|
|
20
20
|
* Calls the isEmpty method on the underlying storage class. If target is provided, runs just for the target, otherwise runs for all apps.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-store-manager.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/event-store-manager.js"],"names":[],"mappings":"AAQA;;;GAGG;AACH;IACE;;;;;OAKG;IACH,sBALW,MAAM,gBACN,WAAW,GAAC,eAAe,sBAC3B,MAAM,
|
|
1
|
+
{"version":3,"file":"event-store-manager.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/event-store-manager.js"],"names":[],"mappings":"AAQA;;;GAGG;AACH;IACE;;;;;OAKG;IACH,sBALW,MAAM,gBACN,WAAW,GAAC,eAAe,sBAC3B,MAAM,cACN,MAAM,EAShB;IANC,iBAAwB;IACxB,mBAAmD;IACnD,kBAAgC;IAChC,gCAAkG;IAClG,mBAA4B;IAc9B,2CAQC;IAID;;;;;OAKG;IACH,uBAJW,MAAM,0BAEJ,OAAO,CASnB;IAED;;;;;OAKG;IACH,WAJW,MAAM,oBACN,MAAM,GACJ,OAAO,CAYnB;IAED,0GAA0G;IAC1G,8DAEC;IAED;;;;;OAKG;IACH,WAJW,MAAM,YAAC,gCAgBjB;IAED;;;;OAIG;IACH,2BAHW,GAAC,OAKX;IAED;;;;;OAKG;IACH,iCAJW,GAAC,oBACD,GAAC,OAKX;IAED;;;;;OAKG;IACH,oBAJW,GAAC,oBACD,GAAC,OAMX;IAED;;;;;OAKG;IACH,qBAJW,GAAC,oBACD,GAAC,OAMX;IAGD,2DAEC;IAED,0DAEC;;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newrelic/browser-agent",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.294.0-rc.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "New Relic Browser Agent Team <browser-agent@newrelic.com>",
|
|
6
6
|
"description": "New Relic Browser Agent",
|
|
@@ -189,6 +189,7 @@
|
|
|
189
189
|
"test:component": "jest --selectProjects component",
|
|
190
190
|
"test:types": "tsd -f ./tests/dts/**/*.ts",
|
|
191
191
|
"wdio": "node --max-old-space-size=8192 tools/wdio/bin/cli.js",
|
|
192
|
+
"wdio:smoke": "node --max-old-space-size=8192 tools/wdio/bin/cli.js -T --concurrent=30",
|
|
192
193
|
"build:all": "npm run cdn:build:local && npm run build:npm && npm run tools:test-builds",
|
|
193
194
|
"build:browser-agent-wrapper": "npm run cdn:build:local && npm run build:npm && npm --prefix tools/test-builds/browser-agent-wrapper run build",
|
|
194
195
|
"build:npm": "npm run npm:build:esm && npm run npm:build:cjs && npm run npm:build:types && npm run npm:pack",
|
|
@@ -294,4 +295,4 @@
|
|
|
294
295
|
"README.md",
|
|
295
296
|
"CHANGELOG.md"
|
|
296
297
|
]
|
|
297
|
-
}
|
|
298
|
+
}
|
|
@@ -12,6 +12,10 @@ export class EventAggregator {
|
|
|
12
12
|
#aggregator = new Aggregator()
|
|
13
13
|
#savedNamesToBuckets = {}
|
|
14
14
|
|
|
15
|
+
byteSize () {
|
|
16
|
+
return 0 // EventAggregator does not currently track byte size like EventBuffer does, but will in a future update. This is a placeholder to maintain interface consistency.
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
isEmpty ({ aggregatorTypes }) {
|
|
16
20
|
if (!aggregatorTypes) return Object.keys(this.#aggregator.aggregatedData).length === 0
|
|
17
21
|
return aggregatorTypes.every(type => !this.#aggregator.aggregatedData[type]) // no bucket exist for any of the types we're looking for
|
|
@@ -37,6 +37,8 @@ const RuntimeModel = {
|
|
|
37
37
|
releaseIds: {},
|
|
38
38
|
session: undefined,
|
|
39
39
|
timeKeeper: undefined,
|
|
40
|
+
/** a proxy is set in agent-session to track jsAttributes changes for harvesting mechanics */
|
|
41
|
+
jsAttributesMetadata: { bytes: 0 },
|
|
40
42
|
get harvestCount () { return ++_harvestCount }
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Copyright 2020-2025 New Relic, Inc. All rights reserved.
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
export const IDEAL_PAYLOAD_SIZE =
|
|
5
|
+
export const IDEAL_PAYLOAD_SIZE = 16000
|
|
6
6
|
export const MAX_PAYLOAD_SIZE = 1000000
|
|
7
7
|
export const DEFAULT_KEY = 'NR_CONTAINER_AGENT'
|
|
@@ -93,12 +93,13 @@ function ee (old, debugId) {
|
|
|
93
93
|
|
|
94
94
|
var ctx = context(contextOrStore)
|
|
95
95
|
var handlersArray = listeners(type)
|
|
96
|
-
var len = handlersArray.length
|
|
97
96
|
|
|
98
97
|
// Apply each handler function in the order they were added
|
|
99
98
|
// to the context with the arguments
|
|
100
99
|
|
|
101
|
-
|
|
100
|
+
handlersArray.forEach((handler) => {
|
|
101
|
+
handler.apply(ctx, args)
|
|
102
|
+
})
|
|
102
103
|
|
|
103
104
|
// Buffer after emitting for consistent ordering
|
|
104
105
|
var bufferGroup = getBuffer()[bufferGroupMap[type]]
|
|
@@ -8,10 +8,11 @@ var patternWithoutHash = /([^?#]*)().*/
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Cleans a URL by removing the query string and fragment (hash portion).
|
|
11
|
-
* @param {string} url - The original URL to be cleaned.
|
|
11
|
+
* @param {string} [url] - The original URL to be cleaned.
|
|
12
12
|
* @param {boolean} [keepHash=false] - Whether to preserve the hash portion of the URL.
|
|
13
13
|
* @returns {string} The cleaned URL.
|
|
14
14
|
*/
|
|
15
15
|
export function cleanURL (url, keepHash) {
|
|
16
|
+
if (!url) return url
|
|
16
17
|
return url.replace(keepHash ? patternWithHash : patternWithoutHash, '$1$2')
|
|
17
18
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2020-2025 New Relic, Inc. All rights reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { stringify } from './stringify'
|
|
6
|
+
|
|
7
|
+
export function trackObjectAttributeSize (parent, object) {
|
|
8
|
+
const originalAttribute = parent[object] ??= {}
|
|
9
|
+
const output = { bytes: Object.keys(originalAttribute).reduce((acc, key) => acc + key.length + stringify(originalAttribute[key]).length, 0) }
|
|
10
|
+
// proxy attribute to calculate its size when changed
|
|
11
|
+
parent[object] = new Proxy(originalAttribute, {
|
|
12
|
+
set (target, prop, value) {
|
|
13
|
+
output.bytes += prop.length + stringify(value).length
|
|
14
|
+
target[prop] = value
|
|
15
|
+
return true
|
|
16
|
+
},
|
|
17
|
+
deleteProperty (target, prop) {
|
|
18
|
+
output.bytes -= prop.length + stringify(target[prop]).length
|
|
19
|
+
return delete target[prop]
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
return output
|
|
24
|
+
}
|
|
@@ -21,6 +21,13 @@ export class Aggregate extends AggregateBase {
|
|
|
21
21
|
this.underSpaEvents = {}
|
|
22
22
|
const classThis = this
|
|
23
23
|
|
|
24
|
+
if (!agentRef.init.ajax.block_internal) {
|
|
25
|
+
// if the agent is tracking ITSELF, it can spawn endless ajax requests early if they are large from custom attributes, so we just disable early harvest for ajax in this case.
|
|
26
|
+
super.canHarvestEarly = false
|
|
27
|
+
} else {
|
|
28
|
+
super.customAttributesAreSeparate = true
|
|
29
|
+
}
|
|
30
|
+
|
|
24
31
|
// --- v Used by old spa feature
|
|
25
32
|
this.ee.on('interactionDone', (interaction, wasSaved) => {
|
|
26
33
|
if (!this.underSpaEvents[interaction.id]) return
|
|
@@ -10,7 +10,6 @@ import { AggregateBase } from '../../utils/aggregate-base'
|
|
|
10
10
|
import { warn } from '../../../common/util/console'
|
|
11
11
|
import { now } from '../../../common/timing/now'
|
|
12
12
|
import { registerHandler } from '../../../common/event-emitter/register-handler'
|
|
13
|
-
import { SUPPORTABILITY_METRIC_CHANNEL } from '../../metrics/constants'
|
|
14
13
|
import { applyFnToProps } from '../../../common/util/traverse'
|
|
15
14
|
import { UserActionsAggregator } from './user-actions/user-actions-aggregator'
|
|
16
15
|
import { isIFrameWindow } from '../../../common/dom/iframe'
|
|
@@ -20,7 +19,6 @@ export class Aggregate extends AggregateBase {
|
|
|
20
19
|
static featureName = FEATURE_NAME
|
|
21
20
|
constructor (agentRef) {
|
|
22
21
|
super(agentRef, FEATURE_NAME)
|
|
23
|
-
this.eventsPerHarvest = 1000
|
|
24
22
|
this.referrerUrl = (isBrowserScope && document.referrer) ? cleanURL(document.referrer) : undefined
|
|
25
23
|
|
|
26
24
|
this.waitForFlags(['ins']).then(([ins]) => {
|
|
@@ -283,16 +281,7 @@ export class Aggregate extends AggregateBase {
|
|
|
283
281
|
...obj
|
|
284
282
|
}
|
|
285
283
|
|
|
286
|
-
|
|
287
|
-
if (!addedEvent && !this.events.isEmpty(undefined, targetEntityGuid)) {
|
|
288
|
-
/** could not add the event because it pushed the buffer over the limit
|
|
289
|
-
* so we harvest early, and try to add it again now that the buffer is cleared
|
|
290
|
-
* if it fails again, we do nothing
|
|
291
|
-
*/
|
|
292
|
-
this.ee.emit(SUPPORTABILITY_METRIC_CHANNEL, ['GenericEvents/Harvest/Max/Seen'])
|
|
293
|
-
this.agentRef.runtime.harvester.triggerHarvestFor(this, { targetEntityGuid })
|
|
294
|
-
this.events.add(eventAttributes)
|
|
295
|
-
}
|
|
284
|
+
this.events.add(eventAttributes, targetEntityGuid)
|
|
296
285
|
}
|
|
297
286
|
|
|
298
287
|
serializer (eventBuffer) {
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
import { FEATURE_NAMES } from '../../loaders/features/features'
|
|
6
6
|
|
|
7
7
|
export const FEATURE_NAME = FEATURE_NAMES.genericEvents
|
|
8
|
-
export const IDEAL_PAYLOAD_SIZE = 64000
|
|
9
|
-
export const MAX_PAYLOAD_SIZE = 1000000
|
|
10
8
|
|
|
11
9
|
export const OBSERVED_EVENTS = ['auxclick', 'click', 'copy', 'keydown', 'paste', 'scrollend']
|
|
12
10
|
export const OBSERVED_WINDOW_EVENTS = ['focus', 'blur']
|
|
@@ -10,7 +10,6 @@ import { FEATURE_NAME, LOGGING_EVENT_EMITTER_CHANNEL, LOG_LEVELS, LOGGING_MODE }
|
|
|
10
10
|
import { Log } from '../shared/log'
|
|
11
11
|
import { isValidLogLevel } from '../shared/utils'
|
|
12
12
|
import { applyFnToProps } from '../../../common/util/traverse'
|
|
13
|
-
import { MAX_PAYLOAD_SIZE } from '../../../common/constants/agent-constants'
|
|
14
13
|
import { isContainerAgentTarget } from '../../../common/util/target'
|
|
15
14
|
import { SESSION_EVENT_TYPES, SESSION_EVENTS } from '../../../common/session/constants'
|
|
16
15
|
import { ABORT_REASONS } from '../../session_replay/constants'
|
|
@@ -22,6 +21,8 @@ export class Aggregate extends AggregateBase {
|
|
|
22
21
|
super(agentRef, FEATURE_NAME)
|
|
23
22
|
this.isSessionTrackingEnabled = canEnableSessionTracking(agentRef.init) && agentRef.runtime.session
|
|
24
23
|
|
|
24
|
+
super.customAttributesAreSeparate = true
|
|
25
|
+
|
|
25
26
|
// The SessionEntity class can emit a message indicating the session was cleared and reset (expiry, inactivity). This feature must abort and never resume if that occurs.
|
|
26
27
|
this.ee.on(SESSION_EVENTS.RESET, () => {
|
|
27
28
|
this.abort(ABORT_REASONS.RESET)
|
|
@@ -98,26 +99,8 @@ export class Aggregate extends AggregateBase {
|
|
|
98
99
|
attributes,
|
|
99
100
|
level
|
|
100
101
|
)
|
|
101
|
-
const logBytes = log.message.length + stringify(log.attributes).length + log.level.length + 10 // timestamp == 10 chars
|
|
102
|
-
|
|
103
|
-
const failToHarvestMessage = 'Logging/Harvest/Failed/Seen'
|
|
104
|
-
if (logBytes > MAX_PAYLOAD_SIZE) { // cannot possibly send this, even with an empty buffer
|
|
105
|
-
this.reportSupportabilityMetric(failToHarvestMessage, logBytes)
|
|
106
|
-
warn(31, log.message.slice(0, 25) + '...')
|
|
107
|
-
return
|
|
108
|
-
}
|
|
109
102
|
|
|
110
|
-
|
|
111
|
-
this.reportSupportabilityMetric('Logging/Harvest/Early/Seen', this.events.byteSize() + logBytes)
|
|
112
|
-
this.agentRef.runtime.harvester.triggerHarvestFor(this, { targetEntityGuid }) // force a harvest synchronously to try adding again
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if (!this.events.add(log, targetEntityGuid)) { // still failed after a harvest attempt despite not being too large would mean harvest failed with options.retry
|
|
116
|
-
this.reportSupportabilityMetric(failToHarvestMessage, logBytes)
|
|
117
|
-
warn(31, log.message.slice(0, 25) + '...')
|
|
118
|
-
} else {
|
|
119
|
-
this.reportSupportabilityMetric('Logging/Event/Added/Seen')
|
|
120
|
-
}
|
|
103
|
+
this.events.add(log, targetEntityGuid)
|
|
121
104
|
}
|
|
122
105
|
|
|
123
106
|
serializer (eventBuffer, targetEntityGuid) {
|
|
@@ -32,6 +32,8 @@ export class Aggregate extends AggregateBase {
|
|
|
32
32
|
this.curSessEndRecorded = false
|
|
33
33
|
this.firstIxnRecorded = false
|
|
34
34
|
|
|
35
|
+
super.customAttributesAreSeparate = true
|
|
36
|
+
|
|
35
37
|
registerHandler('docHidden', msTimestamp => this.endCurrentSession(msTimestamp), this.featureName, this.ee)
|
|
36
38
|
// Add the time of _window pagehide event_ firing to the next PVT harvest == NRDB windowUnload attr:
|
|
37
39
|
registerHandler('winPagehide', msTimestamp => this.addTiming('unload', msTimestamp, null), this.featureName, this.ee)
|
|
@@ -135,6 +137,7 @@ export class Aggregate extends AggregateBase {
|
|
|
135
137
|
|
|
136
138
|
// serialize array of timing data
|
|
137
139
|
serializer (eventBuffer) {
|
|
140
|
+
if (!eventBuffer?.length) return ''
|
|
138
141
|
var addString = getAddStringContext(this.agentRef.runtime.obfuscator)
|
|
139
142
|
|
|
140
143
|
var payload = 'bel.6;'
|