public class SpringHttpServerAttributesGetter extends Object implements io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest,org.springframework.cloud.sleuth.http.HttpServerResponse>
| Constructor and Description |
|---|
SpringHttpServerAttributesGetter() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getHttpRequestHeader(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest,
String name) |
String |
getHttpRequestMethod(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest) |
List<String> |
getHttpResponseHeader(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest,
org.springframework.cloud.sleuth.http.HttpServerResponse httpServerResponse,
String name) |
Integer |
getHttpResponseStatusCode(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest,
org.springframework.cloud.sleuth.http.HttpServerResponse httpServerResponse,
Throwable error) |
String |
getHttpRoute(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest) |
String |
getUrlPath(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest) |
String |
getUrlQuery(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest) |
String |
getUrlScheme(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest) |
@Nullable public String getHttpRoute(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest)
getHttpRoute in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest,org.springframework.cloud.sleuth.http.HttpServerResponse>@Nullable public String getUrlScheme(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest)
getUrlScheme in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest,org.springframework.cloud.sleuth.http.HttpServerResponse>getUrlScheme in interface io.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest>public String getUrlPath(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest)
getUrlPath in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest,org.springframework.cloud.sleuth.http.HttpServerResponse>getUrlPath in interface io.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest>public String getUrlQuery(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest)
getUrlQuery in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest,org.springframework.cloud.sleuth.http.HttpServerResponse>getUrlQuery in interface io.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest>@Nullable public String getHttpRequestMethod(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest)
getHttpRequestMethod in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest,org.springframework.cloud.sleuth.http.HttpServerResponse>public List<String> getHttpRequestHeader(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest, String name)
getHttpRequestHeader in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest,org.springframework.cloud.sleuth.http.HttpServerResponse>public Integer getHttpResponseStatusCode(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest, org.springframework.cloud.sleuth.http.HttpServerResponse httpServerResponse, Throwable error)
getHttpResponseStatusCode in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest,org.springframework.cloud.sleuth.http.HttpServerResponse>public List<String> getHttpResponseHeader(org.springframework.cloud.sleuth.http.HttpServerRequest httpServerRequest, org.springframework.cloud.sleuth.http.HttpServerResponse httpServerResponse, String name)
getHttpResponseHeader in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<org.springframework.cloud.sleuth.http.HttpServerRequest,org.springframework.cloud.sleuth.http.HttpServerResponse>Copyright © 2023 Pivotal Software, Inc.. All rights reserved.