diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/BoolAnyValueStatelessMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/BoolAnyValueStatelessMarshaler.java index da05b557c8f..950aaa39f7d 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/BoolAnyValueStatelessMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/BoolAnyValueStatelessMarshaler.java @@ -16,6 +16,8 @@ final class BoolAnyValueStatelessMarshaler implements StatelessMarshaler { static final BoolAnyValueStatelessMarshaler INSTANCE = new BoolAnyValueStatelessMarshaler(); + private BoolAnyValueStatelessMarshaler() {} + @Override public void writeTo(Serializer output, Boolean value, MarshalerContext context) throws IOException { diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/DoubleAnyValueStatelessMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/DoubleAnyValueStatelessMarshaler.java index 879116d3f0f..7403b241ab2 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/DoubleAnyValueStatelessMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/DoubleAnyValueStatelessMarshaler.java @@ -16,6 +16,8 @@ final class DoubleAnyValueStatelessMarshaler implements StatelessMarshaler { static final DoubleAnyValueStatelessMarshaler INSTANCE = new DoubleAnyValueStatelessMarshaler(); + private DoubleAnyValueStatelessMarshaler() {} + @Override public void writeTo(Serializer output, Double value, MarshalerContext context) throws IOException { diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/IntAnyValueStatelessMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/IntAnyValueStatelessMarshaler.java index c1b97dd02a4..407a586ec80 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/IntAnyValueStatelessMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/IntAnyValueStatelessMarshaler.java @@ -16,6 +16,8 @@ final class IntAnyValueStatelessMarshaler implements StatelessMarshaler { static final IntAnyValueStatelessMarshaler INSTANCE = new IntAnyValueStatelessMarshaler(); + private IntAnyValueStatelessMarshaler() {} + @Override public void writeTo(Serializer output, Long value, MarshalerContext context) throws IOException { output.writeInt64(AnyValue.INT_VALUE, value); diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/StringAnyValueStatelessMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/StringAnyValueStatelessMarshaler.java index 59924ae4dbc..9d9af0b5d0c 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/StringAnyValueStatelessMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/StringAnyValueStatelessMarshaler.java @@ -21,6 +21,8 @@ final class StringAnyValueStatelessMarshaler implements StatelessMarshaler { static final StringAnyValueStatelessMarshaler INSTANCE = new StringAnyValueStatelessMarshaler(); + private StringAnyValueStatelessMarshaler() {} + @Override public void writeTo(Serializer output, String value, MarshalerContext context) throws IOException { diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/InstrumentationScopeSpansStatelessMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/InstrumentationScopeSpansStatelessMarshaler.java index 7bfdcb75adb..decec18ea79 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/InstrumentationScopeSpansStatelessMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/InstrumentationScopeSpansStatelessMarshaler.java @@ -23,6 +23,8 @@ final class InstrumentationScopeSpansStatelessMarshaler static final InstrumentationScopeSpansStatelessMarshaler INSTANCE = new InstrumentationScopeSpansStatelessMarshaler(); + private InstrumentationScopeSpansStatelessMarshaler() {} + @Override public void writeTo( Serializer output, diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/ResourceSpansStatelessMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/ResourceSpansStatelessMarshaler.java index de2aa078f0e..7ae30feb91d 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/ResourceSpansStatelessMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/ResourceSpansStatelessMarshaler.java @@ -31,6 +31,8 @@ public final class ResourceSpansStatelessMarshaler private static final MarshalerContext.Key SCOPE_SPAN_WRITER_KEY = MarshalerContext.key(); private static final MarshalerContext.Key SCOPE_SPAN_SIZE_CALCULATOR_KEY = MarshalerContext.key(); + private ResourceSpansStatelessMarshaler() {} + @Override public void writeTo( Serializer output, diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanEventStatelessMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanEventStatelessMarshaler.java index ef09f065749..491b8d44c30 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanEventStatelessMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanEventStatelessMarshaler.java @@ -19,6 +19,8 @@ final class SpanEventStatelessMarshaler implements StatelessMarshaler { static final SpanEventStatelessMarshaler INSTANCE = new SpanEventStatelessMarshaler(); + private SpanEventStatelessMarshaler() {} + @Override public void writeTo(Serializer output, EventData event, MarshalerContext context) throws IOException { diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanLinkStatelessMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanLinkStatelessMarshaler.java index 2b711d8e96c..0ed091096de 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanLinkStatelessMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanLinkStatelessMarshaler.java @@ -21,6 +21,8 @@ final class SpanLinkStatelessMarshaler implements StatelessMarshaler { static final SpanLinkStatelessMarshaler INSTANCE = new SpanLinkStatelessMarshaler(); + private SpanLinkStatelessMarshaler() {} + @Override public void writeTo(Serializer output, LinkData link, MarshalerContext context) throws IOException { diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanStatelessMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanStatelessMarshaler.java index 80703cf628d..40adefd143d 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanStatelessMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanStatelessMarshaler.java @@ -22,6 +22,8 @@ final class SpanStatelessMarshaler implements StatelessMarshaler { static final SpanStatelessMarshaler INSTANCE = new SpanStatelessMarshaler(); + private SpanStatelessMarshaler() {} + @Override public void writeTo(Serializer output, SpanData span, MarshalerContext context) throws IOException { diff --git a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanStatusStatelessMarshaler.java b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanStatusStatelessMarshaler.java index ba37729d636..0609c0e6829 100644 --- a/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanStatusStatelessMarshaler.java +++ b/exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/otlp/traces/SpanStatusStatelessMarshaler.java @@ -21,6 +21,8 @@ final class SpanStatusStatelessMarshaler implements StatelessMarshaler { static final SpanStatusStatelessMarshaler INSTANCE = new SpanStatusStatelessMarshaler(); + private SpanStatusStatelessMarshaler() {} + @Override public void writeTo(Serializer output, StatusData status, MarshalerContext context) throws IOException {