Skip to content

Commit a6709e4

Browse files
committed
chore: update golden files with new surface label attribute
1 parent 337d7d6 commit a6709e4

File tree

78 files changed

+8515
-6155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+8515
-6155
lines changed

packages/web-sdk/src/api-page/api/PageAPI/PageAPI.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ describe('PageAPI', () => {
4040
getCurrentRoute: sinon.stub().returns(mockRoute),
4141
getCurrentPageId: sinon.stub().returns('test-page-id'),
4242
clearCurrentRoute: sinon.stub(),
43+
setAppSurfaceLabel: sinon.stub(),
44+
getAppSurfaceLabel: sinon.stub(),
4345
};
4446
pageAPI.setGlobalPageManager(mockPageManager);
4547
const pageManager = pageAPI.getPageManager();
@@ -55,6 +57,8 @@ describe('PageAPI', () => {
5557
getCurrentRoute: sinon.stub().returns(mockRoute),
5658
getCurrentPageId: sinon.stub().returns('test-page-id'),
5759
clearCurrentRoute: sinon.stub(),
60+
setAppSurfaceLabel: sinon.stub(),
61+
getAppSurfaceLabel: sinon.stub(),
5862
};
5963
pageAPI.setGlobalPageManager(mockPageManager);
6064

packages/web-sdk/src/api-page/manager/ProxyPageManager/ProxyPageManager.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ describe('ProxyPageManager', () => {
2121
getCurrentRoute: sinon.stub().returns(mockRoute),
2222
getCurrentPageId: sinon.stub().returns('test-page-id'),
2323
clearCurrentRoute: sinon.stub(),
24+
setAppSurfaceLabel: sinon.stub(),
25+
getAppSurfaceLabel: sinon.stub(),
2426
};
2527
});
2628

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
export { attributes } from './attributes.ts';
12
export type {
23
AttributeScrubber,
34
PathnameDocument,
45
TitleDocument,
56
URLDocument,
67
VisibilityStateDocument,
78
} from './types.ts';
8-
export { attributes } from './attributes.ts';

packages/web-sdk/src/constants/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export {
44
EMB_NAVIGATION_INSTRUMENTATIONS,
55
EMB_STATES,
66
EMB_TYPES,
7+
KEY_APP_SURFACE_LABEL,
78
KEY_EMB_APP_INSTANCE_ID,
89
KEY_EMB_COLD_START,
910
KEY_EMB_ERROR_CODE,
@@ -17,7 +18,6 @@ export {
1718
KEY_EMB_NAVIGATION_SOURCE,
1819
KEY_EMB_PAGE_ID,
1920
KEY_EMB_PAGE_PATH,
20-
KEY_APP_SURFACE_LABEL,
2121
KEY_EMB_REFERRER_URL,
2222
KEY_EMB_SDK_STARTUP_DURATION,
2323
KEY_EMB_SESSION_NUMBER,

packages/web-sdk/src/sdk/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type { PageManager } from '../api-page/index.ts';
1717
import type { SpanSessionManager } from '../api-sessions/index.ts';
1818
import type { TraceManager } from '../api-traces/index.ts';
1919
import type { UserManager } from '../api-users/index.ts';
20-
import type { AttributeScrubber, TitleDocument } from '../common/index.ts';
20+
import type { AttributeScrubber } from '../common/index.ts';
2121
import type {
2222
ClicksInstrumentationArgs,
2323
DocumentLoadInstrumentationConfig,

tests/integration/tests/__golden__/chromium-next-15-turbopack-app-handle-204-with-body-logs.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@
6060
{
6161
"key": "emb.app_instance_id",
6262
"value": {
63-
"stringValue": "52DD56706DE1FFB1C43445390739BBA4"
63+
"stringValue": "D172BED60674BABF1C3A81EA06FF1779"
6464
}
6565
},
6666
{
6767
"key": "user_agent.original",
6868
"value": {
69-
"stringValue": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.7499.4 Safari/537.36"
69+
"stringValue": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.7632.6 Safari/537.36"
7070
}
7171
},
7272
{
@@ -85,8 +85,8 @@
8585
},
8686
"logRecords": [
8787
{
88-
"timeUnixNano": "1769811580000899902",
89-
"observedTimeUnixNano": "1769811580001000000",
88+
"timeUnixNano": "1771878180529199951",
89+
"observedTimeUnixNano": "1771878180529000000",
9090
"severityNumber": 13,
9191
"severityText": "WARNING",
9292
"body": {
@@ -102,13 +102,13 @@
102102
{
103103
"key": "emb.stacktrace.js",
104104
"value": {
105-
"stringValue": "Error\n at e.message (http://localhost:3010/_next/static/chunks/dca1a7d3f4253d7c.js:1:26341)\n at s.message (http://localhost:3010/_next/static/chunks/dca1a7d3f4253d7c.js:1:4585)\n at Proxy.<anonymous> (http://localhost:3010/_next/static/chunks/dca1a7d3f4253d7c.js:1:4026)\n at o (http://localhost:3010/_next/static/chunks/d1f52894775ef03c.js:1:335)\n at i2 (http://localhost:3010/_next/static/chunks/9f41ebb97540b354.js:1:144380)\n at http://localhost:3010/_next/static/chunks/9f41ebb97540b354.js:1:150466\n at tk (http://localhost:3010/_next/static/chunks/9f41ebb97540b354.js:1:28376)\n at i9 (http://localhost:3010/_next/static/chunks/9f41ebb97540b354.js:1:145613)\n at cu (http://localhost:3010/_next/static/chunks/9f41ebb97540b354.js:1:172613)\n at ca (http://localhost:3010/_next/static/chunks/9f41ebb97540b354.js:1:172435)"
105+
"stringValue": "Error\n at t.message (http://localhost:3010/_next/static/chunks/a9a31cfe1d8971c5.js:1:49215)\n at s.message (http://localhost:3010/_next/static/chunks/a9a31cfe1d8971c5.js:1:4579)\n at Proxy.<anonymous> (http://localhost:3010/_next/static/chunks/a9a31cfe1d8971c5.js:1:4020)\n at o (http://localhost:3010/_next/static/chunks/18b7c251ef430cba.js:1:334)\n at i2 (http://localhost:3010/_next/static/chunks/dc1c0427d6f2e7b5.js:1:144382)\n at http://localhost:3010/_next/static/chunks/dc1c0427d6f2e7b5.js:1:150468\n at tk (http://localhost:3010/_next/static/chunks/dc1c0427d6f2e7b5.js:1:28378)\n at i9 (http://localhost:3010/_next/static/chunks/dc1c0427d6f2e7b5.js:1:145615)\n at cu (http://localhost:3010/_next/static/chunks/dc1c0427d6f2e7b5.js:1:172615)\n at ca (http://localhost:3010/_next/static/chunks/dc1c0427d6f2e7b5.js:1:172437)"
106106
}
107107
},
108108
{
109109
"key": "emb.js_file_bundle_ids",
110110
"value": {
111-
"stringValue": "{\"Error\\n at http://localhost:3010/_next/static/chunks/a8b74a60f3556d84.js:4:33\\n at http://localhost:3010/_next/static/chunks/a8b74a60f3556d84.js:4:126\":\"15fd21ff52e283c3bb62052de324ad34\",\"Error\\n at http://localhost:3010/_next/static/chunks/turbopack-877dadc786d07713.js:6:33\\n at http://localhost:3010/_next/static/chunks/turbopack-877dadc786d07713.js:6:126\":\"734e6ec704f57fd3eb85256dd8f38044\",\"Error\\n at http://localhost:3010/_next/static/chunks/d1f52894775ef03c.js:4:33\\n at http://localhost:3010/_next/static/chunks/d1f52894775ef03c.js:4:126\":\"62daae22085216409a457a21cb79a1b4\",\"Error\\n at http://localhost:3010/_next/static/chunks/0f3c9c623a8d056e.js:4:33\\n at http://localhost:3010/_next/static/chunks/0f3c9c623a8d056e.js:4:126\":\"ea3ef035957877fbf63a62637cdfcc92\",\"Error\\n at http://localhost:3010/_next/static/chunks/2bb490b90a366d51.js:4:33\\n at http://localhost:3010/_next/static/chunks/2bb490b90a366d51.js:4:126\":\"7f0a703a46bf13f33017d981466478d2\",\"Error\\n at http://localhost:3010/_next/static/chunks/dca1a7d3f4253d7c.js:4:33\\n at http://localhost:3010/_next/static/chunks/dca1a7d3f4253d7c.js:4:126\":\"f06fd0cd216422bc438c490a646ec9f9\",\"Error\\n at http://localhost:3010/_next/static/chunks/9f41ebb97540b354.js:4:33\\n at http://localhost:3010/_next/static/chunks/9f41ebb97540b354.js:4:126\":\"9854c0c6494879a068188282e03f6e99\"}"
111+
"stringValue": "{\"Error\\n at http://localhost:3010/_next/static/chunks/f69c0e7c63d90078.js:4:33\\n at http://localhost:3010/_next/static/chunks/f69c0e7c63d90078.js:4:126\":\"450f76c7d056bbedd174d43e02bb77aa\",\"Error\\n at http://localhost:3010/_next/static/chunks/turbopack-a57ba3927d6081e2.js:6:33\\n at http://localhost:3010/_next/static/chunks/turbopack-a57ba3927d6081e2.js:6:126\":\"e37956446879e6a5a36c27f196ea6595\",\"Error\\n at http://localhost:3010/_next/static/chunks/411d4643c85b0009.js:4:33\\n at http://localhost:3010/_next/static/chunks/411d4643c85b0009.js:4:126\":\"4767144011edd1084ca7d88eaa0b9c8b\",\"Error\\n at http://localhost:3010/_next/static/chunks/18b7c251ef430cba.js:4:33\\n at http://localhost:3010/_next/static/chunks/18b7c251ef430cba.js:4:126\":\"e1d8154aba2335b6f75749ea66ea412d\",\"Error\\n at http://localhost:3010/_next/static/chunks/23a2fda5ee3ef2f7.js:4:33\\n at http://localhost:3010/_next/static/chunks/23a2fda5ee3ef2f7.js:4:126\":\"e58a95ae7fe15fdcaee5531b364342a8\",\"Error\\n at http://localhost:3010/_next/static/chunks/dc1c0427d6f2e7b5.js:4:33\\n at http://localhost:3010/_next/static/chunks/dc1c0427d6f2e7b5.js:4:126\":\"0b3fff7bf97064f1a39919c08ebced7f\",\"Error\\n at http://localhost:3010/_next/static/chunks/a9a31cfe1d8971c5.js:4:33\\n at http://localhost:3010/_next/static/chunks/a9a31cfe1d8971c5.js:4:126\":\"da420bfb1f92af1ad511eeef61a12620\"}"
112112
}
113113
},
114114
{
@@ -120,13 +120,13 @@
120120
{
121121
"key": "log.record.uid",
122122
"value": {
123-
"stringValue": "28905BC6074F8B6FD56F5EF0D2E7F5C2"
123+
"stringValue": "E2FEC3399512987EAF22AC70F36C9F03"
124124
}
125125
},
126126
{
127127
"key": "session.id",
128128
"value": {
129-
"stringValue": "13BFC35A4ADF560DF1FC78E52BDEAEA6"
129+
"stringValue": "F829CA08D048BFCA0E4EAEA0AA99F12F"
130130
}
131131
},
132132
{
@@ -138,6 +138,12 @@
138138
"value": {
139139
"stringValue": "http://localhost:3010/"
140140
}
141+
},
142+
{
143+
"key": "app.surface.label",
144+
"value": {
145+
"stringValue": "Create Next App"
146+
}
141147
}
142148
],
143149
"droppedAttributesCount": 1

0 commit comments

Comments
 (0)