@genesislcap/foundation-utils 15.55.0 → 15.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5687,6 +5687,51 @@
5687
5687
  "endIndex": 4
5688
5688
  }
5689
5689
  },
5690
+ {
5691
+ "kind": "Interface",
5692
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringEvent:interface",
5693
+ "docComment": "/**\n * An event about to be sent, with the page it happened on.\n *\n * @public\n */\n",
5694
+ "excerptTokens": [
5695
+ {
5696
+ "kind": "Content",
5697
+ "text": "export interface ErrorMonitoringEvent "
5698
+ }
5699
+ ],
5700
+ "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
5701
+ "releaseTag": "Public",
5702
+ "name": "ErrorMonitoringEvent",
5703
+ "preserveMemberOrder": false,
5704
+ "members": [
5705
+ {
5706
+ "kind": "PropertySignature",
5707
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringEvent#request:member",
5708
+ "docComment": "",
5709
+ "excerptTokens": [
5710
+ {
5711
+ "kind": "Content",
5712
+ "text": "request?: "
5713
+ },
5714
+ {
5715
+ "kind": "Content",
5716
+ "text": "{\n url?: string;\n }"
5717
+ },
5718
+ {
5719
+ "kind": "Content",
5720
+ "text": ";"
5721
+ }
5722
+ ],
5723
+ "isReadonly": false,
5724
+ "isOptional": true,
5725
+ "releaseTag": "Public",
5726
+ "name": "request",
5727
+ "propertyTypeTokenRange": {
5728
+ "startIndex": 1,
5729
+ "endIndex": 2
5730
+ }
5731
+ }
5732
+ ],
5733
+ "extendsTokenRanges": []
5734
+ },
5690
5735
  {
5691
5736
  "kind": "Interface",
5692
5737
  "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringExtraInitOptions:interface",
@@ -5799,6 +5844,305 @@
5799
5844
  "startIndex": 1,
5800
5845
  "endIndex": 8
5801
5846
  }
