open-telemetry / open-telemetry/weaver

Revisit what `titleCase` filter does

Open
#571 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement template engine
Dominant language
Rust
Stars
486
Forks
108
Avg merge
3d 4h
Merged PRs (30d)
40

Description

titleCase filter today capitalizes first letter and lowers everything after. E.g. it'd change dynamoDB to Dynamodb. I'm not sure if this behavior is useful in the context of semconv. If it it, someone can do str | lower before applying title case.

I think it should only capitalize and should not lower (i.e. produce DynamoDB). Here's original issue with the workaround. https://github.com/open-telemetry/weaver/issues/415#issuecomment-2504458374

If we believe titleCase has some use in its current shape, we can consider adding another filter that would have a different behavior

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 titleCase filter and reviewing how it is used in semconv, then read the linked original issue and workaround. Decide whether the filter should preserve existing capitalization or whether a separate behavior is needed; done means the chosen semantics are implemented and verified for inputs such as dynamoDB.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.