Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
senthuran16 authored and Senthuran Ambalavanar committed Oct 23, 2023
1 parent 6490b6e commit 0730eb6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ public static boolean telemetryEnabled() {

/**
* Gets the tracer provider resource with the provided default service name.
*
* @param defaultServiceName Default service name.
* @return Tracer provider resource.
*/
Expand All @@ -262,7 +263,7 @@ public static Resource getTracerProviderResource(String defaultServiceName) {
provided via configuration, the value provided via environment variable will overwrite that. */
String environmentVariableValue = System.getenv(OTEL_RESOURCE_ATTRIBUTES_ENVIRONMENT_VARIABLE_NAME);

Check warning on line 264 in components/apimgt/org.wso2.carbon.apimgt.tracing/src/main/java/org/wso2/carbon/apimgt/tracing/telemetry/TelemetryUtil.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.tracing/src/main/java/org/wso2/carbon/apimgt/tracing/telemetry/TelemetryUtil.java#L264

Added line #L264 was not covered by tests
if (environmentVariableValue != null) {
String[] resourceAttributes = StringUtils.split(environmentVariableValue,",");
String[] resourceAttributes = StringUtils.split(environmentVariableValue, ",");

Check warning on line 266 in components/apimgt/org.wso2.carbon.apimgt.tracing/src/main/java/org/wso2/carbon/apimgt/tracing/telemetry/TelemetryUtil.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.tracing/src/main/java/org/wso2/carbon/apimgt/tracing/telemetry/TelemetryUtil.java#L266

Added line #L266 was not covered by tests
for (String keyValuePair : resourceAttributes) {
String[] keyValue = StringUtils.split(keyValuePair, "=");
otelResourceAttributes.put(keyValue[0], keyValue[1]);

Check warning on line 269 in components/apimgt/org.wso2.carbon.apimgt.tracing/src/main/java/org/wso2/carbon/apimgt/tracing/telemetry/TelemetryUtil.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.tracing/src/main/java/org/wso2/carbon/apimgt/tracing/telemetry/TelemetryUtil.java#L268-L269

Added lines #L268 - L269 were not covered by tests
Expand Down

0 comments on commit 0730eb6

Please sign in to comment.