-
Notifications
You must be signed in to change notification settings - Fork 92
ApplicationInsights Telemetry_Context
Responsible for managing the context to send along with all telemetry items.
- Class name: Telemetry_Context
- Namespace: ApplicationInsights
private string $_instrumentationKey
The instrumentation key
- Visibility: private
private \ApplicationInsights\ApplicationInsights\Channel\Contracts\Device $_deviceContext
The device context
- Visibility: private
private \ApplicationInsights\ApplicationInsights\Channel\Contracts\Application $_applicationContext
The application context
- Visibility: private
private \ApplicationInsights\ApplicationInsights\Channel\Contracts\User $_userContext
The user context
- Visibility: private
private \ApplicationInsights\ApplicationInsights\Channel\Contracts\Location $_locationContext
The location context
- Visibility: private
private \ApplicationInsights\ApplicationInsights\Channel\Contracts\Operation $_operationContext
The operation context
- Visibility: private
private \ApplicationInsights\ApplicationInsights\Channel\Contracts\Session $_sessionContext
The session context
- Visibility: private
private array $_properties
Additional custom properties array.
- Visibility: private
mixed ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::__construct()()
Initializes a new TelemetryContext.
- Visibility: public
string ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::getInstrumentationKey()()
The instrumentation key for your Application Insights application.
- Visibility: public
mixed ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::setInstrumentationKey()(string $instrumentationKey)
Sets the instrumetation key on the context. This is the key for you application in Application Insights.
- Visibility: public
- $instrumentationKey string - <p>(Guid)</p>
\ApplicationInsights\ApplicationInsights\Channel\Contracts\Device ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::getDeviceContext()()
The device context object. Allows you to set properties that will be attached to all telemetry about the device.
- Visibility: public
mixed ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::setDeviceContext()(\ApplicationInsights\ApplicationInsights\ApplicationInsights\Channel\Contracts\Device $deviceContext)
Sets device context object. Allows you to set properties that will be attached to all telemetry about the device.
- Visibility: public
- $deviceContext ApplicationInsights\ApplicationInsights\ApplicationInsights\Channel\Contracts\Device
\ApplicationInsights\ApplicationInsights\Channel\Contracts\Application ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::getApplicationContext()()
The application context object. Allows you to set properties that will be attached to all telemetry about the application.
- Visibility: public
mixed ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::setApplicationContext()(\ApplicationInsights\ApplicationInsights\Channel\Contracts\Application $applicationContext)
Sets application context object. Allows you to set properties that will be attached to all telemetry about the application.
- Visibility: public
- $applicationContext ApplicationInsights\ApplicationInsights\Channel\Contracts\Application
\ApplicationInsights\ApplicationInsights\Channel\Contracts\User ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::getUserContext()()
The user context object. Allows you to set properties that will be attached to all telemetry about the user.
- Visibility: public
mixed ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::setUserContext()(\ApplicationInsights\ApplicationInsights\Channel\Contracts\User $userContext)
Set user context object. Allows you to set properties that will be attached to all telemetry about the user.
- Visibility: public
- $userContext ApplicationInsights\ApplicationInsights\Channel\Contracts\User
\ApplicationInsights\ApplicationInsights\Channel\Contracts\Location ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::getLocationContext()()
The location context object. Allows you to set properties that will be attached to all telemetry about the location.
- Visibility: public
mixed ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::setLocationContext()(\ApplicationInsights\ApplicationInsights\Channel\Contracts\Location $locationContext)
Set location context object. Allows you to set properties that will be attached to all telemetry about the location.
- Visibility: public
- $locationContext ApplicationInsights\ApplicationInsights\Channel\Contracts\Location
\ApplicationInsights\ApplicationInsights\Channel\Contracts\Location ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::getOperationContext()()
The operation context object. Allows you to set properties that will be attached to all telemetry about the operation.
- Visibility: public
mixed ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::setOperationContext()(\ApplicationInsights\ApplicationInsights\Channel\Contracts\Operation $operationContext)
Set operation context object. Allows you to set properties that will be attached to all telemetry about the operation.
- Visibility: public
- $operationContext ApplicationInsights\ApplicationInsights\Channel\Contracts\Operation
\ApplicationInsights\ApplicationInsights\Channel\Contracts\Session ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::getSessionContext()()
The session context object. Allows you to set properties that will be attached to all telemetry about the session.
- Visibility: public
mixed ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::setSessionContext()(\ApplicationInsights\ApplicationInsights\Channel\Contracts\Session $sessionContext)
Set session context object. Allows you to set properties that will be attached to all telemetry about the session.
- Visibility: public
- $sessionContext ApplicationInsights\ApplicationInsights\Channel\Contracts\Session
array ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::getProperties()()
Get the additional custom properties array.
- Visibility: public
mixed ApplicationInsights\Telemetry_Context::\ApplicationInsights\Telemetry_Context::setProperties()(array $properties)
Set the additional custom properties array.
- Visibility: public
- $properties array - <p>Additional properties (name/value pairs) to append as custom properties to all telemetry.</p>