public final class TelemetryContext
extends java.lang.Object
Constructor and Description |
---|
TelemetryContext()
Default Ctor
|
Modifier and Type | Method and Description |
---|---|
ComponentContext |
getComponent()
Gets the object describing the component (application) tracked by this instance.
|
DeviceContext |
getDevice()
Gets the object describing the device tracked by this instance.
|
java.lang.String |
getInstrumentationKey()
Gets the default instrumentation key for all
Telemetry
objects logged in this TelemetryContext . |
InternalContext |
getInternal() |
LocationContext |
getLocation()
Gets the object describing a location tracked by this instance.
|
OperationContext |
getOperation()
Gets the current operation (typically an HTTP request).
|
java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> |
getProperties()
Gets a dictionary of application-defined property values.
|
SessionContext |
getSession()
Gets the object describing a user session tracked by this instance.
|
java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> |
getTags()
Gets a dictionary of context tags.
|
UserContext |
getUser()
Gets the object describing a user tracked by this instance.
|
void |
initialize(TelemetryContext source) |
void |
setInstrumentationKey(java.lang.String instrumentationKey)
Sets the default instrumentation key for all
Telemetry
objects logged in this TelemetryContext . |
public ComponentContext getComponent()
public DeviceContext getDevice()
public SessionContext getSession()
public UserContext getUser()
public OperationContext getOperation()
public LocationContext getLocation()
public java.lang.String getInstrumentationKey()
Telemetry
objects logged in this TelemetryContext
.
By default, this property is initialized with the InstrumentationKey value which is in
TelemetryConfiguration
of the 'Active' instance.
You can specify it for all telemetry tracked via a particular TelemetryClient
or for a specific Telemetry
public void setInstrumentationKey(java.lang.String instrumentationKey)
Telemetry
objects logged in this TelemetryContext
.
By default, this property is initialized with the InstrumentationKey value which is in
TelemetryConfiguration
of the 'Active' instance.
You can specify it for all telemetry tracked via a particular TelemetryClient
or for a specific Telemetry
instrumentationKey
- The instrumentation keypublic java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> getProperties()
public java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> getTags()
public void initialize(TelemetryContext source)
public InternalContext getInternal()