From 78c110ec89456ac21260509457eeb2b26d113bb6 Mon Sep 17 00:00:00 2001 From: mmfred <58010132+mmfred@users.noreply.github.com> Date: Tue, 18 Aug 2020 13:32:30 -0700 Subject: [PATCH] Edited to make more active and guidelike. made the language more active. --- src/markdown-pages/collect-data/add-custom-attributes.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/markdown-pages/collect-data/add-custom-attributes.mdx b/src/markdown-pages/collect-data/add-custom-attributes.mdx index f45f6722a..969893886 100644 --- a/src/markdown-pages/collect-data/add-custom-attributes.mdx +++ b/src/markdown-pages/collect-data/add-custom-attributes.mdx @@ -27,11 +27,13 @@ There are countless filters and pivots you might want to apply to your data. By A common pattern when using custom attributes is to capture user information, such as name, ID, email, and more. This allows you to 'link' your operational data with your business data. For example, if you have the user information, you tie together your service desk and CRM data with the operational data in New Relic. +## Create a custom attribute + -You can add a `userid` custom attribute to your APM-reported data (`Transaction` and `TransactionError events`) with the opensource Java APM agent's API. +Use the open source Java APM agent's API to add a `userid` custom attribute to your APM-reported data, `Transaction` and `TransactionError events`. ``` NewRelic.addCustomParameter("userid", userId); @@ -41,9 +43,9 @@ NewRelic.addCustomParameter("userid", userId); -Once added, you can run a NRQL query that uses the 'userid' custom attribute. +After you add the `userid` custom attribute, run a NRQL query that uses it. -Once you have added a custom attribute like 'userid', you can use it to filter and facet your NRQL queries. +As the query shows, the `userid` attribute enables you to filter and facet your NRQL queries. ![custom-attribute-query.png](../../images/custom-attributes/custom-attribute-query.png)