public class SpansContainer extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addHttpSpan(Long startTime,
software.amazon.awssdk.core.interceptor.Context.AfterExecution context,
software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes) |
void |
addHttpSpan(Long startTime,
org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.HttpResponse response) |
void |
addHttpSpan(Long startTime,
com.amazonaws.Request<?> request,
com.amazonaws.Response<?> response) |
protected static <T> T |
callIfVerbose(Callable<T> method) |
void |
clear() |
void |
end() |
void |
end(Object response) |
void |
endWithException(Throwable e) |
protected static String |
extractBodyFromRequest(org.apache.http.client.methods.HttpUriRequest request) |
protected static String |
extractBodyFromRequest(Optional<software.amazon.awssdk.core.sync.RequestBody> request) |
protected static String |
extractBodyFromRequest(com.amazonaws.Request<?> request) |
protected static String |
extractBodyFromResponse(org.apache.http.HttpResponse response) |
protected static String |
extractBodyFromResponse(com.amazonaws.Response response) |
protected static String |
extractBodyFromResponse(software.amazon.awssdk.core.SdkResponse response) |
protected static String |
extractBodyFromStream(InputStream stream) |
List<Reportable> |
getAllCollectedSpans() |
Span |
getEndSpan() |
List<HttpSpan> |
getHttpSpans() |
static SpansContainer |
getInstance() |
String |
getPatchedRoot() |
Span |
getStartFunctionSpan() |
void |
init(Map<String,String> env,
Reporter reporter,
com.amazonaws.services.lambda.runtime.Context context,
Object event) |
Reportable |
reduceSpanSize(Reportable span,
boolean hasError) |
void |
start() |
public static SpansContainer getInstance()
public void clear()
public void init(Map<String,String> env, Reporter reporter, com.amazonaws.services.lambda.runtime.Context context, Object event)
public void start()
public void end(Object response) throws IOException
IOExceptionpublic void endWithException(Throwable e) throws IOException
IOExceptionpublic void end()
throws IOException
IOExceptionpublic Span getStartFunctionSpan()
public List<Reportable> getAllCollectedSpans()
public Span getEndSpan()
public void addHttpSpan(Long startTime, org.apache.http.client.methods.HttpUriRequest request, org.apache.http.HttpResponse response)
public void addHttpSpan(Long startTime, com.amazonaws.Request<?> request, com.amazonaws.Response<?> response)
public void addHttpSpan(Long startTime, software.amazon.awssdk.core.interceptor.Context.AfterExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
protected static String extractBodyFromRequest(com.amazonaws.Request<?> request)
protected static String extractBodyFromRequest(Optional<software.amazon.awssdk.core.sync.RequestBody> request)
protected static String extractBodyFromRequest(org.apache.http.client.methods.HttpUriRequest request) throws Exception
Exceptionprotected static String extractBodyFromResponse(org.apache.http.HttpResponse response) throws IOException
IOExceptionprotected static String extractBodyFromResponse(com.amazonaws.Response response)
protected static String extractBodyFromResponse(software.amazon.awssdk.core.SdkResponse response)
protected static String extractBodyFromStream(InputStream stream)
public String getPatchedRoot()
protected static <T> T callIfVerbose(Callable<T> method)
public Reportable reduceSpanSize(Reportable span, boolean hasError)
Copyright © 2024 Lumigo. All rights reserved.