@@ -14,36 +14,36 @@ class ComponentIdTest {
1414
1515 @ Test
1616 void testStandardTypesUpToDate () {
17- assertThat (StandardComponentId .ExporterType .OTLP_GRPC_SPAN_EXPORTER .toString () )
17+ assertThat (StandardComponentId .ExporterType .OTLP_GRPC_SPAN_EXPORTER .value )
1818 .isEqualTo (
1919 OtelIncubatingAttributes .OtelComponentTypeIncubatingValues .OTLP_GRPC_SPAN_EXPORTER );
20- assertThat (StandardComponentId .ExporterType .OTLP_HTTP_SPAN_EXPORTER .toString () )
20+ assertThat (StandardComponentId .ExporterType .OTLP_HTTP_SPAN_EXPORTER .value )
2121 .isEqualTo (
2222 OtelIncubatingAttributes .OtelComponentTypeIncubatingValues .OTLP_HTTP_SPAN_EXPORTER );
23- assertThat (StandardComponentId .ExporterType .OTLP_HTTP_JSON_SPAN_EXPORTER .toString () )
23+ assertThat (StandardComponentId .ExporterType .OTLP_HTTP_JSON_SPAN_EXPORTER .value )
2424 .isEqualTo (
2525 OtelIncubatingAttributes .OtelComponentTypeIncubatingValues
2626 .OTLP_HTTP_JSON_SPAN_EXPORTER );
27- assertThat (StandardComponentId .ExporterType .OTLP_GRPC_LOG_EXPORTER .toString () )
27+ assertThat (StandardComponentId .ExporterType .OTLP_GRPC_LOG_EXPORTER .value )
2828 .isEqualTo (
2929 OtelIncubatingAttributes .OtelComponentTypeIncubatingValues .OTLP_GRPC_LOG_EXPORTER );
30- assertThat (StandardComponentId .ExporterType .OTLP_HTTP_LOG_EXPORTER .toString () )
30+ assertThat (StandardComponentId .ExporterType .OTLP_HTTP_LOG_EXPORTER .value )
3131 .isEqualTo (
3232 OtelIncubatingAttributes .OtelComponentTypeIncubatingValues .OTLP_HTTP_LOG_EXPORTER );
33- assertThat (StandardComponentId .ExporterType .OTLP_HTTP_JSON_LOG_EXPORTER .toString () )
33+ assertThat (StandardComponentId .ExporterType .OTLP_HTTP_JSON_LOG_EXPORTER .value )
3434 .isEqualTo (
3535 OtelIncubatingAttributes .OtelComponentTypeIncubatingValues .OTLP_HTTP_JSON_LOG_EXPORTER );
3636 // TODO: uncomment as soon as available in semconv release
37- // assertThat(ComponentId.StandardType.OTLP_GRPC_METRIC_EXPORTER.toString() )
37+ // assertThat(ComponentId.StandardType.OTLP_GRPC_METRIC_EXPORTER.value )
3838 //
3939 // .isEqualTo(OtelIncubatingAttributes.OtelComponentTypeIncubatingValues.OTLP_GRPC_METRIC_EXPORTER);
40- // assertThat(ComponentId.StandardType.OTLP_HTTP_METRIC_EXPORTER.toString() )
40+ // assertThat(ComponentId.StandardType.OTLP_HTTP_METRIC_EXPORTER.value )
4141 //
4242 // .isEqualTo(OtelIncubatingAttributes.OtelComponentTypeIncubatingValues.OTLP_HTTP_METRIC_EXPORTER);
43- // assertThat(ComponentId.StandardType.OTLP_HTTP_JSON_METRIC_EXPORTER.toString() )
43+ // assertThat(ComponentId.StandardType.OTLP_HTTP_JSON_METRIC_EXPORTER.value )
4444 //
4545 // .isEqualTo(OtelIncubatingAttributes.OtelComponentTypeIncubatingValues.OTLP_HTTP_JSON_METRIC_EXPORTER);
46- // assertThat(ComponentId.StandardType.ZIPKIN_HTTP_SPAN_EXPORTER.toString() )
46+ // assertThat(ComponentId.StandardType.ZIPKIN_HTTP_SPAN_EXPORTER.value )
4747 //
4848 // .isEqualTo(OtelIncubatingAttributes.OtelComponentTypeIncubatingValues.ZIPKIN_HTTP_SPAN_EXPORTER);
4949 }
0 commit comments