Skip to content

Commit

Permalink
Feat: Add secondary constructor to SentryOkHttpInterceptor (#1491)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejwalkowiak committed May 27, 2021
1 parent d58fbdb commit 769ce4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,5 +1,6 @@
# Unreleased

* Feat: Add secondary constructor to SentryOkHttpInterceptor (#1491)
* Feat: Add option to enable debug mode in Log4j2 integration (#1492)

# 5.0.0-beta.5
Expand Down
1 change: 1 addition & 0 deletions sentry-android-okhttp/api/sentry-android-okhttp.api
Expand Up @@ -10,6 +10,7 @@ public final class io/sentry/android/okhttp/SentryOkHttpInterceptor : okhttp3/In
public fun <init> ()V
public fun <init> (Lio/sentry/IHub;Lio/sentry/android/okhttp/SentryOkHttpInterceptor$BeforeSpanCallback;)V
public synthetic fun <init> (Lio/sentry/IHub;Lio/sentry/android/okhttp/SentryOkHttpInterceptor$BeforeSpanCallback;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun <init> (Lio/sentry/android/okhttp/SentryOkHttpInterceptor$BeforeSpanCallback;)V
public fun intercept (Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
}

Expand Down
Expand Up @@ -15,6 +15,8 @@ class SentryOkHttpInterceptor(
private val beforeSpan: BeforeSpanCallback? = null
) : Interceptor {

constructor(beforeSpan: BeforeSpanCallback) : this(HubAdapter.getInstance(), beforeSpan)

override fun intercept(chain: Interceptor.Chain): Response {
var request = chain.request()

Expand Down

0 comments on commit 769ce4b

Please sign in to comment.