Skip to content

Commit c1e9dbf

Browse files
authored
Move EmbraceCustomPathException back to original package (#2856) (#2857)
Restore the old package name of EmbraceCustomPathException since it's part of the public API
1 parent 59e32e0 commit c1e9dbf

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

embrace-android-instrumentation-okhttp/src/main/java/io/embrace/android/embracesdk/internal/instrumentation/okhttp/InterceptorType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal enum class InterceptorType {
1313
* OkHttp network interceptors are added almost at the end of stack, they are closer to "the wire"
1414
* so they are not able to see network errors.
1515
*
16-
* We use the [EmbraceCustomPathException] to capture the custom path added in the interceptor
16+
* We use the [io.embrace.android.embracesdk.okhttp3.EmbraceCustomPathException] to capture the custom path added in the interceptor
1717
* chain process for client errors on requests to a generic URL like a GraphQL endpoint.
1818
*/
1919
APPLICATION,

embrace-android-instrumentation-okhttp/src/main/java/io/embrace/android/embracesdk/internal/instrumentation/okhttp/OkHttpDataSource.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import io.embrace.android.embracesdk.internal.instrumentation.network.NetworkReq
1212
import io.embrace.android.embracesdk.internal.instrumentation.network.TraceparentGenerator
1313
import io.embrace.android.embracesdk.internal.instrumentation.network.getOverriddenURLString
1414
import io.embrace.android.embracesdk.internal.logging.InternalErrorType
15+
import io.embrace.android.embracesdk.okhttp3.EmbraceCustomPathException
1516
import okhttp3.Interceptor
1617
import okhttp3.Request
1718
import okhttp3.Response

embrace-android-instrumentation-okhttp/src/main/java/io/embrace/android/embracesdk/internal/instrumentation/okhttp/EmbraceCustomPathException.kt renamed to embrace-android-instrumentation-okhttp/src/main/java/io/embrace/android/embracesdk/okhttp3/EmbraceCustomPathException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.embrace.android.embracesdk.internal.instrumentation.okhttp
1+
package io.embrace.android.embracesdk.okhttp3
22

33
import java.io.IOException
44

embrace-android-instrumentation-okhttp/src/test/kotlin/io/embrace/android/embracesdk/internal/instrumentation/okhttp/OkHttpDataSourceTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import io.embrace.android.embracesdk.internal.config.remote.NetworkCaptureRuleRe
1414
import io.embrace.android.embracesdk.internal.instrumentation.network.NetworkCaptureDataSourceImpl
1515
import io.embrace.android.embracesdk.internal.instrumentation.network.NetworkRequestDataSourceImpl
1616
import io.embrace.android.embracesdk.internal.utils.NetworkUtils.getValidTraceId
17+
import io.embrace.android.embracesdk.okhttp3.EmbraceCustomPathException
1718
import io.embrace.opentelemetry.kotlin.semconv.ErrorAttributes
1819
import io.embrace.opentelemetry.kotlin.semconv.ExceptionAttributes
1920
import io.embrace.opentelemetry.kotlin.semconv.HttpAttributes

0 commit comments

Comments
 (0)