microsoft / FluidFramework

Library for building distributed, real-time collaborative web applications
https://fluidframework.com
MIT License
4.74k stars 535 forks source link

feat(odsp-driver): Add logging property if doc is in dogfood or MSIT server environments #23186

Closed markfields closed 3 days ago

markfields commented 3 days ago

Description

Fixes AB#16011

Sometimes we are investigating a live site incident with our 1P customers, and it would be helpful to know which service environment (SharePoint "Farm") the document belongs to, since different settings or code can be deployed to these independently. We can get a reasonable proxy of this by inspecting the domain of the URL against some known patterns.

We are computing/logging this for trees-latest and create-New events - should typically be once per session.

msfluid-bot commented 3 days ago
@fluid-example/bundle-size-tests: +1.04 KB
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 467.26 KB 467.3 KB +35 Bytes
azureClient.js 564.03 KB 564.08 KB +49 Bytes
connectionState.js 724 Bytes 724 Bytes No change
containerRuntime.js 263.45 KB 263.47 KB +14 Bytes
fluidFramework.js 428.91 KB 428.92 KB +14 Bytes
loader.js 134.18 KB 134.19 KB +14 Bytes
map.js 42.71 KB 42.71 KB +7 Bytes
matrix.js 150.15 KB 150.16 KB +7 Bytes
odspClient.js 530.39 KB 530.68 KB +297 Bytes
odspDriver.js 98.41 KB 98.67 KB +269 Bytes
odspPrefetchSnapshot.js 42.81 KB 43.05 KB +242 Bytes
sharedString.js 166.23 KB 166.24 KB +7 Bytes
sharedTree.js 419.37 KB 419.37 KB +7 Bytes
Total Size 3.38 MB 3.38 MB +1.04 KB

Baseline commit: 4e4b3e737a788dbd7dbb74c943db60bbd903640b

Generated by :no_entry_sign: dangerJS against 8284eebf8ddc97fba08cf6f2ef2ece275df34a13