Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

tripId

Use tripId, which is a NewRelic provided field to track transaction calls made through various NewRelic apps.  This can be used further when 

Jira Legacy
serverSystem JIRA
serverId13fd1930-5608-3aac-a5dd-21b934d3a4b4
keyOPS-3353
 lands Distributed Tracing

Code Block
SELECT appName, name, tripId from Transaction WHERE tripId = '7f695092a81bf3ad'

...

See documentation for the oauth_* custom metrics documented on the Custom Metrics Attributes in New Relic page.

Additionally, you can see some of these metrics in use on the Authentication Dashboard in NewRelic Insights.

You can also find these metrics using the Data Explorer

  • Switch from their default of PageView to Transaction
  • Group By oauth_client_id
  • Filter by oauth_adapter
  • Examine other events captured in the samples, looking at request.uri and others is interesting while you try to build graphs

Here is an example query using multiple metrics:

...

The request_client_name is taken from the user agent string for calls made using edx-rest-api-client v1.8.2+.

Note that this will often return an app (such as prod-edx-ecommerce) but will default back to the hostname of the machine.

Code Block
SELECT request_client_name FROM Transaction WHERE request_client_name IS NOT NULL AND request_client_name !='unknown_client_name'

...