typelevel / typelevel/otel4s

Laws for text map type classes?

Open
#196 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
215
Forks
49
Avg merge
2d 5h
Merged PRs (30d)
17

Description

Getter:
keys-get consistency: forAll { (carrier) => keys(carrier).forall(key => get(carrier, key).isDefined)?

Updater:
idempotence?: forAll { (carrier, k, v) => updated(carrier, k, v) === updated(updated(carrier, k, v), k, v)

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 locating the text map type classes and their existing law or test coverage in the repository. Check whether the proposed getter consistency and updater idempotence properties apply, then add tests for the applicable laws and run the relevant test suite to confirm they hold.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
observability, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.