File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
exporters/otlp/profiles/src
main/java/io/opentelemetry/exporter/otlp
test/java/io/opentelemetry/exporter/otlp/profiles Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 66package io .opentelemetry .exporter .otlp .internal .data ;
77
88import com .google .auto .value .AutoValue ;
9- import io .opentelemetry .api . common . Attributes ;
9+ import io .opentelemetry .exporter . internal . otlp . AttributeKeyValue ;
1010import io .opentelemetry .exporter .otlp .profiles .AttributeUnitData ;
1111import io .opentelemetry .exporter .otlp .profiles .FunctionData ;
1212import io .opentelemetry .exporter .otlp .profiles .LinkData ;
@@ -48,7 +48,7 @@ public static ProfileData create(
4848 List <LocationData > locationTable ,
4949 List <Integer > locationIndices ,
5050 List <FunctionData > functionTable ,
51- Attributes attributeTable ,
51+ List < AttributeKeyValue <?>> attributeTable ,
5252 List <AttributeUnitData > attributeUnits ,
5353 List <LinkData > linkTable ,
5454 List <String > stringTable ,
Original file line number Diff line number Diff line change @@ -38,5 +38,5 @@ public interface LocationData {
3838 boolean isFolded ();
3939
4040 /** References to attributes in Profile.attribute_table. */
41- List <Integer > getAttributes ();
41+ List <Integer > getAttributeIndices ();
4242}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ static LocationMarshaler create(LocationData locationData) {
3030 locationData .getAddress (),
3131 LineMarshaler .createRepeated (locationData .getLines ()),
3232 locationData .isFolded (),
33- locationData .getAttributes ());
33+ locationData .getAttributeIndices ());
3434 }
3535
3636 static LocationMarshaler [] createRepeated (List <LocationData > items ) {
Original file line number Diff line number Diff line change 55
66package io .opentelemetry .exporter .otlp .profiles ;
77
8- import io .opentelemetry .api .common .Attributes ;
98import io .opentelemetry .api .internal .OtelEncodingUtils ;
9+ import io .opentelemetry .exporter .internal .otlp .AttributeKeyValue ;
1010import io .opentelemetry .sdk .common .InstrumentationScopeInfo ;
1111import io .opentelemetry .sdk .resources .Resource ;
1212import java .nio .ByteBuffer ;
@@ -51,7 +51,7 @@ public interface ProfileData {
5151 List <FunctionData > getFunctionTable ();
5252
5353 /** Lookup table for attributes. */
54- Attributes getAttributeTable ();
54+ List < AttributeKeyValue <?>> getAttributeTable ();
5555
5656 /** Represents a mapping between Attribute Keys and Units. */
5757 List <AttributeUnitData > getAttributeUnits ();
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ static ProfileMarshaler create(ProfileData profileData) {
5151 FunctionMarshaler [] functionMarshalers =
5252 FunctionMarshaler .createRepeated (profileData .getFunctionTable ());
5353 KeyValueMarshaler [] attributeTableMarshalers =
54- KeyValueMarshaler .createForAttributes (profileData .getAttributeTable ());
54+ KeyValueMarshaler .createRepeated (profileData .getAttributeTable ());
5555 AttributeUnitMarshaler [] attributeUnitsMarshalers =
5656 AttributeUnitMarshaler .createRepeated (profileData .getAttributeUnits ());
5757 LinkMarshaler [] linkMarshalers = LinkMarshaler .createRepeated (profileData .getLinkTable ());
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ void compareResourceProfilesMarshaling() {
151151 Collections .emptyList (),
152152 listOf (1 , 2 ),
153153 Collections .emptyList (),
154- Attributes . empty (),
154+ Collections . emptyList (),
155155 Collections .emptyList (),
156156 Collections .emptyList (),
157157 Collections .emptyList (),
You can’t perform that action at this time.
0 commit comments