Skip to content

Commit 48e36e9

Browse files
committed
RUM-9503: Removing deprecated constructors
1 parent 8c83a5b commit 48e36e9

File tree

2 files changed

+0
-134
lines changed

2 files changed

+0
-134
lines changed

integrations/dd-sdk-android-okhttp/api/dd-sdk-android-okhttp.api

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,6 @@ public abstract interface class com/datadog/android/okhttp/trace/TracedRequestLi
9090
}
9191

9292
public class com/datadog/android/okhttp/trace/TracingInterceptor : okhttp3/Interceptor {
93-
public fun <init> ()V
94-
public fun <init> (Ljava/lang/String;)V
95-
public fun <init> (Ljava/lang/String;Lcom/datadog/android/okhttp/trace/TracedRequestListener;)V
96-
public fun <init> (Ljava/lang/String;Lcom/datadog/android/okhttp/trace/TracedRequestListener;Lcom/datadog/android/core/sampling/Sampler;)V
97-
public synthetic fun <init> (Ljava/lang/String;Lcom/datadog/android/okhttp/trace/TracedRequestListener;Lcom/datadog/android/core/sampling/Sampler;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
98-
public fun <init> (Ljava/lang/String;Ljava/util/List;)V
99-
public fun <init> (Ljava/lang/String;Ljava/util/List;Lcom/datadog/android/okhttp/trace/TracedRequestListener;)V
100-
public fun <init> (Ljava/lang/String;Ljava/util/List;Lcom/datadog/android/okhttp/trace/TracedRequestListener;Lcom/datadog/android/core/sampling/Sampler;)V
101-
public synthetic fun <init> (Ljava/lang/String;Ljava/util/List;Lcom/datadog/android/okhttp/trace/TracedRequestListener;Lcom/datadog/android/core/sampling/Sampler;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
102-
public fun <init> (Ljava/lang/String;Ljava/util/Map;)V
103-
public fun <init> (Ljava/lang/String;Ljava/util/Map;Lcom/datadog/android/okhttp/trace/TracedRequestListener;)V
104-
public fun <init> (Ljava/lang/String;Ljava/util/Map;Lcom/datadog/android/okhttp/trace/TracedRequestListener;Lcom/datadog/android/core/sampling/Sampler;)V
105-
public synthetic fun <init> (Ljava/lang/String;Ljava/util/Map;Lcom/datadog/android/okhttp/trace/TracedRequestListener;Lcom/datadog/android/core/sampling/Sampler;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
106-
public fun <init> (Ljava/util/List;)V
107-
public fun <init> (Ljava/util/Map;)V
10893
public fun intercept (Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
10994
protected fun onRequestIntercepted (Lcom/datadog/android/api/feature/FeatureSdkCore;Lokhttp3/Request;Lio/opentracing/Span;Lokhttp3/Response;Ljava/lang/Throwable;)V
11095
}

integrations/dd-sdk-android-okhttp/src/main/kotlin/com/datadog/android/okhttp/trace/TracingInterceptor.kt

Lines changed: 0 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -104,125 +104,6 @@ internal constructor(
104104
onSdkInstanceReady(it as InternalSdkCore)
105105
}
106106

107-
/**
108-
* Creates a [TracingInterceptor] to automatically create a trace around OkHttp [Request]s.
109-
*
110-
* @param sdkInstanceName SDK instance name to bind to, or null to check the default instance.
111-
* Instrumentation won't be working until SDK instance is ready.
112-
* @param tracedHosts a list of all the hosts that you want to be automatically tracked
113-
* by this interceptor with Datadog style headers. If no host is provided (via this argument or global
114-
* configuration [Configuration.Builder.setFirstPartyHosts]) the interceptor won't trace any OkHttp [Request],
115-
* nor propagate tracing information to the backend.
116-
* @param tracedRequestListener a listener for automatically created [Span]s
117-
* @param traceSampler Sampler controlling the sampling of APM traces created for
118-
* auto-instrumented requests. By default it is [DeterministicTraceSampler], which either can accept
119-
* fixed sample rate or can get it dynamically from the provider. Value between `0.0` and
120-
* `100.0`. A value of `0.0` means no trace will be kept, `100.0` means all traces will
121-
* be kept (default value is `100.0`). If there is a parent trace attached to the network span created, then its
122-
* sampling decision will be used instead.
123-
*/
124-
@JvmOverloads
125-
@Deprecated(
126-
message = "This constructor is not going to be accessible anymore in future versions. " +
127-
"Please use the Builder instead.",
128-
replaceWith = ReplaceWith("TracingInterceptor.Builder(tracedHosts).build()")
129-
)
130-
constructor(
131-
sdkInstanceName: String? = null,
132-
tracedHosts: List<String>,
133-
tracedRequestListener: TracedRequestListener = NoOpTracedRequestListener(),
134-
traceSampler: Sampler<Span> = DeterministicTraceSampler(DEFAULT_TRACE_SAMPLE_RATE)
135-
) : this(
136-
sdkInstanceName = sdkInstanceName,
137-
tracedHosts = tracedHosts.associateWith {
138-
setOf(
139-
TracingHeaderType.DATADOG,
140-
TracingHeaderType.TRACECONTEXT
141-
)
142-
},
143-
tracedRequestListener = tracedRequestListener,
144-
traceOrigin = null,
145-
traceSampler = traceSampler,
146-
traceContextInjection = TraceContextInjection.SAMPLED,
147-
redacted404ResourceName = true,
148-
localTracerFactory = DEFAULT_LOCAL_TRACER_FACTORY
149-
)
150-
151-
/**
152-
* Creates a [TracingInterceptor] to automatically create a trace around OkHttp [Request]s.
153-
*
154-
* @param sdkInstanceName SDK instance name to bind to, or null to check the default instance.
155-
* Instrumentation won't be working until SDK instance is ready.
156-
* @param tracedHostsWithHeaderType a list of all the hosts and header types that you want to be automatically tracked
157-
* by this interceptor. If registering a GlobalTracer, the tracer must be configured with
158-
* [AndroidTracer.Builder.setTracingHeaderTypes] containing all the necessary header types configured for OkHttp tracking.
159-
* If no hosts are provided (via this argument or global
160-
* configuration [Configuration.Builder.setFirstPartyHosts] or [Configuration.Builder.setFirstPartyHostsWithHeaderType] )
161-
* the interceptor won't trace any OkHttp [Request], nor propagate tracing information to the backend.
162-
* @param tracedRequestListener a listener for automatically created [Span]s
163-
* @param traceSampler Sampler controlling the sampling of APM traces created for
164-
* auto-instrumented requests. By default it is [DeterministicTraceSampler], which either can accept
165-
* fixed sample rate or can get it dynamically from the provider. Value between `0.0` and
166-
* `100.0`. A value of `0.0` means no trace will be kept, `100.0` means all traces will
167-
* be kept (default value is `100.0`). If there is a parent trace attached to the network span created, then its
168-
* sampling decision will be used instead.
169-
*/
170-
@JvmOverloads
171-
@Deprecated(
172-
message = "This constructor is not going to be accessible anymore in future versions. " +
173-
"Please use the Builder instead.",
174-
replaceWith = ReplaceWith("TracingInterceptor.Builder(tracedHostsWithHeaderType).build()")
175-
)
176-
constructor(
177-
sdkInstanceName: String? = null,
178-
tracedHostsWithHeaderType: Map<String, Set<TracingHeaderType>>,
179-
tracedRequestListener: TracedRequestListener = NoOpTracedRequestListener(),
180-
traceSampler: Sampler<Span> = DeterministicTraceSampler(DEFAULT_TRACE_SAMPLE_RATE)
181-
) : this(
182-
sdkInstanceName = sdkInstanceName,
183-
tracedHosts = tracedHostsWithHeaderType,
184-
tracedRequestListener = tracedRequestListener,
185-
traceOrigin = null,
186-
traceSampler = traceSampler,
187-
traceContextInjection = TraceContextInjection.SAMPLED,
188-
redacted404ResourceName = true,
189-
localTracerFactory = DEFAULT_LOCAL_TRACER_FACTORY
190-
)
191-
192-
/**
193-
* Creates a [TracingInterceptor] to automatically create a trace around OkHttp [Request]s.
194-
*
195-
* @param sdkInstanceName SDK instance name to bind to, or null to check the default instance.
196-
* Instrumentation won't be working until SDK instance is ready.
197-
* @param tracedRequestListener a listener for automatically created [Span]s
198-
* @param traceSampler Sampler controlling the sampling of APM traces created for
199-
* auto-instrumented requests. By default it is [DeterministicTraceSampler], which either can accept
200-
* fixed sample rate or can get it dynamically from the provider. Value between `0.0` and
201-
* `100.0`. A value of `0.0` means no trace will be kept, `100.0` means all traces will
202-
* be kept (default value is `100.0`). If there is a parent trace attached to the network span created, then its
203-
* sampling decision will be used instead.
204-
*/
205-
@JvmOverloads
206-
@Deprecated(
207-
message = "This constructor is not going to be accessible anymore in future versions. " +
208-
"Please use the Builder instead.",
209-
replaceWith = ReplaceWith("TracingInterceptor.Builder(tracedHosts).build()")
210-
)
211-
constructor(
212-
sdkInstanceName: String? = null,
213-
tracedRequestListener: TracedRequestListener = NoOpTracedRequestListener(),
214-
traceSampler: Sampler<Span> = DeterministicTraceSampler(DEFAULT_TRACE_SAMPLE_RATE)
215-
) : this(
216-
sdkInstanceName = sdkInstanceName,
217-
tracedHosts = emptyMap(),
218-
tracedRequestListener = tracedRequestListener,
219-
traceOrigin = null,
220-
traceSampler = traceSampler,
221-
traceContextInjection = TraceContextInjection.SAMPLED,
222-
redacted404ResourceName = true,
223-
localTracerFactory = DEFAULT_LOCAL_TRACER_FACTORY
224-
)
225-
226107
init {
227108
val sdkCore = sdkCoreReference.get() as? FeatureSdkCore
228109

0 commit comments

Comments
 (0)