public class WebRequestTrackingTelemetryModule extends java.lang.Object implements WebTelemetryModule, com.microsoft.applicationinsights.extensibility.TelemetryModule
| Modifier and Type | Field and Description |
|---|---|
boolean |
isW3CEnabled |
| Constructor and Description |
|---|
WebRequestTrackingTelemetryModule() |
WebRequestTrackingTelemetryModule(java.util.Map<java.lang.String,java.lang.String> configurationData)
Ctor that parses incoming configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(com.microsoft.applicationinsights.TelemetryConfiguration configuration)
Initializes the telemetry module with the given telemetry configuration.
|
void |
onBeginRequest(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
Begin request processing.
|
void |
onEndRequest(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
End request processing.
|
void |
setEnableBackCompatibilityForW3C(boolean enableBackCompatibilityForW3C)
Used for SpringBoot setttings to propogate the switch for W3C to TracecontextCorrelation class
|
public WebRequestTrackingTelemetryModule()
public WebRequestTrackingTelemetryModule(java.util.Map<java.lang.String,java.lang.String> configurationData)
configurationData - SDK config Objectpublic void setEnableBackCompatibilityForW3C(boolean enableBackCompatibilityForW3C)
enableBackCompatibilityForW3C - public void onBeginRequest(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
onBeginRequest in interface WebTelemetryModulereq - The request to processres - The response to modifypublic void onEndRequest(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
onEndRequest in interface WebTelemetryModulereq - The request to processres - The response to modifypublic void initialize(com.microsoft.applicationinsights.TelemetryConfiguration configuration)
initialize in interface com.microsoft.applicationinsights.extensibility.TelemetryModuleconfiguration - The telemetry configuration.