public class SpansContainer extends Object
| Modifier and Type | Method and Description |
|---|---|
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(InputStream stream) |
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) |
List<Object> |
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) |
Object |
reduceSpanSize(Object 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 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)
protected static String extractBodyFromRequest(com.amazonaws.Request<?> request)
protected static String extractBodyFromRequest(org.apache.http.client.methods.HttpUriRequest request) throws Exception
Exceptionprotected static String extractBodyFromRequest(InputStream stream)
protected static String extractBodyFromResponse(org.apache.http.HttpResponse response) throws IOException
IOExceptionprotected static String extractBodyFromResponse(com.amazonaws.Response response)
public String getPatchedRoot()
protected static <T> T callIfVerbose(Callable<T> method)
Copyright © 2023 Lumigo. All rights reserved.