rollbar / rollbar/rollbar-react-native

clearPerson function not working

Open
#144 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
81
Forks
34
PR merge metrics
No merged PRs in 30d

Description

The clearPerson function does not seem to be working correctly.
See below for a simple example.

import { Client } from 'rollbar-react-native';
const rollbar = new Client('API_KEY');
rollbar.error('No user test') // This works correctly - no person exists
rollbar.setPerson('9ee1638b-6100-4b47-bcd3-ee88dccf2dab')
rollbar.error('User exists') // This works correctly - person exists
rollbar.clearPerson();
rollbar.error('User still exists???') // This does not work - error still has previously set person attached

Error Screen Shot

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the clearPerson function and the Client usage shown in the issue. Reproduce the setPerson, error, clearPerson, and second error sequence, then trace how person state is carried into later errors. Done means the final error has no previously set person attached.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile-dev, observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.