damjack/elm-newrelic-nreum/1.0.0

NewRelic.Nreum

You can use browser agent and SPA API to monitor virtually anything that executes inside the browser.

SPA monitoring can help you:

  • Create faster, more responsive, highly interactive apps.
  • Monitor the throughput and performance that real users are experiencing.
  • Troubleshoot and resolve problems within the context of the page load.
  • Query and visualize the data to assist with business decisions.
  • Bring better apps to the marketplace more quickly

Definition types

type Nreum

Nreum type

Defining tracking

Send to NewRelic the current custom route name

Examples:

NewRelic.NREUM.RouteName.init "RouteName"
    |> Nreum.routeName
    |> Nreum.publish

Send to NewRelic a custom interaction with additional data filterable

Examples:

NewRelic.NREUM.Interaction.init "Custom Interaction"
    |> NewRelic.NREUM.Interaction.addMessage "Somenthing to send to add major information about intearction"
    |> Nreum.interaction
    |> Nreum.publish

Send to NewRelic a custom error message with additional data filterable

Examples:

NewRelic.NREUM.NoticeError.toGraphQLResultError graphQLResultError
    |> NewRelic.NREUM.NoticeError.init "error @requestResult"
    |> Nreum.noticeError
    |> Nreum.publish

Add global release version

Examples:

NewRelic.NREUM.AddRelease.init "APP" "1.0.0"
    |> Nreum.addRelease
    |> Nreum.publish

Add global release version

Examples:

NewRelic.NREUM.AddRelease.init "APP" "1.0.0"
    |> Nreum.addRelease
    |> Nreum.publish

Publishing

publish : (Value -> Cmd msg) -> Nreum -> Cmd msg

Send a message to DataDog RUM