Package io.sentry.spring7.tracing
Class SentrySpanClientHttpRequestInterceptor
java.lang.Object
io.sentry.spring7.tracing.SentrySpanClientHttpRequestInterceptor
- All Implemented Interfaces:
ClientHttpRequestInterceptor
public class SentrySpanClientHttpRequestInterceptor
extends Object
implements ClientHttpRequestInterceptor
-
Constructor Summary
ConstructorsConstructorDescriptionSentrySpanClientHttpRequestInterceptor(@NotNull io.sentry.IScopes scopes) SentrySpanClientHttpRequestInterceptor(@NotNull io.sentry.IScopes scopes, @org.jetbrains.annotations.NotNull boolean isRestTemplate) -
Method Summary
Modifier and TypeMethodDescription@NotNull ClientHttpResponseintercept(@NotNull HttpRequest request, @org.jetbrains.annotations.NotNull byte[] body, @NotNull ClientHttpRequestExecution execution) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.client.ClientHttpRequestInterceptor
andThen, apply
-
Constructor Details
-
SentrySpanClientHttpRequestInterceptor
public SentrySpanClientHttpRequestInterceptor(@NotNull @NotNull io.sentry.IScopes scopes) -
SentrySpanClientHttpRequestInterceptor
public SentrySpanClientHttpRequestInterceptor(@NotNull @NotNull io.sentry.IScopes scopes, @NotNull @org.jetbrains.annotations.NotNull boolean isRestTemplate)
-
-
Method Details
-
intercept
@NotNull public @NotNull ClientHttpResponse intercept(@NotNull @NotNull HttpRequest request, @NotNull @org.jetbrains.annotations.NotNull byte[] body, @NotNull @NotNull ClientHttpRequestExecution execution) throws IOException - Specified by:
interceptin interfaceClientHttpRequestInterceptor- Throws:
IOException
-