damjack / elm-newrelic-nreum / NewRelic.Nreum

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

SPA monitoring can help you:

Definition types


type Nreum

Nreum type

Defining tracking

routeName : NewRelic.NREUM.RouteName.RouteName -> Nreum

Send to NewRelic the current custom route name

Examples:

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

interaction : NewRelic.NREUM.Interaction.Interaction -> Nreum

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

noticeError : NewRelic.NREUM.NoticeError.NoticeError -> Nreum

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

addPageAction : NewRelic.NREUM.AddPageAction.AddPageAction -> Nreum

Add global release version

Examples:

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

addRelease : NewRelic.NREUM.AddRelease.AddRelease -> Nreum

Add global release version

Examples:

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

Publishing

publish : (Json.Encode.Value -> Platform.Cmd.Cmd msg) -> Nreum -> Platform.Cmd.Cmd msg

Send a message to DataDog RUM