Skip to content

Commit c674f3e

Browse files
committed
add more user info to ProcessMessage span
1 parent ec1596c commit c674f3e

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

OpenFlow/src/Messages/Message.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ export class Message {
109109
const ot_end = otel.startTimer();
110110
span = otel.startSpan("ProcessMessage " + command);
111111
span.setAttribute("clientid", cli.id);
112+
if (!NoderedUtil.IsNullEmpty(cli.clientversion)) span.setAttribute("clientversion", cli.clientversion);
113+
if (!NoderedUtil.IsNullEmpty(cli.clientagent)) span.setAttribute("clientagent", cli.clientagent);
114+
if (!NoderedUtil.IsNullEmpty(cli.remoteip)) span.setAttribute("clientagent", cli.remoteip);
112115
span.setAttribute("command", command);
113116
span.setAttribute("id", this.id);
114117
switch (command) {

OpenFlowNodeRED/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/nodered",
3-
"version": "1.2.34",
3+
"version": "1.2.35",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.34
1+
1.2.35

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/openflow",
3-
"version": "1.2.34",
3+
"version": "1.2.35",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)