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

[receiver/splunkhec] Fix the double encoding of JSON responses #27606

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Oct 10, 2023

Description:
We would double-encode JSON objects as strings. We typically have encoded strings as JSON strings as static responses to issues encountered during data processing. Along the way, we adopted JSON objects to match the Splunk Enterprise API. However, we didn't stop encoding as JSON strings, resulting in double encoded JSON strings.

Link to tracking Issue:
Fixes #27604

Testing:
Unit test changes.

@atoulme atoulme added the ready to merge Code review completed; ready to merge by maintainers label Oct 27, 2023
@atoulme
Copy link
Contributor Author

atoulme commented Oct 27, 2023

@dmitryax I made changes per your request, can we merge this?

@dmitryax dmitryax merged commit 7772e02 into open-telemetry:main Oct 27, 2023
87 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
…telemetry#27606)

**Description:**
We would double-encode JSON objects as strings. We typically have
encoded strings as JSON strings as static responses to issues
encountered during data processing. Along the way, we adopted JSON
objects to match the Splunk Enterprise API. However, we didn't stop
encoding as JSON strings, resulting in double encoded JSON strings.

**Link to tracking Issue:**
Fixes open-telemetry#27604 

**Testing:**
Unit test changes.
@atoulme atoulme deleted the json_error_codes branch October 27, 2023 06:20
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this pull request Nov 12, 2023
…telemetry#27606)

**Description:**
We would double-encode JSON objects as strings. We typically have
encoded strings as JSON strings as static responses to issues
encountered during data processing. Along the way, we adopted JSON
objects to match the Splunk Enterprise API. However, we didn't stop
encoding as JSON strings, resulting in double encoded JSON strings.

**Link to tracking Issue:**
Fixes open-telemetry#27604 

**Testing:**
Unit test changes.
RoryCrispin pushed a commit to ClickHouse/opentelemetry-collector-contrib that referenced this pull request Nov 24, 2023
…telemetry#27606)

**Description:**
We would double-encode JSON objects as strings. We typically have
encoded strings as JSON strings as static responses to issues
encountered during data processing. Along the way, we adopted JSON
objects to match the Splunk Enterprise API. However, we didn't stop
encoding as JSON strings, resulting in double encoded JSON strings.

**Link to tracking Issue:**
Fixes open-telemetry#27604 

**Testing:**
Unit test changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers receiver/splunkhec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double encoding of JSON responses
3 participants