package com.hypnoticocelot.telemetry.tracing;

import com.google.common.collect.ImmutableMap;

import java.util.Map;

public class SpanInfo {
    private final String name;
    private final ImmutableMap<String, String> annotations;

    public SpanInfo(String name) {
        this.name = name;
        annotations = ImmutableMap.of();
    }

    public SpanInfo(String name, Map<String, String> annotations) {
        this.name = name;
        this.annotations = ImmutableMap.copyOf(annotations);
    }

    public String getName() {
        return name;
    }

    public ImmutableMap<String, String> getAnnotations() {
        return annotations;
    }
}

@@ -147,22 +147,16 @@
 private 
-final 
 String n
@@ -176,14 +176,8 @@
 ate 
-final 
 Immu
@@ -215,16 +215,44 @@
 tions;%0A%0A
+    private SpanInfo() %7B %7D%0A%0A
     publ

Make SpanInfo more Jackson deserialization friendly.