File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
exporters/common/src/main/java/io/opentelemetry/exporter/internal
sdk/common/src/main/java/io/opentelemetry/sdk/internal Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public GrpcExporter(
4848 StandardComponentId componentId ,
4949 Supplier <MeterProvider > meterProviderSupplier ,
5050 String endpoint ) {
51- this .type = componentId .getStandardType ().signal ().toString ();
51+ this .type = componentId .getStandardType ().signal ().logFriendlyName ();
5252 this .grpcSender = grpcSender ;
5353 this .exporterMetrics =
5454 new ExporterInstrumentation (
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public HttpExporter(
4545 Supplier <MeterProvider > meterProviderSupplier ,
4646 InternalTelemetryVersion internalTelemetryVersion ,
4747 String endpoint ) {
48- this .type = componentId .getStandardType ().signal ().toString ();
48+ this .type = componentId .getStandardType ().signal ().logFriendlyName ();
4949 this .httpSender = httpSender ;
5050 this .exporterMetrics =
5151 new ExporterInstrumentation (
Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ public enum Signal {
2525 this .metricUnit = metricUnit ;
2626 }
2727
28- @ Override
29- public String toString () {
28+ public String logFriendlyName () {
3029 return name ().toLowerCase (Locale .ENGLISH );
3130 }
3231
You can’t perform that action at this time.
0 commit comments