Skip to content

Client is not safe to use for concurrent requests #10

Description

@gsblue

The contextInformation struct holds Request, User and CustomData fields which most likely are in context of an error and not the application. In a scenario where the client is instantiated once and shared between multiple concurrent requests (e.g. web api), these fields may get overwritten due to race conditions.

What I propose is to have another type ErrorEntry which holds the Request, User and CustomData fields and is created in context of an error. And then you can use the client to submit the error to raygun. The HandleError method internally will follow the same steps to submit the error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions