You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds a new `ignoreSpans` option to all SDKs which can be used as
follows:
```js
Sentry.init({
ignoreSpans: ['partial match', /regex/, { name: 'span name', op: 'http.client' }]
});
```
this will drop spans before they are sent. Eventual child spans in the
same envelope will be re-parented, if possible.
Closes#16820
---------
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
// This check here is only correct because we can guarantee that we ran `isMatchingPattern`
32
+
// for at least one of `nameMatches` and `opMatches`. So in contrary to how this looks,
33
+
// not both op and name actually have to match. This is the most efficient way to check
34
+
// for all combinations of name and op patterns.
35
+
if(nameMatches&&opMatches){
36
+
returntrue;
37
+
}
38
+
}
39
+
40
+
returnfalse;
41
+
}
42
+
43
+
/**
44
+
* Takes a list of spans, and a span that was dropped, and re-parents the child spans of the dropped span to the parent of the dropped span, if possible.
0 commit comments