Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Oct 30, 2024
1 parent b5763cc commit 1de5c29
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
8 changes: 8 additions & 0 deletions .changeset/little-chefs-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@segment/analytics-signals': minor
---
- Fix runtime errors for submit
- Add better form submit data
- Loosen content-type to parse text/plain
- Tweak disallow list
- Add labels
Original file line number Diff line number Diff line change
Expand Up @@ -142,24 +142,6 @@ describe(NetworkGenerator, () => {
await sleep(100)
expect(mockEmitter.emit.mock.calls).toMatchInlineSnapshot(`
[
[
{
"data": {
"action": "request",
"contentType": "text/html",
"data": "hello world",
"method": "GET",
"url": "http://localhost/api",
},
"metadata": {
"filters": {
"allowed": [],
"disallowed": [],
},
},
"type": "network",
},
],
[
{
"data": {
Expand Down
3 changes: 3 additions & 0 deletions packages/signals/signals/src/core/signals/signals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ export class Signals implements ISignals {
disallowListURLs: [
analyticsService.instance.settings.apiHost,
analyticsService.instance.settings.cdnURL,
'api.segment.io',
'signals.segment.io',
'cdn.segment.com',
],
sampleRate:
analyticsService.instance.settings.cdnSettings
Expand Down

0 comments on commit 1de5c29

Please sign in to comment.