5847
+ },
5848
+ {
5849
+ "kind": "MethodSignature",
5850
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringExtraInitOptions#beforeSend:member(1)",
5851
+ "docComment": "/**\n * Runs after the page URL's query string and fragment are stripped, with the SDK's hint.\n */\n",
5852
+ "excerptTokens": [
5853
+ {
5854
+ "kind": "Content",
5855
+ "text": "beforeSend?(event: "
5856
+ },
5857
+ {
5858
+ "kind": "Reference",
5859
+ "text": "ErrorMonitoringEvent",
5860
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringEvent:interface"
5861
+ },
5862
+ {
5863
+ "kind": "Content",
5864
+ "text": ", hint?: "
5865
+ },
5866
+ {
5867
+ "kind": "Content",
5868
+ "text": "unknown"
5869
+ },
5870
+ {
5871
+ "kind": "Content",
5872
+ "text": "): "
5873
+ },
5874
+ {
5875
+ "kind": "Reference",
5876
+ "text": "ErrorMonitoringEvent",
5877
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringEvent:interface"
5878
+ },
5879
+ {
5880
+ "kind": "Content",
5881
+ "text": " | null | "
5882
+ },
5883
+ {
5884
+ "kind": "Reference",
5885
+ "text": "PromiseLike",
5886
+ "canonicalReference": "!PromiseLike:interface"
5887
+ },
5888
+ {
5889
+ "kind": "Content",
5890
+ "text": "<"
5891
+ },
5892
+ {
5893
+ "kind": "Reference",
5894
+ "text": "ErrorMonitoringEvent",
5895
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringEvent:interface"
5896
+ },
5897
+ {
5898
+ "kind": "Content",
5899
+ "text": " | null>"
5900
+ },
5901
+ {
5902
+ "kind": "Content",
5903
+ "text": ";"
5904
+ }
5905
+ ],
5906
+ "isOptional": true,
5907
+ "returnTypeTokenRange": {
5908
+ "startIndex": 5,
5909
+ "endIndex": 11
5910
+ },
5911
+ "releaseTag": "Public",
5912
+ "overloadIndex": 1,
5913
+ "parameters": [
5914
+ {
5915
+ "parameterName": "event",
5916
+ "parameterTypeTokenRange": {
5917
+ "startIndex": 1,
5918
+ "endIndex": 2
5919
+ },
5920
+ "isOptional": false
5921
+ },
5922
+ {
5923
+ "parameterName": "hint",
5924
+ "parameterTypeTokenRange": {
5925
+ "startIndex": 3,
5926
+ "endIndex": 4
5927
+ },
5928
+ "isOptional": true
5929
+ }
5930
+ ],
5931
+ "name": "beforeSend"
5932
+ },
5933
+ {
5934
+ "kind": "MethodSignature",
5935
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringExtraInitOptions#beforeSendSpan:member(1)",
5936
+ "docComment": "/**\n * Runs after span URLs and resource span names lose their query string and fragment.\n */\n",
5937
+ "excerptTokens": [
5938
+ {
5939
+ "kind": "Content",
5940
+ "text": "beforeSendSpan?(span: "
5941
+ },
5942
+ {
5943
+ "kind": "Reference",
5944
+ "text": "ErrorMonitoringSpan",
5945
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringSpan:interface"
5946
+ },
5947
+ {
5948
+ "kind": "Content",
5949
+ "text": "): "
5950
+ },
5951
+ {
5952
+ "kind": "Reference",
5953
+ "text": "ErrorMonitoringSpan",
5954
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringSpan:interface"
5955
+ },
5956
+ {
5957
+ "kind": "Content",
5958
+ "text": ";"
5959
+ }
5960
+ ],
5961
+ "isOptional": true,
5962
+ "returnTypeTokenRange": {
5963
+ "startIndex": 3,
5964
+ "endIndex": 4
5965
+ },
5966
+ "releaseTag": "Public",
5967
+ "overloadIndex": 1,
5968
+ "parameters": [
5969
+ {
5970
+ "parameterName": "span",
5971
+ "parameterTypeTokenRange": {
5972
+ "startIndex": 1,
5973
+ "endIndex": 2
5974
+ },
5975
+ "isOptional": false
5976
+ }
5977
+ ],
5978
+ "name": "beforeSendSpan"
5979
+ },
5980
+ {
5981
+ "kind": "MethodSignature",
5982
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringExtraInitOptions#beforeSendTransaction:member(1)",
5983
+ "docComment": "/**\n * Like `beforeSend`, for transactions. Wrapped only with `traceLifecycle: 'static'`.\n */\n",
5984
+ "excerptTokens": [
5985
+ {
5986
+ "kind": "Content",
5987
+ "text": "beforeSendTransaction?(event: "
5988
+ },
5989
+ {
5990
+ "kind": "Reference",
5991
+ "text": "ErrorMonitoringEvent",
5992
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringEvent:interface"
5993
+ },
5994
+ {
5995
+ "kind": "Content",
5996
+ "text": ", hint?: "
5997
+ },
5998
+ {
5999
+ "kind": "Content",
6000
+ "text": "unknown"
6001
+ },
6002
+ {
6003
+ "kind": "Content",
6004
+ "text": "): "
6005
+ },
6006
+ {
6007
+ "kind": "Reference",
6008
+ "text": "ErrorMonitoringEvent",
6009
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringEvent:interface"
6010
+ },
6011
+ {
6012
+ "kind": "Content",
6013
+ "text": " | null | "
6014
+ },
6015
+ {
6016
+ "kind": "Reference",
6017
+ "text": "PromiseLike",
6018
+ "canonicalReference": "!PromiseLike:interface"
6019
+ },
6020
+ {
6021
+ "kind": "Content",
6022
+ "text": "<"
6023
+ },
6024
+ {
6025
+ "kind": "Reference",
6026
+ "text": "ErrorMonitoringEvent",
6027
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringEvent:interface"
6028
+ },
6029
+ {
6030
+ "kind": "Content",
6031
+ "text": " | null>"
6032
+ },
6033
+ {
6034
+ "kind": "Content",
6035
+ "text": ";"
6036
+ }
6037
+ ],
6038
+ "isOptional": true,
6039
+ "returnTypeTokenRange": {
6040
+ "startIndex": 5,
6041
+ "endIndex": 11
6042
+ },
6043
+ "releaseTag": "Public",
6044
+ "overloadIndex": 1,
6045
+ "parameters": [
6046
+ {
6047
+ "parameterName": "event",
6048
+ "parameterTypeTokenRange": {
6049
+ "startIndex": 1,
6050
+ "endIndex": 2
6051
+ },
6052
+ "isOptional": false
6053
+ },
6054
+ {
6055
+ "parameterName": "hint",
6056
+ "parameterTypeTokenRange": {
6057
+ "startIndex": 3,
6058
+ "endIndex": 4
6059
+ },
6060
+ "isOptional": true
6061
+ }
6062
+ ],
6063
+ "name": "beforeSendTransaction"
6064
+ },
6065
+ {
6066
+ "kind": "PropertySignature",
6067
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringExtraInitOptions#dataCollection:member",
6068
+ "docComment": "/**\n * Merged over the defaults, which turn off user info, cookies, headers other than `User-Agent`, bodies and URL query strings. Other settings keep the SDK's defaults.\n */\n",
6069
+ "excerptTokens": [
6070
+ {
6071
+ "kind": "Content",
6072
+ "text": "dataCollection?: "
6073
+ },
6074
+ {
6075
+ "kind": "Reference",
6076
+ "text": "Record",
6077
+ "canonicalReference": "!Record:type"
6078
+ },
6079
+ {
6080
+ "kind": "Content",
6081
+ "text": "<string, unknown>"
6082
+ },
6083
+ {
6084
+ "kind": "Content",
6085
+ "text": ";"
6086
+ }
6087
+ ],
6088
+ "isReadonly": false,
6089
+ "isOptional": true,
6090
+ "releaseTag": "Public",
6091
+ "name": "dataCollection",
6092
+ "propertyTypeTokenRange": {
6093
+ "startIndex": 1,
6094
+ "endIndex": 3
6095
+ }
6096
+ },
6097
+ {
6098
+ "kind": "PropertySignature",
6099
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringExtraInitOptions#integrations:member",
6100
+ "docComment": "/**\n * Added to the default integrations that are kept, replacing any of the same name. A function receives those kept defaults instead and returns the full list.\n */\n",
6101
+ "excerptTokens": [
6102
+ {
6103
+ "kind": "Content",
6104
+ "text": "integrations?: "
6105
+ },
6106
+ {
6107
+ "kind": "Reference",
6108
+ "text": "ErrorMonitoringIntegration",
6109
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringIntegration:interface"
6110
+ },
6111
+ {
6112
+ "kind": "Content",
6113
+ "text": "[] | ((defaults: "
6114
+ },
6115
+ {
6116
+ "kind": "Reference",
6117
+ "text": "ErrorMonitoringIntegration",
6118
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringIntegration:interface"
6119
+ },
6120
+ {
6121
+ "kind": "Content",
6122
+ "text": "[]) => "
6123
+ },
6124
+ {
6125
+ "kind": "Reference",
6126
+ "text": "ErrorMonitoringIntegration",
6127
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringIntegration:interface"
6128
+ },
6129
+ {
6130
+ "kind": "Content",
6131
+ "text": "[])"
6132
+ },
6133
+ {
6134
+ "kind": "Content",
6135
+ "text": ";"
6136
+ }
6137
+ ],
6138
+ "isReadonly": false,
6139
+ "isOptional": true,
6140
+ "releaseTag": "Public",
6141
+ "name": "integrations",
6142
+ "propertyTypeTokenRange": {
6143
+ "startIndex": 1,
6144
+ "endIndex": 7
6145
+ }
5802
6146
  }
