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

Release 0.1.6 #8

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

Anisetti-Jayathi-ML
Copy link
Collaborator

@Anisetti-Jayathi-ML Anisetti-Jayathi-ML commented Apr 23, 2024

Issue: Getting this error in logs when tracing enabled for odoo16 application

end_transaction(elasticapm, client, request, response) # add before return response
File "/home/isha/isha/sushumna_16/venv/lib/python3.7/site-packages/sf_apm_lib/snappyflow.py", line 136, in end_transaction
val = request.params.get(key)
AttributeError: 'Request' object has no attribute 'params'

Root cause: As there is code to handle "if there is no params attribute in request attribute" case in end_transaction()
we are getting this error.

Changes made : Added code in snappyflow.py end_transaction() to handle if there is no params attribute in request attribute case.

Testcases executed:

Added changes locally
image

previously we are getting this error

MicrosoftTeams-image (8)

And after making changes its running without any errors

image

And getting traces successfully

image

@Deepa-Martin-ML Deepa-Martin-ML merged commit ed6d3d0 into snappyflow:main Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants