Skip to content

Commit 9a25ff8

Browse files
committed
only add parentStore if message is an object
1 parent ad73ca2 commit 9a25ff8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/dd-trace/src/plugins/tracing.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ class TracingPlugin extends Plugin {
1212
this.operation = this.constructor.operation
1313

1414
this.addTraceSub('start', message => {
15-
message.parentStore = storage.getStore()
15+
if (message && typeof message === 'object') {
16+
message.parentStore = storage.getStore()
17+
}
1618
this.start(message)
1719
})
1820

0 commit comments

Comments
 (0)