Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending metadata/custom payload with my log #1052

Open
penguinsource opened this issue Nov 14, 2022 · 2 comments
Open

Sending metadata/custom payload with my log #1052

penguinsource opened this issue Nov 14, 2022 · 2 comments

Comments

@penguinsource
Copy link

penguinsource commented Nov 14, 2022

Hello!

I am using a Javascript / Browser JS integration of rollbar and would simply like to send custom payload (JS) objects which are not stringified, so I can easily understand it.

Is this possible? I have guessed and checked as well as verified docs (https://docs.rollbar.com/docs/browser-js) but nothing points to it.

The best I can get is stringifying an object but then it prints out very un-pretty so it's difficult to understand.

Similar past issue in rollbar-php -> rollbar/rollbar-php#431 (comment)

I have checked that the custom / extra fields do show up in the transform function but just don't show up in Rollbar when I go to see my logs

Thank you,
Mihai

@penguinsource
Copy link
Author

penguinsource commented Nov 14, 2022

Quick followup:
image

This looks like what I would like to do but my rollbar instance does not have the function scope available. I am using the latest version (2.25.2)

And for: Rollbar.info("User logged in", {loginType: "email+password"});..
The arbitrary params do not come through the logs for me

Example:

image

Rollbar logs:

image

and

image

@penguinsource
Copy link
Author

penguinsource commented Nov 14, 2022

After hours of trying to figure out and guessing different commands, I found out that the custom data is passed and viewed in the Occurences tab

image

Honestly, this is extremely frustrating and also - why not format the data directly into the log timeline itself? at the very least, have a link from the main timeline that suggests where this custom data is because it's critical and it's practically hidden/very very very frustrating...

This also does not appear to be documented anywhere at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant