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

[pkg/translator/azure] Decode "incorrect" JSON without failing completely #28650

Conversation

cparkins
Copy link
Contributor

Description:

When decoding from Azure Resource Log format to OTel if a numeric field is represented without quotes the data will not be decoded and will fail silently.

Link to tracking Issue:
#28648

Testing:
Invalid data captured from Azure Diagnostic Setting and used to create a unit test. Then data was reprocessed with the Event Hubs Receiver.

Documentation:
None required as this was a bug within the code.

…n though it does not meet specifications. Also allow the durationMs field to use a quoted or unquoted integer.
@MovieStoreGuy MovieStoreGuy merged commit 27a86e4 into open-telemetry:main Oct 27, 2023
83 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 27, 2023
sigilioso pushed a commit to carlossscastro/opentelemetry-collector-contrib that referenced this pull request Oct 27, 2023
…tely (open-telemetry#28650)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
When decoding from Azure Resource Log format to OTel if a numeric field
is represented without quotes the data will not be decoded and will fail
silently.

**Link to tracking Issue:** <Issue number if applicable>
open-telemetry#28648 

**Testing:** <Describe what testing was performed and which tests were
added.>
Invalid data captured from Azure Diagnostic Setting and used to create a
unit test. Then data was reprocessed with the Event Hubs Receiver.

**Documentation:** <Describe the documentation added.>
None required as this was a bug within the code.
@cparkins cparkins deleted the bugfix/pkg/translator/azure/allow-bad-numeric-values branch October 27, 2023 19:22
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this pull request Nov 12, 2023
…tely (open-telemetry#28650)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
When decoding from Azure Resource Log format to OTel if a numeric field
is represented without quotes the data will not be decoded and will fail
silently.

**Link to tracking Issue:** <Issue number if applicable>
open-telemetry#28648 

**Testing:** <Describe what testing was performed and which tests were
added.>
Invalid data captured from Azure Diagnostic Setting and used to create a
unit test. Then data was reprocessed with the Event Hubs Receiver.

**Documentation:** <Describe the documentation added.>
None required as this was a bug within the code.
RoryCrispin pushed a commit to ClickHouse/opentelemetry-collector-contrib that referenced this pull request Nov 24, 2023
…tely (open-telemetry#28650)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
When decoding from Azure Resource Log format to OTel if a numeric field
is represented without quotes the data will not be decoded and will fail
silently.

**Link to tracking Issue:** <Issue number if applicable>
open-telemetry#28648 

**Testing:** <Describe what testing was performed and which tests were
added.>
Invalid data captured from Azure Diagnostic Setting and used to create a
unit test. Then data was reprocessed with the Event Hubs Receiver.

**Documentation:** <Describe the documentation added.>
None required as this was a bug within the code.
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.

None yet

4 participants