Skip to content

Commit 6e46697

Browse files
committed
remove comment
1 parent 1e77f16 commit 6e46697

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

exporters/otlp/profiles/src/main/java/io/opentelemetry/exporter/otlp/internal/data/ImmutableValueTypeData.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
package io.opentelemetry.exporter.otlp.internal.data;
77

88
import com.google.auto.value.AutoValue;
9-
import io.opentelemetry.exporter.otlp.profiles.AggregationTemporality;
109
import io.opentelemetry.exporter.otlp.profiles.ValueTypeData;
1110
import javax.annotation.concurrent.Immutable;
1211

@@ -26,10 +25,8 @@ public abstract class ImmutableValueTypeData implements ValueTypeData {
2625
*
2726
* @return a new ValueTypeData describing the given type and unit characteristics.
2827
*/
29-
public static ValueTypeData create(
30-
int typeStringIndex, int unitStringIndex, AggregationTemporality aggregationTemporality) {
31-
return new AutoValue_ImmutableValueTypeData(
32-
typeStringIndex, unitStringIndex, aggregationTemporality);
28+
public static ValueTypeData create(int typeStringIndex, int unitStringIndex) {
29+
return new AutoValue_ImmutableValueTypeData(typeStringIndex, unitStringIndex);
3330
}
3431

3532
ImmutableValueTypeData() {}

exporters/otlp/profiles/src/main/java/io/opentelemetry/exporter/otlp/profiles/ProfileMarshaler.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ final class ProfileMarshaler extends MarshalerWithSize {
2121
private final long durationNanos;
2222
private final ValueTypeMarshaler periodTypeMarshaler;
2323
private final long period;
24-
private final List<Integer> comment;
2524
private final byte[] profileId;
2625
private final List<Integer> attributeIndices;
2726
private final int droppedAttributesCount;
@@ -44,7 +43,6 @@ static ProfileMarshaler create(ProfileData profileData) {
4443
profileData.getDurationNanos(),
4544
periodTypeMarshaler,
4645
profileData.getPeriod(),
47-
profileData.getCommentStrIndices(),
4846
profileData.getProfileIdBytes(),
4947
profileData.getAttributeIndices(),
5048
droppedAttributesCount,
@@ -59,7 +57,6 @@ private ProfileMarshaler(
5957
long durationNanos,
6058
ValueTypeMarshaler periodTypeMarshaler,
6159
long period,
62-
List<Integer> comment,
6360
byte[] profileId,
6461
List<Integer> attributeIndices,
6562
int droppedAttributesCount,
@@ -73,7 +70,6 @@ private ProfileMarshaler(
7370
durationNanos,
7471
periodTypeMarshaler,
7572
period,
76-
comment,
7773
profileId,
7874
attributeIndices,
7975
droppedAttributesCount,
@@ -85,7 +81,6 @@ private ProfileMarshaler(
8581
this.durationNanos = durationNanos;
8682
this.periodTypeMarshaler = periodTypeMarshaler;
8783
this.period = period;
88-
this.comment = comment;
8984
this.profileId = profileId;
9085
this.attributeIndices = attributeIndices;
9186
this.droppedAttributesCount = droppedAttributesCount;
@@ -116,7 +111,6 @@ private static int calculateSize(
116111
long durationNanos,
117112
ValueTypeMarshaler periodTypeMarshaler,
118113
long period,
119-
List<Integer> comment,
120114
byte[] profileId,
121115
List<Integer> attributeIndices,
122116
int droppedAttributesCount,

exporters/otlp/profiles/src/main/java/io/opentelemetry/exporter/otlp/profiles/ValueTypeData.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
package io.opentelemetry.exporter.otlp.profiles;
77

8-
import javax.annotation.Nullable;
98
import javax.annotation.concurrent.Immutable;
109

1110
/**

exporters/otlp/profiles/src/main/java/io/opentelemetry/exporter/otlp/profiles/ValueTypeMarshaler.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import io.opentelemetry.exporter.internal.marshal.MarshalerUtil;
99
import io.opentelemetry.exporter.internal.marshal.MarshalerWithSize;
10-
import io.opentelemetry.exporter.internal.marshal.ProtoEnumInfo;
1110
import io.opentelemetry.exporter.internal.marshal.Serializer;
1211
import io.opentelemetry.proto.profiles.v1development.internal.ValueType;
1312
import java.io.IOException;
@@ -23,8 +22,7 @@ final class ValueTypeMarshaler extends MarshalerWithSize {
2322

2423
static ValueTypeMarshaler create(ValueTypeData valueTypeData) {
2524
return new ValueTypeMarshaler(
26-
valueTypeData.getTypeStringIndex(),
27-
valueTypeData.getUnitStringIndex());
25+
valueTypeData.getTypeStringIndex(), valueTypeData.getUnitStringIndex());
2826
}
2927

3028
static ValueTypeMarshaler[] createRepeated(List<ValueTypeData> items) {

0 commit comments

Comments
 (0)