Skip to content

Update metric normalization#1729

Merged
cleptric merged 6 commits into
masterfrom
metric-normalization
Apr 10, 2024
Merged

Update metric normalization#1729
cleptric merged 6 commits into
masterfrom
metric-normalization

Conversation

@cleptric

@cleptric cleptric commented Apr 3, 2024

Copy link
Copy Markdown
Member

@cleptric cleptric self-assigned this Apr 3, 2024
@cleptric

cleptric commented Apr 3, 2024

Copy link
Copy Markdown
Member Author

@stayallive When you look at the linked docs, regarding Line Feed, Carriage Return and Tab.
I don't think you can use these characters in PHP. Or can you?

@stayallive

Copy link
Copy Markdown
Collaborator

You can right... "\n\r\t" (only inside ")?

So technically you can, but it's a stretch anyone would do it on purpose. But should also be easy to replace right? Something like str_replace(["\n", "\r", ...], ['\n', '\r', ...], $item) I'm thinking?

Comment thread src/Serializer/EnvelopItems/MetricsItem.php Outdated
@cleptric
cleptric marked this pull request as ready for review April 10, 2024 11:59

@stayallive stayallive left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code wise this looks good!

@cleptric
cleptric merged commit 1f26c26 into master Apr 10, 2024
@cleptric
cleptric deleted the metric-normalization branch April 10, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metrics Normalization

3 participants