Skip to content

Commit

Permalink
Merge pull request #18501 from patrickhousley/fix-addtotrace
Browse files Browse the repository at this point in the history
fix: correct addToTrace documentation
  • Loading branch information
rhetoric101 authored Aug 27, 2024
2 parents 1354df8 + 07614ee commit 52a9b4c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ Note that the number of events shared this way is limited by the Browser agent h
Required. Supply a JavaScript object with these required and optional name/value pairs:

* Required name/value pairs: `name`, `start`
* Optional name/value pairs: `end`, `origin`, `type`

If you are sending the same event object to New Relic as a [`PageAction`](/docs/insights/explore-data/attributes/browser-default-attributes-insights#pageaction-list), omit the `TYPE` attribute. (`type` is a string to describe what type of event you are marking inside of a session trace.) If included, it will override the event type and cause the `PageAction` event to be sent incorrectly. Instead, use the `name` attribute for event information.
* Optional name/value pairs: `end`, `origin`
</td>
</tr>
</tbody>
Expand All @@ -102,7 +100,5 @@ var obj = {
// Time in ms since epoch. Defaults to same as start resulting in trace object with a duration of zero.
origin: 'Origin of event',
// Defaults to empty string
type: 'What type of event was this'
// Defaults to empty string
};
```

0 comments on commit 52a9b4c

Please sign in to comment.