View Source ExInsights.Envelope (ExInsights v0.8.1)
Track request envelope
Envelope data looks like this
{
"time": "2017-08-24T08:55:56.968Z",
"iKey": "some-guid-value-key",
"name": "Microsoft.ApplicationInsights.someguidvaluekey.Event",
"tags": {
"ai.session.id": "SLzGH",
"ai.device.id": "browser",
"ai.device.type": "Browser",
"ai.internal.sdkVersion": "javascript:1.0.11",
"ai.user.id": "V2Yph",
"ai.operation.id": "VKgP+",
"ai.operation.name": "/"
},
"data": {
"baseType": "EventData",
"baseData": {
"ver": 2,
"name": "button clicked",
"properties": {
"click type": "double click"
},
"measurements": {
"clicks": 2
}
}
}
}
Link to this section Summary
Link to this section Types
@type missing_key() :: {:error, :missing_instrumentation_key}
@type t() :: %ExInsights.Envelope{ data: map(), iKey: String.t() | missing_key(), name: String.t(), tags: ExInsights.Telemetry.Types.tags(), time: String.t() }
Link to this section Functions
@spec set_instrumentation_key(t(), ExInsights.Telemetry.Types.instrumentation_key()) :: t()
@spec wrap( telemetry :: telemetry(), ExInsights.Telemetry.Types.instrumentation_key() | nil ) :: t()