5803
6147
  ],
5804
6148
  "extendsTokenRanges": []
@@ -5864,34 +6208,160 @@
5864
6208
  },
5865
6209
  {
5866
6210
  "kind": "PropertySignature",
5867
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#beforeBreadcrumb:member",
5868
- "docComment": "/**\n * Drops the console breadcrumbs foundation loggers write; see {@link isFoundationLoggerConsoleBreadcrumb}.\n */\n",
6211
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#beforeBreadcrumb:member",
6212
+ "docComment": "/**\n * Drops console, click and input breadcrumbs, and strips queries and fragments from URLs.\n */\n",
6213
+ "excerptTokens": [
6214
+ {
6215
+ "kind": "Content",
6216
+ "text": "beforeBreadcrumb?: "
6217
+ },
6218
+ {
6219
+ "kind": "Content",
6220
+ "text": "<B extends "
6221
+ },
6222
+ {
6223
+ "kind": "Reference",
6224
+ "text": "ErrorMonitoringBreadcrumb",
6225
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb:interface"
6226
+ },
6227
+ {
6228
+ "kind": "Content",
6229
+ "text": ">(breadcrumb: B, hint?: "
6230
+ },
6231
+ {
6232
+ "kind": "Reference",
6233
+ "text": "ErrorMonitoringBreadcrumbHint",
6234
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumbHint:type"
6235
+ },
6236
+ {
6237
+ "kind": "Content",
6238
+ "text": ") => B | null"
6239
+ },
6240
+ {
6241
+ "kind": "Content",
6242
+ "text": ";"
6243
+ }
6244
+ ],
6245
+ "isReadonly": false,
6246
+ "isOptional": true,
6247
+ "releaseTag": "Public",
6248
+ "name": "beforeBreadcrumb",
6249
+ "propertyTypeTokenRange": {
6250
+ "startIndex": 1,
6251
+ "endIndex": 6
6252
+ }
6253
+ },
6254
+ {
6255
+ "kind": "PropertySignature",
6256
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#beforeSend:member",
6257
+ "docComment": "/**\n * Strips the query string and fragment from the page URL.\n */\n",
6258
+ "excerptTokens": [
6259
+ {
6260
+ "kind": "Content",
6261
+ "text": "beforeSend: "
6262
+ },
6263
+ {
6264
+ "kind": "Content",
6265
+ "text": "<E extends "
6266
+ },
6267
+ {
6268
+ "kind": "Reference",
6269
+ "text": "ErrorMonitoringEvent",
6270
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringEvent:interface"
6271
+ },
6272
+ {
6273
+ "kind": "Content",
6274
+ "text": ">(event: E, hint?: unknown) => E | null | "
6275
+ },
6276
+ {
6277
+ "kind": "Reference",
6278
+ "text": "PromiseLike",
6279
+ "canonicalReference": "!PromiseLike:interface"
6280
+ },
6281
+ {
6282
+ "kind": "Content",
6283
+ "text": "<E | null>"
6284
+ },
6285
+ {
6286
+ "kind": "Content",
6287
+ "text": ";"
6288
+ }
6289
+ ],
6290
+ "isReadonly": false,
6291
+ "isOptional": false,
6292
+ "releaseTag": "Public",
6293
+ "name": "beforeSend",
6294
+ "propertyTypeTokenRange": {
6295
+ "startIndex": 1,
6296
+ "endIndex": 6
6297
+ }
6298
+ },
6299
+ {
6300
+ "kind": "PropertySignature",
6301
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#beforeSendSpan:member",
6302
+ "docComment": "/**\n * Strips queries and fragments from span URLs and resource span names, when tracing is on.\n */\n",
6303
+ "excerptTokens": [
6304
+ {
6305
+ "kind": "Content",
6306
+ "text": "beforeSendSpan: "
6307
+ },
6308
+ {
6309
+ "kind": "Content",
6310
+ "text": "<S extends "
6311
+ },
6312
+ {
6313
+ "kind": "Reference",
6314
+ "text": "ErrorMonitoringSpan",
6315
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringSpan:interface"
6316
+ },
6317
+ {
6318
+ "kind": "Content",
6319
+ "text": ">(span: S) => S"
6320
+ },
6321
+ {
6322
+ "kind": "Content",
6323
+ "text": ";"
6324
+ }
6325
+ ],
6326
+ "isReadonly": false,
6327
+ "isOptional": false,
6328
+ "releaseTag": "Public",
6329
+ "name": "beforeSendSpan",
6330
+ "propertyTypeTokenRange": {
6331
+ "startIndex": 1,
6332
+ "endIndex": 4
6333
+ }
6334
+ },
6335
+ {
6336
+ "kind": "PropertySignature",
6337
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#beforeSendTransaction:member",
6338
+ "docComment": "/**\n * Strips the query string and fragment from the page URL on transactions. Set only with `traceLifecycle: 'static'`: streamed spans, Sentry 11's default, send no transactions, and Sentry warns on every page load when the option is set without them.\n */\n",
5869
6339
  "excerptTokens": [
5870
6340
  {
5871
6341
  "kind": "Content",
5872
- "text": "beforeBreadcrumb?: "
6342
+ "text": "beforeSendTransaction?: "
5873
6343
  },
5874
6344
  {
5875
6345
  "kind": "Content",
5876
- "text": "<B extends "
6346
+ "text": "<E extends "
5877
6347
  },
5878
6348
  {
5879
6349
  "kind": "Reference",
5880
- "text": "ErrorMonitoringBreadcrumb",
5881
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb:interface"
6350
+ "text": "ErrorMonitoringEvent",
6351
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringEvent:interface"
5882
6352
  },
5883
6353
  {
5884
6354
  "kind": "Content",
5885
- "text": ">(breadcrumb: B, hint?: "
6355
+ "text": ">(event: E, hint?: unknown) => E | null | "
5886
6356
  },
5887
6357
  {
5888
6358
  "kind": "Reference",
5889
- "text": "ErrorMonitoringBreadcrumbHint",
5890
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumbHint:type"
6359
+ "text": "PromiseLike",
6360
+ "canonicalReference": "!PromiseLike:interface"
5891
6361
  },
5892
6362
  {
5893
6363
  "kind": "Content",
5894
- "text": ") => B | null"
6364
+ "text": "<E | null>"
5895
6365
  },
5896
6366
  {
5897
6367
  "kind": "Content",
@@ -5901,12 +6371,44 @@
5901
6371
  "isReadonly": false,
5902
6372
  "isOptional": true,
5903
6373
  "releaseTag": "Public",
5904
- "name": "beforeBreadcrumb",
6374
+ "name": "beforeSendTransaction",
5905
6375
  "propertyTypeTokenRange": {
5906
6376
  "startIndex": 1,
5907
6377
  "endIndex": 6
5908
6378
  }
5909
6379
  },
6380
+ {
6381
+ "kind": "PropertySignature",
6382
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#dataCollection:member",
6383
+ "docComment": "/**\n * Turns off Sentry 11's user info, cookies, headers but `User-Agent`, bodies and URL queries.\n */\n",
6384
+ "excerptTokens": [
6385
+ {
6386
+ "kind": "Content",
6387
+ "text": "dataCollection: "
6388
+ },
6389
+ {
6390
+ "kind": "Reference",
6391
+ "text": "Record",
6392
+ "canonicalReference": "!Record:type"
6393
+ },
6394
+ {
6395
+ "kind": "Content",
6396
+ "text": "<string, unknown>"
6397
+ },
6398
+ {
6399
+ "kind": "Content",
6400
+ "text": ";"
6401
+ }
6402
+ ],
6403
+ "isReadonly": false,
6404
+ "isOptional": false,
6405
+ "releaseTag": "Public",
6406
+ "name": "dataCollection",
6407
+ "propertyTypeTokenRange": {
6408
+ "startIndex": 1,
6409
+ "endIndex": 3
6410
+ }
6411
+ },
5910
6412
  {
5911
6413
  "kind": "PropertySignature",
5912
6414
  "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#dsn:member",
@@ -5960,6 +6462,87 @@
5960
6462
  "startIndex": 1,
5961
6463
  "endIndex": 2
5962
6464
  }
6465
+ },
6466
+ {
6467
+ "kind": "PropertySignature",
6468
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#integrations:member",
6469
+ "docComment": "/**\n * Keeps only the SDK's default integrations that send nothing from the page, plus the app's.\n */\n",
6470
+ "excerptTokens": [
6471
+ {
6472
+ "kind": "Content",
6473
+ "text": "integrations: "
6474
+ },
6475
+ {
6476
+ "kind": "Content",
6477
+ "text": "<I extends "
6478
+ },
6479
+ {
6480
+ "kind": "Reference",
6481
+ "text": "ErrorMonitoringIntegration",
6482
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringIntegration:interface"
6483
+ },
6484
+ {
6485
+ "kind": "Content",
6486
+ "text": ">(defaults: I[]) => I[]"
6487
+ },
6488
+ {
6489
+ "kind": "Content",
6490
+ "text": ";"
6491
+ }
6492
+ ],
6493
+ "isReadonly": false,
6494
+ "isOptional": false,
6495
+ "releaseTag": "Public",
6496
+ "name": "integrations",
6497
+ "propertyTypeTokenRange": {
6498
+ "startIndex": 1,
6499
+ "endIndex": 4
6500
+ }
6501
+ }
6502
+ ],
6503
+ "extendsTokenRanges": []
6504
+ },
6505
+ {
6506
+ "kind": "Interface",
6507
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringIntegration:interface",
6508
+ "docComment": "/**\n * An SDK integration, such as one of Sentry's default integrations.\n *\n * @public\n */\n",
6509
+ "excerptTokens": [
6510
+ {
6511
+ "kind": "Content",
6512
+ "text": "export interface ErrorMonitoringIntegration "
6513
+ }
6514
+ ],
6515
+ "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
6516
+ "releaseTag": "Public",
6517
+ "name": "ErrorMonitoringIntegration",
6518
+ "preserveMemberOrder": false,
6519
+ "members": [
6520
+ {
6521
+ "kind": "PropertySignature",
6522
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringIntegration#name:member",
6523
+ "docComment": "",
6524
+ "excerptTokens": [
6525
+ {
6526
+ "kind": "Content",
6527
+ "text": "name: "
6528
+ },
6529
+ {
6530
+ "kind": "Content",
6531
+ "text": "string"
6532
+ },
6533
+ {
6534
+ "kind": "Content",
6535
+ "text": ";"
6536
+ }
6537
+ ],
6538
+ "isReadonly": false,
6539
+ "isOptional": false,
6540
+ "releaseTag": "Public",
6541
+ "name": "name",
6542
+ "propertyTypeTokenRange": {
6543
+ "startIndex": 1,
6544
+ "endIndex": 2
6545
+ }
5963
6546
  }
5964
6547
  ],
5965
6548
  "extendsTokenRanges": []
@@ -6094,7 +6677,7 @@
6094
6677
  {
6095
6678
  "kind": "PropertySignature",
6096
6679
  "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions#init:member",
6097
- "docComment": "/**\n * Initialises the client in place of calling `client.init`.\n */\n",
6680
+ "docComment": "/**\n * Initialises the client in place of calling `client.init`. Set `traceLifecycle` in `initOptions`, not here: the defaults for tracing depend on it.\n */\n",
6098
6681
  "excerptTokens": [
6099
6682
  {
6100
6683
  "kind": "Content",
@@ -6130,7 +6713,7 @@
6130
6713
  {
6131
6714
  "kind": "PropertySignature",
6132
6715
  "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions#initOptions:member",
6133
- "docComment": "/**\n * Extra options merged into what the client's `init` receives, e.g. Sentry's `dataCollection`.\n */\n",
6716
+ "docComment": "/**\n * Extra options for the client's `init`, combined with the defaults as each one describes.\n */\n",
6134
6717
  "excerptTokens": [
6135
6718
  {
6136
6719
  "kind": "Content",
@@ -6158,6 +6741,169 @@
6158
6741
  ],
6159
6742
  "extendsTokenRanges": []
6160
6743
  },
6744
+ {
6745
+ "kind": "Interface",
6746
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringSpan:interface",
6747
+ "docComment": "/**\n * A tracing span about to be sent: its `attributes` when spans are streamed, or its `data` inside a transaction.\n *\n * @public\n */\n",
6748
+ "excerptTokens": [
6749
+ {
6750
+ "kind": "Content",
6751
+ "text": "export interface ErrorMonitoringSpan "
6752
+ }
6753
+ ],
6754
+ "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
6755
+ "releaseTag": "Public",
6756
+ "name": "ErrorMonitoringSpan",
6757
+ "preserveMemberOrder": false,
6758
+ "members": [
6759
+ {
6760
+ "kind": "PropertySignature",
6761
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringSpan#attributes:member",
6762
+ "docComment": "",
6763
+ "excerptTokens": [
6764
+ {
6765
+ "kind": "Content",
6766
+ "text": "attributes?: "
6767
+ },
6768
+ {
6769
+ "kind": "Reference",
6770
+ "text": "Record",
6771
+ "canonicalReference": "!Record:type"
6772
+ },
6773
+ {
6774
+ "kind": "Content",
6775
+ "text": "<string, unknown>"
6776
+ },
6777
+ {
6778
+ "kind": "Content",
6779
+ "text": ";"
6780
+ }
6781
+ ],
6782
+ "isReadonly": false,
6783
+ "isOptional": true,
6784
+ "releaseTag": "Public",
6785
+ "name": "attributes",
6786
+ "propertyTypeTokenRange": {
6787
+ "startIndex": 1,
6788
+ "endIndex": 3
6789
+ }
6790
+ },
6791
+ {
6792
+ "kind": "PropertySignature",
6793
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringSpan#data:member",
6794
+ "docComment": "",
6795
+ "excerptTokens": [
6796
+ {
6797
+ "kind": "Content",
6798
+ "text": "data?: "
6799
+ },
6800
+ {
6801
+ "kind": "Reference",
6802
+ "text": "Record",
6803
+ "canonicalReference": "!Record:type"
6804
+ },
6805
+ {
6806
+ "kind": "Content",
6807
+ "text": "<string, unknown>"
6808
+ },
6809
+ {
6810
+ "kind": "Content",
6811
+ "text": ";"
6812
+ }
6813
+ ],
6814
+ "isReadonly": false,
6815
+ "isOptional": true,
6816
+ "releaseTag": "Public",
6817
+ "name": "data",
6818
+ "propertyTypeTokenRange": {
6819
+ "startIndex": 1,
6820
+ "endIndex": 3
6821
+ }
6822
+ },
6823
+ {
6824
+ "kind": "PropertySignature",
6825
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringSpan#description:member",
6826
+ "docComment": "",
6827
+ "excerptTokens": [
6828
+ {
6829
+ "kind": "Content",
6830
+ "text": "description?: "
6831
+ },
6832
+ {
6833
+ "kind": "Content",
6834
+ "text": "string"
6835
+ },
6836
+ {
6837
+ "kind": "Content",
6838
+ "text": ";"
6839
+ }
6840
+ ],
6841
+ "isReadonly": false,
6842
+ "isOptional": true,
6843
+ "releaseTag": "Public",
6844
+ "name": "description",
6845
+ "propertyTypeTokenRange": {
6846
+ "startIndex": 1,
6847
+ "endIndex": 2
6848
+ }
6849
+ },
6850
+ {
6851
+ "kind": "PropertySignature",
6852
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringSpan#name:member",
6853
+ "docComment": "",
6854
+ "excerptTokens": [
6855
+ {
6856
+ "kind": "Content",
6857
+ "text": "name?: "
6858
+ },
6859
+ {
6860
+ "kind": "Content",
6861
+ "text": "string"
6862
+ },
6863
+ {
6864
+ "kind": "Content",
6865
+ "text": ";"
6866
+ }
6867
+ ],
6868
+ "isReadonly": false,
6869
+ "isOptional": true,
6870
+ "releaseTag": "Public",
6871
+ "name": "name",
6872
+ "propertyTypeTokenRange": {
6873
+ "startIndex": 1,
6874
+ "endIndex": 2
6875
+ }
6876
+ },
6877
+ {
6878
+ "kind": "PropertySignature",
6879
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringSpan#op:member",
6880
+ "docComment": "",
6881
+ "excerptTokens": [
6882
+ {
6883
+ "kind": "Content",
6884
+ "text": "op?: "
6885
+ },
6886
+ {
6887
+ "kind": "Content",
6888
+ "text": "string"
6889
+ },
6890
+ {
6891
+ "kind": "Content",
6892
+ "text": ";"
6893
+ }
6894
+ ],
6895
+ "isReadonly": false,
6896
+ "isOptional": true,
6897
+ "releaseTag": "Public",
6898
+ "name": "op",
6899
+ "propertyTypeTokenRange": {
6900
+ "startIndex": 1,
6901
+ "endIndex": 2
6902
+ }
6903
+ }
6904
+ ],
6905
+ "extendsTokenRanges": []
6906
+ },
6161
6907
  {
6162
6908
  "kind": "TypeAlias",
6163
6909
  "canonicalReference": "@genesislcap/foundation-utils!EventName:type",
@@ -19153,7 +19899,7 @@
19153
19899
  {
19154
19900
  "kind": "Function",
19155
19901
  "canonicalReference": "@genesislcap/foundation-utils!setupErrorMonitoring:function(1)",
19156
- "docComment": "/**\n * Sets up error monitoring for a Genesis app in one call.\n *\n * @remarks\n *\n * Without a DSN, or when no environment applies (by default on local hosts such as `localhost` or a private IP address), it does nothing and resolves `false`. The environment defaults to the page's hostname, so one image promoted across environments reports each under its own name; pass a function to map hostnames to names such as `uat`. Otherwise it:\n *\n * - initialises the client (`client.init`, or `options.init`) with the DSN, environment, a `beforeBreadcrumb` that drops the SDK's console breadcrumbs for foundation logger output (they carry the logged arguments), and any `initOptions`; - registers a global log reporter ({@link createErrorMonitoringReporter}), so errors logged by every foundation logger, including those Genesis packages create at import time, are reported, and other logs become breadcrumbs. Only log messages and exceptions are sent, never logged data.\n *\n * Logs written while an asynchronous `init` runs (the last 100) are reported once it finishes. If `init` throws or rejects, for example when a lazily loaded SDK fails to download, it warns on the console and resolves `false` rather than rejecting.\n *\n * Errors caught by the foundation-react-utils `AppErrorBoundary` and `TileErrorBoundary` are logged with their reference ID and component stack in the message, so they are reported too without an `onError`. Pair them with `onCaughtError` on the React root.\n *\n * Calling it again replaces the previous reporter, or removes it if the new call has no DSN or environment. When calls overlap, only the last one takes effect, and the earlier ones resolve `false`.\n *\n * @param client - The monitoring SDK (for example the Sentry namespace) or an adapter for one.\n *\n * @param options - The DSN, the environment, and extra init options.\n *\n * @returns Whether this call enabled monitoring.\n *\n * @example\n * ```ts\n * import * as Sentry from '@sentry/react';\n * import { setupErrorMonitoring } from '@genesislcap/foundation-utils';\n *\n * setupErrorMonitoring(Sentry, {\n * dsn: 'https://<key>@<org>.ingest.sentry.io/<project>',\n * environment: ({ hostname }) => ({ 'app-uat.example.com': 'uat', 'app.example.com': 'prod' })[hostname],\n * });\n * ```\n *\n * @public\n */\n",
19902
+ "docComment": "/**\n * Sets up error monitoring for a Genesis app in one call.\n *\n * @remarks\n *\n * Without a DSN, or when no environment applies (by default on local hosts such as `localhost` or a private IP address), it does nothing and resolves `false`. The environment defaults to the page's hostname, so one image promoted across environments reports each under its own name. To use names such as `uat`, read one the deployment sets rather than listing hostnames, which would show everyone who loads the bundle where the other environments are. Otherwise it:\n *\n * - initialises the client (`client.init`, or `options.init`) with the DSN, the environment, any `initOptions`, and defaults that keep page data out of what the SDK collects by itself: Sentry 11's `dataCollection` off for user info, cookies, headers but `User-Agent`, bodies and URL queries; only the default integrations that send nothing from the page (so not `Console`); no console, click or input breadcrumbs; and no query strings or fragments in breadcrumb URLs, the page URL, or span URLs and resource span names when tracing is on. The app's `beforeBreadcrumb`, `beforeSend`, `beforeSendTransaction` and `beforeSendSpan` run after these, and its `integrations` are added; - registers a global log reporter ({@link createErrorMonitoringReporter}), so errors logged by every foundation logger, including those Genesis packages create at import time, are reported, and other logs become breadcrumbs. Only log messages and exceptions are sent, never logged data.\n *\n * Logs written while an asynchronous `init` runs (the last 100) are reported once it finishes. If `init` throws or rejects, for example when a lazily loaded SDK fails to download, it warns on the console and resolves `false` rather than rejecting.\n *\n * Errors caught by the foundation-react-utils `AppErrorBoundary` and `TileErrorBoundary` are logged with their reference ID and component stack in the message, so they are reported too without an `onError`. Pair them with `onCaughtError` on the React root.\n *\n * Calling it again replaces the previous reporter, or removes it if the new call has no DSN or environment. When calls overlap, only the last one takes effect, and the earlier ones resolve `false`.\n *\n * @param client - The monitoring SDK (for example the Sentry namespace) or an adapter for one.\n *\n * @param options - The DSN, the environment, and extra init options.\n *\n * @returns Whether this call enabled monitoring.\n *\n * @example\n * ```ts\n * import * as Sentry from '@sentry/react';\n * import { setupErrorMonitoring } from '@genesislcap/foundation-utils';\n *\n * setupErrorMonitoring(Sentry, {\n * dsn: 'https://<key>@<org>.ingest.sentry.io/<project>',\n * environment: () =>\n * document.querySelector<HTMLMetaElement>('meta[name=\"error-monitoring-environment\"]')?.content,\n * });\n * ```\n *\n * @public\n */\n",
19157
19903
  "excerptTokens": [
19158
19904
  {
19159
19905
  "kind": "Content",