public class SpringHttpClientAttributesGetter extends Object implements io.opentelemetry.instrumentation.api.instrumenter.http.HttpClientAttributesGetter<org.springframework.cloud.sleuth.http.HttpClientRequest,org.springframework.cloud.sleuth.http.HttpClientResponse>
| Constructor and Description |
|---|
SpringHttpClientAttributesGetter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFlavor(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest,
org.springframework.cloud.sleuth.http.HttpClientResponse httpClientResponse) |
String |
getMethod(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest) |
List<String> |
getRequestHeader(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest,
String name) |
List<String> |
getResponseHeader(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest,
org.springframework.cloud.sleuth.http.HttpClientResponse httpClientResponse,
String name) |
Integer |
getStatusCode(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest,
org.springframework.cloud.sleuth.http.HttpClientResponse httpClientResponse,
Throwable error) |
String |
getUrl(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest) |
@Nullable public String getUrl(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest)
getUrl in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpClientAttributesGetter<org.springframework.cloud.sleuth.http.HttpClientRequest,org.springframework.cloud.sleuth.http.HttpClientResponse>@Nullable public String getFlavor(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest, @Nullable org.springframework.cloud.sleuth.http.HttpClientResponse httpClientResponse)
getFlavor in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpClientAttributesGetter<org.springframework.cloud.sleuth.http.HttpClientRequest,org.springframework.cloud.sleuth.http.HttpClientResponse>public String getMethod(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest)
getMethod in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<org.springframework.cloud.sleuth.http.HttpClientRequest,org.springframework.cloud.sleuth.http.HttpClientResponse>public List<String> getRequestHeader(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest, String name)
getRequestHeader in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<org.springframework.cloud.sleuth.http.HttpClientRequest,org.springframework.cloud.sleuth.http.HttpClientResponse>public Integer getStatusCode(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest, org.springframework.cloud.sleuth.http.HttpClientResponse httpClientResponse, Throwable error)
getStatusCode in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<org.springframework.cloud.sleuth.http.HttpClientRequest,org.springframework.cloud.sleuth.http.HttpClientResponse>public List<String> getResponseHeader(org.springframework.cloud.sleuth.http.HttpClientRequest httpClientRequest, org.springframework.cloud.sleuth.http.HttpClientResponse httpClientResponse, String name)
getResponseHeader in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<org.springframework.cloud.sleuth.http.HttpClientRequest,org.springframework.cloud.sleuth.http.HttpClientResponse>Copyright © 2023 Pivotal Software, Inc.. All rights reserved.