Attention is currently required from: iedemam, laforge, pespin.
View Change
1 comment:
Patchset:
Patch Set #1:
Yes, the patch is simple but I don't really think the generated strings are less ugly. […]
I somehow forgot to send this:
The NSVCs currently set a name like this:
NSE00102-NSVC-UDP-127_0_0_1:23000-127_0_0_11:8888
This seems wrong for statsd as well, because a colon separates the name from the value - so we already have this issue in other places.
How about we:
- Keep a statg->name as well as a statg->sanitized_name around
- Let the user set any name through set_name()
- Internally sanitize the name and save it to sanitized_name, keep the original in name
This way we don't need to remember to properly sanitize at every caller and VTY code can still show the pretty name.
The control interface could choose to use the (statsd-sanitized) name or sanitize the original name itself.
To view, visit change 27137. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ib04c2f5bfcbd6c19dd87debf1fc053abf0b9bef2
Gerrit-Change-Number: 27137
Gerrit-PatchSet: 1
Gerrit-Owner: iedemam <michael@kapsulate.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: daniel <dwillmann@sysmocom.de>
Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu>
Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de>
Gerrit-CC: laforge <laforge@osmocom.org>
Gerrit-CC: pespin <pespin@sysmocom.de>
Gerrit-Attention: iedemam <michael@kapsulate.com>
Gerrit-Attention: laforge <laforge@osmocom.org>
Gerrit-Attention: pespin <pespin@sysmocom.de>
Gerrit-Comment-Date: Tue, 15 Feb 2022 13:31:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge@osmocom.org>
Gerrit-MessageType: comment