1212
1313public final class SerializingMetricWriter implements MetricWriter {
1414
15- private static final byte [] SEQUENCE = "Seq " .getBytes (ISO_8859_1 );
16- private static final byte [] RUNTIME_ID = "RuntimeId " .getBytes (ISO_8859_1 );
15+ private static final byte [] SEQUENCE = "Sequence " .getBytes (ISO_8859_1 );
16+ private static final byte [] RUNTIME_ID = "RuntimeID " .getBytes (ISO_8859_1 );
1717 private static final byte [] HOSTNAME = "Hostname" .getBytes (ISO_8859_1 );
1818 private static final byte [] NAME = "Name" .getBytes (ISO_8859_1 );
1919 private static final byte [] ENV = "Env" .getBytes (ISO_8859_1 );
@@ -61,7 +61,8 @@ public SerializingMetricWriter(WellKnownTags wellKnownTags, Sink sink, int initi
6161 public void startBucket (int metricCount , long start , long duration ) {
6262 final UTF8BytesString processTags = ProcessTags .getTagsForSerialization ();
6363 final boolean writeProcessTags = processTags != null ;
64- writer .startMap (6 + (writeProcessTags ? 1 : 0 ));
64+ writer .startMap (7 + (writeProcessTags ? 1 : 0 ));
65+ System .err .println ("Sending runtime ID " + wellKnownTags .getRuntimeId ());
6566
6667 writer .writeUTF8 (RUNTIME_ID );
6768 writer .writeUTF8 (wellKnownTags .getRuntimeId ());
@@ -72,6 +73,9 @@ public void startBucket(int metricCount, long start, long duration) {
7273 writer .writeUTF8 (HOSTNAME );
7374 writer .writeUTF8 (wellKnownTags .getHostname ());
7475
76+ writer .writeUTF8 (SERVICE );
77+ writer .writeUTF8 (wellKnownTags .getService ());
78+
7579 writer .writeUTF8 (ENV );
7680 writer .writeUTF8 (wellKnownTags .getEnv ());
7781
0 commit comments