public class RequestTelemetryContext
extends java.lang.Object
| Constructor and Description |
|---|
RequestTelemetryContext(long ticks)
Constructs new RequestTelemetryContext object.
|
RequestTelemetryContext(long ticks,
javax.servlet.http.HttpServletRequest servletRequest)
Constructs new RequestTelemetryContext object.
|
| Modifier and Type | Method and Description |
|---|---|
CorrelationContext |
getCorrelationContext()
Gets the correlation context associated with the request
|
com.microsoft.applicationinsights.telemetry.RequestTelemetry |
getHttpRequestTelemetry()
Gets the http request telemetry associated with the context.
|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest() |
boolean |
getIsNewSession()
Gets a value indicating whether the session is new or not.
|
long |
getRequestStartTimeTicks()
Gets the request start time in ticks
|
SessionCookie |
getSessionCookie()
Gets the session cookie.
|
int |
getTraceflag() |
Tracestate |
getTracestate() |
UserCookie |
getUserCookie()
Gets the user cookie.
|
int |
incrementChildId() |
void |
setIsNewSession(boolean isNewSession)
Sets if the session is new or not.
|
void |
setSessionCookie(SessionCookie sessionCookie)
Sets the session cookie.
|
void |
setTraceflag(int traceflag) |
void |
setTracestate(Tracestate tracestate) |
void |
setUserCookie(UserCookie userCookie)
Sets the user cookie.
|
public RequestTelemetryContext(long ticks)
ticks - The time in tickspublic RequestTelemetryContext(long ticks,
javax.servlet.http.HttpServletRequest servletRequest)
ticks - The time in ticksservletRequest - The servlet requestpublic Tracestate getTracestate()
public void setTracestate(Tracestate tracestate)
public int getTraceflag()
public void setTraceflag(int traceflag)
public CorrelationContext getCorrelationContext()
public com.microsoft.applicationinsights.telemetry.RequestTelemetry getHttpRequestTelemetry()
public long getRequestStartTimeTicks()
public void setSessionCookie(SessionCookie sessionCookie)
sessionCookie - The session cookie.public SessionCookie getSessionCookie()
public void setUserCookie(UserCookie userCookie)
userCookie - The user cookie.public UserCookie getUserCookie()
public void setIsNewSession(boolean isNewSession)
isNewSession - Indicates whether the session is new or not.public boolean getIsNewSession()
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public int incrementChildId()