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

Link to this section Functions

@spec default_tags() :: %{optional(String.t()) => String.t()}
Link to this function

instrumentation_key_set?(envelope)

View Source
@spec instrumentation_key_set?(t()) :: boolean()
Link to this function

set_instrumentation_key(envelope, instrumentation_key)

View Source
@spec set_instrumentation_key(t(), ExInsights.Telemetry.Types.instrumentation_key()) ::
  t()
Link to this function

wrap(telemetry, instrumentation_key)

View Source
@spec wrap(
  telemetry :: telemetry(),
  ExInsights.Telemetry.Types.instrumentation_key() | nil
) :: t()