Django logging request header issue
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- backend, observability
Research direction
Start at the DjangoRequestReader class and its get_http_header method, then compare the requested correlation_id lookup with Django's request.META header format described in the issue. Done means the expected correlation_id can be retrieved through this reader, with the behavior verified against the reported request-header shape.
Written by the indexing model from the issue text.
Description
It seems we can't get expected "correlation_id" via DjangoRequestReader class.
def get_http_header(self, request, header_name, default=None):
if request is None:
return default
if header_name in request.META:
return request.META.get(header_name)
if header_name.upper() in request.META:
return request.META.get(header_name.upper())
return default
Since in Django, header name will be prefixed with "HTTP_" and replace "-" to "_" in request.META.
Is there any special consideration here?
I am glad to create a PR if it needs fix here.
- Dominant language
- Python
- Stars
- 18
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SAP/cf-python-logging-support
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
SAP/cf-python-logging-support#75 · 6 reactions ·
-
Python 3.8 Open
Difficulty 4/5 3-5 days Newbie friendliness 30/100
SAP/cf-python-logging-support#70 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in SAP/cf-python-logging-support
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100