Skip to content

Add logging solution for both front and back end  #69

@ludwigmuench

Description

@ludwigmuench

Motivation

I think this would be great for monitoring apps and finding / understanding bugs throughout the full stack on a live production server.

Requested Feature

It would be useful if we could log errors and other events from both the front and the back end.

Example (frontend):

    try {
      foo()
    } catch (e) {
      // handle error
      logger.log({
        error: e,
        description: 'something something failed when something',
        //...
       })
    }

The logger on the frontend would have to send logged events to the back end with http requests. On the back end all logged events would have to be persisted.

Now even though the error was handled, we could use the logging solution to show us all logged events (of both the front and back end) during a specified time frame and filter for certain keywords.

Monitoring Solutions

Solution Pros Cons
custom solution good labs project?
rails-client-logger ? not maintained
Elastic APM we've used it before can be a lot of work to set up ELK
Prometheus
Airbrake React Integration we've used it before (Rails only)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions