Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

userId not appearing in NewRelic (android) #15

@lvolkmann

Description

@lvolkmann

The Issue

I'm having a problem finding the desired effects of the nrAddUserId method. I followed the setup instructions found in this repo and can see things like app launches in new relic. I was even able to get nrRecordMetric working which makes me think I've got the sdk configured correctly. Weirdly enough, I can't seem to associate a mobile session with a given userId. I'm not seeing anything that looks like a userId in mobileSession, processSample, mobileUserAction, etc...

Has anyone else been having this problem? If this is a known issue, is there anything in motion to address it?

Thanks in advance; really cool project you've got going here 🎉

Steps to Reproduce

  1. Setup app according to ReadMe
  2. Add these calls to your first app.js/index.js file with imports up top:
  nrInit('LoginScreen');
  console.log('NR: LOGIN INIT');
  nrAddUserId('testUser');
  console.log("NR: UserId Set");
  1. Note log statements executed and screen loads without any warnings or errors.
  2. Go to one.newrelic.com > query builder
  3. Run the following query with the account you setup your new relic app in:
SELECT * from Mobile where appName = '<AppName>' since 1 day ago
  1. Note session is logged, but no userId is associated with it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions