traceloop / traceloop/openllmetry
fix: open() calls missing encoding='utf-8' may crash on non-UTF-8 systems
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.4k
- Forks
- 1.1k
- Avg merge
- 8d 14h
- Merged PRs (30d)
- 2
Description
Several open() calls in the codebase don't specify encoding='utf-8',
which can cause UnicodeDecodeError on Windows systems with non-UTF-8
locales (e.g. GBK).
Affected files:
- packages/opentelemetry-instrumentation-qdrant/init.py (lines 26, 30)
- scripts/codegen/generate_evaluator_models.py (line 27)
Fix: add encoding='utf-8' to all text-mode open() calls.
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.
Research direction
Start by inspecting the open() calls at lines 26 and 30 of packages/opentelemetry-instrumentation-qdrant/init.py and line 27 of scripts/codegen/generate_evaluator_models.py. Check each text-mode call and confirm that all affected calls specify UTF-8 encoding. Done means those listed calls no longer depend on the system locale.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100