newrelic-telemetry-sdk-java icon indicating copy to clipboard operation
newrelic-telemetry-sdk-java copied to clipboard

Cannot include both dependencies `telemetry-http-okhttp` and `telemetry-core` in `build.gradle`

Open NipunaMadhushan opened this issue 7 months ago • 2 comments

implementation ("com.newrelic.telemetry:telemetry-http-okhttp:0.16.0")
implementation ("com.newrelic.telemetry:telemetry-core:0.16.0")

When we include the above dependencies in build.gradle, I get the following error.

error: module io.ballerina.observe.extension.newrelic reads package com.newrelic.telemetry from both telemetry.core and com.newrelic.telemetry

Error says that both the dependecncies contains com.newrelic.telemetry package. I have noticed that https://javadoc.io/doc/com.newrelic.telemetry/telemetry-core/latest/index.html and https://javadoc.io/doc/com.newrelic.telemetry/telemetry-http-okhttp/latest/com/newrelic/telemetry/package-summary.html have same package names (com.newrelic.telemetry). Because of this, we cannot use both dependencies together.

NipunaMadhushan avatar Nov 14 '23 05:11 NipunaMadhushan