question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve beforeSend typing

See original GitHub issue

Currently:

https://github.com/DataDog/browser-sdk/blob/270cff1aa97aa1202a88e63fc20d429289b33ee4/packages/core/src/domain/configuration.ts#L54

beforesend(event) is of type any, is it possible to get a better type here instead of any?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
bcaudancommented, Jun 21, 2022

Things should have been improved in v4, feel free to reopen otherwise.

0reactions
nmbrocommented, Apr 30, 2021

It probably didn’t, I was just browsing the source code, so I was probably just oblivious to the actual correct implementations / interfaces

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enable `beforeSend` for `$.ajax({dataType:'jsonp ...
In this case, no XMLHttpRequest object is returned from $.ajax(), and the XMLHttpRequest object and the textStatus arguments passed to the ...
Read more >
$(document).ready(function() { $.ajax({ type: "get", url ... - Chegg
Answer to Solved $(document).ready(function() { $.ajax({ type: "get",
Read more >
Filtering for Flutter - Sentry Documentation
Configure your SDK to filter error events by using the beforeSend callback method and configuring, enabling, or disabling integrations. Using beforeSend. All ...
Read more >
jQuery AJAX Methods - W3Schools
W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are ...
Read more >
Essential JS ejDataManager Widget - Syncfusion
Custom headers can be set using pre-request callback beforeSend as follows. The setRequestHeader method can be used to modify the XMLHTTPRequest. Name, Type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found