traceloop / traceloop/openllmetry

fix: open() calls missing encoding='utf-8' may crash on non-UTF-8 systems

Open Beginner friendly
#4,286 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.