Skip to content

Add GraphQL request body in network request monitoring. #403

@ahoseinian

Description

@ahoseinian

Description

currently there is no way to distinguish different GraphQL requests in request monitoring section. Requests all come with the same url which is the base behaviour of GraphQL and request body is not tracked or accessible to be able to distinguish between request.

image

Also the configuration option networkRequestCallback does not allow the user to somehow access the body and include it with the request info:

BugsnagPerformance.start({
  apiKey: 'YOUR_API_KEY',
  networkRequestCallback: (requestInfo) => {
    /// requestInfo is only consist of { type, url } the body is not accessible. 
  

    return requestInfo
  }
})

Describe the solution you'd like
I would be nice if we could distinguish requests by GraphQL query names for example.

Describe alternatives you've considered
instead of automatically tracking network requests add a manual option so we can send the requests with their query names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogWe hope to fix this feature/bug in the futurefeature requestRequest for a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions