@@ -37,7 +37,11 @@ internal class Mediator(internal var plugins: CopyOnWriteArrayList<Plugin> = Cop
37
37
try {
38
38
Telemetry .increment(Telemetry .INTEGRATION_METRIC ) {
39
39
it[" message" ] = " event-${event.type} "
40
- it[" plugin" ] = " ${plugin.type} -${plugin.javaClass} "
40
+ if (plugin is DestinationPlugin && plugin.key != " " ) {
41
+ it[" plugin" ] = " ${plugin.type} -${plugin.key} "
42
+ } else {
43
+ it[" plugin" ] = " ${plugin.type} -${plugin.javaClass} "
44
+ }
41
45
}
42
46
when (plugin) {
43
47
is DestinationPlugin -> {
@@ -52,7 +56,11 @@ internal class Mediator(internal var plugins: CopyOnWriteArrayList<Plugin> = Cop
52
56
reportErrorWithMetrics(null , t," Caught Exception in plugin" ,
53
57
Telemetry .INTEGRATION_ERROR_METRIC , t.stackTraceToString()) {
54
58
it[" error" ] = t.toString()
55
- it[" plugin" ] = " ${plugin.type} -${plugin.javaClass} "
59
+ if (plugin is DestinationPlugin && plugin.key != " " ) {
60
+ it[" plugin" ] = " ${plugin.type} -${plugin.key} "
61
+ } else {
62
+ it[" plugin" ] = " ${plugin.type} -${plugin.javaClass} "
63
+ }
56
64
it[" writekey" ] = plugin.analytics.configuration.writeKey
57
65
it[" message" ] = " Exception executing plugin"
58
66
}
@@ -72,7 +80,11 @@ internal class Mediator(internal var plugins: CopyOnWriteArrayList<Plugin> = Cop
72
80
" Caught Exception applying closure to plugin: $plugin " ,
73
81
Telemetry .INTEGRATION_ERROR_METRIC , t.stackTraceToString()) {
74
82
it[" error" ] = t.toString()
75
- it[" plugin" ] = " ${plugin.type} -${plugin.javaClass} "
83
+ if (plugin is DestinationPlugin && plugin.key != " " ) {
84
+ it[" plugin" ] = " ${plugin.type} -${plugin.key} "
85
+ } else {
86
+ it[" plugin" ] = " ${plugin.type} -${plugin.javaClass} "
87
+ }
76
88
it[" writekey" ] = plugin.analytics.configuration.writeKey
77
89
it[" message" ] = " Exception executing plugin"
78
90
}
0 commit comments