Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/rum-core/src/common/config-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class Config {
Math.round(transactionSampleRate * 10000) / 10000
}

merge(this.config, properties)
this.config = merge(this.config, properties)
this.events.send(CONFIG_CHANGE, [this.config])
}

Expand Down
12 changes: 7 additions & 5 deletions packages/rum-core/src/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ function isFunction(value) {
return typeof value === 'function'
}

function baseExtend(dst, objs, deep) {
function baseExtend(objs, deep) {
var dst = Object.create(null)

for (var i = 0, ii = objs.length; i < ii; ++i) {
var obj = objs[i]
if (!isObject(obj) && !isFunction(obj)) continue
Expand Down Expand Up @@ -284,12 +286,12 @@ function getCurrentScript() {
}
}

function extend(dst) {
return baseExtend(dst, slice.call(arguments, 1), false)
function extend() {
return baseExtend(slice.call(arguments), false)
}

function merge(dst) {
return baseExtend(dst, slice.call(arguments, 1), true)
function merge() {
return baseExtend(slice.call(arguments), true)
}

function isUndefined(obj) {
Expand Down
2 changes: 1 addition & 1 deletion packages/rum-core/src/performance-monitoring/span-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class SpanBase {
addContext(...context) {
if (context.length === 0) return
this.ensureContext()
merge(this.context, ...context)
this.context = merge(this.context, ...context)
}

end(endTime) {
Expand Down
Loading