+ /**
+ * LTTng accepts periods in context names, but ends up printing them as
+ * underscores in the trace, so the metadata grammar remains valid.
+ */
+ private static String convertToNameInTrace(String name) {
+ return name.replace('.', '_');
+ }
+