Skip to content

Commit 62e2f8d

Browse files
committed
feat: prefixed the broker_component_name attribute with the solace namespace
1 parent d29f458 commit 62e2f8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

receiver/solacereceiver/receiver.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ func newTracesReceiver(config *Config, set receiver.Settings, nextConsumer consu
8383

8484
// solaceBrokerAttrs - including the component name of the connected Solace broker
8585
componentName := set.ID.Name()
86-
if componentName == "" {
86+
if componentName != "" {
87+
componentName = "solace/" + componentName
88+
} else {
8789
componentName = "solace"
8890
}
8991
solaceBrokerAttrs := attribute.NewSet(

0 commit comments

Comments
 (0)