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

Add log level support #139

Open
Anntoin opened this issue Apr 28, 2022 · 4 comments
Open

Add log level support #139

Anntoin opened this issue Apr 28, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@Anntoin
Copy link

Anntoin commented Apr 28, 2022

We've found that recordError is a useful replacement for custom client error logging. However to completely replace what we have now we'd need support for other log levels, e.g. info, warn.

This could be provided by a recordLog or recordEvent command that supports arbitrary logging. Is this something that would be considered in scope for the rum client?

@qhanam
Copy link
Member

qhanam commented May 20, 2022

Hi @Anntoin thanks for raising this (and sorry taking so long to respond)! I agree these are important use cases.

For both recordLog and recordEvent, the CloudWatch RUM service must first support these application-specific event types. Currently, it only supports a fixed set of events.

For example, it is currently possible to use the CloudWatch RUM web client (by creating a plugin) or the CloudWatch RUM SDK to send arbitrary events to CloudWatch RUM, however only those events which conform to an accepted schema will be ingested (the rest will be dropped).

We will update this thread when CloudWatch RUM has added support, but I can't provide an ETA.

@maniator
Copy link
Contributor

I am going to see if it is possible to add a recordEvent method to go according to the RUM schema here: https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumEvents.html

@maniator
Copy link
Contributor

@Anntoin see #185 for possible solution :-)

@Anntoin
Copy link
Author

Anntoin commented Jul 27, 2022 via email

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

Successfully merging a pull request may close this issue.

3 participants