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,7 @@ 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 ));
6565
6666 writer .writeUTF8 (RUNTIME_ID );
6767 writer .writeUTF8 (wellKnownTags .getRuntimeId ());
@@ -72,6 +72,9 @@ public void startBucket(int metricCount, long start, long duration) {
7272 writer .writeUTF8 (HOSTNAME );
7373 writer .writeUTF8 (wellKnownTags .getHostname ());
7474
75+ writer .writeUTF8 (SERVICE );
76+ writer .writeUTF8 (wellKnownTags .getService ());
77+
7578 writer .writeUTF8 (ENV );
7679 writer .writeUTF8 (wellKnownTags .getEnv ());
7780
0 commit comments