Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename telemetry prop #9045

Merged
merged 6 commits into from
Feb 8, 2022
Merged

Conversation

markfields
Copy link
Member

The office telemetry logging code doesn't like dashes in telemetry prop names. I thought I fixed this in #8449 but the fix was incomplete. That PR addressed the error case, but I didn't realize that for successful requests we were stashing the same telemetry prop on the internal response object and later logging it as well.

So I fixed that, and renamed the property bag to be more clear that it's for logging and not for business logic.

It is initialized with common headers
but used to tack on other stuff to log
@markfields
Copy link
Member Author

@abrahamrq FYI

@msfluid-bot
Copy link
Collaborator

msfluid-bot commented Feb 8, 2022

@fluid-example/bundle-size-tests: -228 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 380.91 KB 380.91 KB No change
containerRuntime.js 181.7 KB 181.7 KB No change
loader.js 158.97 KB 158.97 KB No change
map.js 50.64 KB 50.64 KB No change
matrix.js 145.45 KB 145.45 KB No change
odspDriver.js 194.18 KB 193.99 KB -192 Bytes
odspPrefetchSnapshot.js 45.43 KB 45.4 KB -36 Bytes
sharedString.js 166.37 KB 166.37 KB No change
Total Size 1.32 MB 1.32 MB -228 Bytes

Baseline commit: bf1ff87

Generated by 🚫 dangerJS against 26e3e4c

@vladsud
Copy link
Contributor

vladsud commented Feb 8, 2022

Feels like the "fix" should be on FFX side. I.e. nothing in the system prevents some layer using dashes, and that maybe fine for other systems.

@markfields markfields merged commit 03b56f3 into microsoft:main Feb 8, 2022
@markfields markfields deleted the logging-headers branch February 8, 2022 23:58
heliocliu pushed a commit to heliocliu/FluidFramework-1 that referenced this pull request Feb 17, 2022
The office telemetry logging code doesn't like dashes in telemetry prop names. I thought I fixed this in microsoft#8449 but the fix was incomplete. That PR addressed the error case, but I didn't realize that for successful requests we were stashing the same telemetry prop on the internal response object and later logging it as well.

So I fixed that, and renamed the property bag to be more clear that it's for logging and not for business logic.
heliocliu pushed a commit to heliocliu/FluidFramework-1 that referenced this pull request Feb 17, 2022
The office telemetry logging code doesn't like dashes in telemetry prop names. I thought I fixed this in microsoft#8449 but the fix was incomplete. That PR addressed the error case, but I didn't realize that for successful requests we were stashing the same telemetry prop on the internal response object and later logging it as well.

So I fixed that, and renamed the property bag to be more clear that it's for logging and not for business logic.
heliocliu added a commit that referenced this pull request Feb 17, 2022
The office telemetry logging code doesn't like dashes in telemetry prop names. I thought I fixed this in #8449 but the fix was incomplete. That PR addressed the error case, but I didn't realize that for successful requests we were stashing the same telemetry prop on the internal response object and later logging it as well.

So I fixed that, and renamed the property bag to be more clear that it's for logging and not for business logic.

Co-authored-by: Mark Fields <markfields@users.noreply.github.com>
heliocliu added a commit that referenced this pull request Feb 17, 2022
* Rename telemetry prop (#9045)

The office telemetry logging code doesn't like dashes in telemetry prop names. I thought I fixed this in #8449 but the fix was incomplete. That PR addressed the error case, but I didn't realize that for successful requests we were stashing the same telemetry prop on the internal response object and later logging it as well.

So I fixed that, and renamed the property bag to be more clear that it's for logging and not for business logic.

* undo content change

Co-authored-by: Mark Fields <markfields@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants