-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix(opentelemetry): adjust default value for store_spans_in_file
causing traces to be produced to a file named None
#8741
fix(opentelemetry): adjust default value for store_spans_in_file
causing traces to be produced to a file named None
#8741
Conversation
…using traces to be produced to a file named `None` The commit 5f48193 introduced `store_spans_in_file` with the default value `None` as a string. This causes the value of `store_spans_in_file` to be a not empty string, value=None as a string and not a null value. The rest of the code check if the store_spans_in_file is not null which squeezes the rest of the code. The following commit set the default value as an empty string. Signed-off-by: Wilfried Roset <[email protected]>
ac31e9b
to
045079c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
Signed-off-by: Wilfried Roset <[email protected]>
I don't know whether this fixes #8566, but this change should be merged nonetheless since writing to a file |
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #8751 🤖 @patchback |
…using traces to be produced to a file named `None` (#8741) * fix(opentelemetry): adjust default value for `store_spans_in_file` causing traces to be produced to a file named `None` The commit 5f48193 introduced `store_spans_in_file` with the default value `None` as a string. This causes the value of `store_spans_in_file` to be a not empty string, value=None as a string and not a null value. The rest of the code check if the store_spans_in_file is not null which squeezes the rest of the code. The following commit set the default value as an empty string. Signed-off-by: Wilfried Roset <[email protected]> * fix(opentelemetry): No default value is better, reword changelog Signed-off-by: Wilfried Roset <[email protected]> --------- Signed-off-by: Wilfried Roset <[email protected]> (cherry picked from commit 73b5413)
@wilfriedroset thanks for fixing this! |
…ault value for `store_spans_in_file` causing traces to be produced to a file named `None` (#8751) fix(opentelemetry): adjust default value for `store_spans_in_file` causing traces to be produced to a file named `None` (#8741) * fix(opentelemetry): adjust default value for `store_spans_in_file` causing traces to be produced to a file named `None` The commit 5f48193 introduced `store_spans_in_file` with the default value `None` as a string. This causes the value of `store_spans_in_file` to be a not empty string, value=None as a string and not a null value. The rest of the code check if the store_spans_in_file is not null which squeezes the rest of the code. The following commit set the default value as an empty string. Signed-off-by: Wilfried Roset <[email protected]> * fix(opentelemetry): No default value is better, reword changelog Signed-off-by: Wilfried Roset <[email protected]> --------- Signed-off-by: Wilfried Roset <[email protected]> (cherry picked from commit 73b5413) Co-authored-by: Wilfried ROSET <[email protected]>
…using traces to be produced to a file named `None` (ansible-collections#8741) * fix(opentelemetry): adjust default value for `store_spans_in_file` causing traces to be produced to a file named `None` The commit 5f48193 introduced `store_spans_in_file` with the default value `None` as a string. This causes the value of `store_spans_in_file` to be a not empty string, value=None as a string and not a null value. The rest of the code check if the store_spans_in_file is not null which squeezes the rest of the code. The following commit set the default value as an empty string. Signed-off-by: Wilfried Roset <[email protected]> * fix(opentelemetry): No default value is better, reword changelog Signed-off-by: Wilfried Roset <[email protected]> --------- Signed-off-by: Wilfried Roset <[email protected]>
…using traces to be produced to a file named `None` (ansible-collections#8741) * fix(opentelemetry): adjust default value for `store_spans_in_file` causing traces to be produced to a file named `None` The commit 5f48193 introduced `store_spans_in_file` with the default value `None` as a string. This causes the value of `store_spans_in_file` to be a not empty string, value=None as a string and not a null value. The rest of the code check if the store_spans_in_file is not null which squeezes the rest of the code. The following commit set the default value as an empty string. Signed-off-by: Wilfried Roset <[email protected]> * fix(opentelemetry): No default value is better, reword changelog Signed-off-by: Wilfried Roset <[email protected]> --------- Signed-off-by: Wilfried Roset <[email protected]>
SUMMARY
The commit 5f48193 introduced
store_spans_in_file
with the defaultvalue
None
as a string. This causes the value ofstore_spans_in_file
to be a not empty string, value=None as a string and not a null value.
The rest of the code check if the store_spans_in_file is not null which
squeezes the rest of the code. The following commit set the default
value as an empty string.
Fixes (hopefully) #8566
ISSUE TYPE
COMPONENT NAME
community.general.opentelemetry
ADDITIONAL INFORMATION
I've used the same reproducer as #8321 with
git bisect