|
22 | 22 | import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
|
23 | 23 | import javax.net.ssl.SSLSocketFactory;
|
24 | 24 |
|
25 |
| -/** Entrypoint for tracing Volley clients. */ |
| 25 | +/** |
| 26 | + * Entrypoint for tracing Volley clients. |
| 27 | + * |
| 28 | + * @deprecated This API is deprecated and will be removed in a future release. |
| 29 | + */ |
| 30 | +@Deprecated |
26 | 31 | public final class VolleyTracing {
|
27 | 32 |
|
28 |
| - /** Returns a new {@link VolleyTracing} configured with the given {@link SplunkRum}. */ |
| 33 | + /** |
| 34 | + * Returns a new {@link VolleyTracing} configured with the given {@link SplunkRum}. |
| 35 | + * |
| 36 | + * @deprecated This method is deprecated and will be removed in a future release. |
| 37 | + */ |
| 38 | + @Deprecated |
29 | 39 | public static VolleyTracing create(SplunkRum splunkRum) {
|
30 | 40 | return create(splunkRum.getOpenTelemetry());
|
31 | 41 | }
|
32 | 42 |
|
33 |
| - /** Returns a new {@link VolleyTracing} configured with the given {@link OpenTelemetry}. */ |
| 43 | + /** |
| 44 | + * Returns a new {@link VolleyTracing} configured with the given {@link OpenTelemetry}. |
| 45 | + * |
| 46 | + * @deprecated This method is deprecated and will be removed in a future release. |
| 47 | + */ |
| 48 | + @Deprecated |
34 | 49 | public static VolleyTracing create(OpenTelemetry openTelemetry) {
|
35 | 50 | return builder(openTelemetry).build();
|
36 | 51 | }
|
37 | 52 |
|
38 |
| - /** Returns a new {@link VolleyTracingBuilder} configured with the given {@link SplunkRum}. */ |
| 53 | + /** |
| 54 | + * Returns a new {@link VolleyTracingBuilder} configured with the given {@link SplunkRum}. |
| 55 | + * |
| 56 | + * @deprecated This method is deprecated and will be removed in a future release. |
| 57 | + */ |
| 58 | + @Deprecated |
39 | 59 | public static VolleyTracingBuilder builder(SplunkRum splunkRum) {
|
40 | 60 | return new VolleyTracingBuilder(splunkRum.getOpenTelemetry());
|
41 | 61 | }
|
42 | 62 |
|
43 | 63 | /**
|
44 | 64 | * Returns a new {@link VolleyTracingBuilder} configured with the given {@link OpenTelemetry}.
|
| 65 | + * |
| 66 | + * @deprecated This method is deprecated and will be removed in a future release. |
45 | 67 | */
|
| 68 | + @Deprecated |
46 | 69 | public static VolleyTracingBuilder builder(OpenTelemetry openTelemetry) {
|
47 | 70 | return new VolleyTracingBuilder(openTelemetry);
|
48 | 71 | }
|
49 | 72 |
|
50 | 73 | private final Instrumenter<RequestWrapper, HttpResponse> instrumenter;
|
51 | 74 |
|
| 75 | + /** |
| 76 | + * @deprecated This method is deprecated and will be removed in a future release. |
| 77 | + */ |
| 78 | + @Deprecated |
52 | 79 | VolleyTracing(Instrumenter<RequestWrapper, HttpResponse> instrumenter) {
|
53 | 80 | this.instrumenter = instrumenter;
|
54 | 81 | }
|
55 | 82 |
|
56 |
| - /** Returns a new {@link HurlStack} capable of tracing requests. */ |
| 83 | + /** |
| 84 | + * Returns a new {@link HurlStack} capable of tracing requests. |
| 85 | + * |
| 86 | + * @deprecated This method is deprecated and will be removed in a future release. |
| 87 | + */ |
| 88 | + @Deprecated |
57 | 89 | public HurlStack newHurlStack() {
|
58 | 90 | return new TracingHurlStack(instrumenter);
|
59 | 91 | }
|
60 | 92 |
|
61 | 93 | /**
|
62 | 94 | * Returns a new {@link HurlStack} capable of tracing requests configured with given {@link
|
63 | 95 | * HurlStack.UrlRewriter}.
|
| 96 | + * |
| 97 | + * @deprecated This method is deprecated and will be removed in a future release. |
64 | 98 | */
|
| 99 | + @Deprecated |
65 | 100 | public HurlStack newHurlStack(HurlStack.UrlRewriter urlRewriter) {
|
66 | 101 | return new TracingHurlStack(instrumenter, urlRewriter);
|
67 | 102 | }
|
68 | 103 |
|
69 | 104 | /**
|
70 | 105 | * Returns a new {@link HurlStack} capable of tracing requests configured with given {@link
|
71 | 106 | * HurlStack.UrlRewriter} and {@link SSLSocketFactory}.
|
| 107 | + * |
| 108 | + * @deprecated This method is deprecated and will be removed in a future release. |
72 | 109 | */
|
| 110 | + @Deprecated |
73 | 111 | public HurlStack newHurlStack(
|
74 | 112 | HurlStack.UrlRewriter urlRewriter, SSLSocketFactory sslSocketFactory) {
|
75 | 113 | return new TracingHurlStack(instrumenter, urlRewriter, sslSocketFactory);
|
|
0 commit comments