StackExchange / StackExchange/StackExchange.Redis
[Improvement] [Open Telemetry] Add db.operation attribute
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.2k
- Forks
- 1.6k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
Currently, the trace attributes emmited by StackExchange.Redis there is only db.statement attribute that for many commands contains the full command with its parameters, which makes it close to impossible to group by the operation.
So the request it to add a new attribute - db.operation that will only contain the operation without the parameters. This will make it easier to analyse traces by the grouping by the operation.
PS: PHP Open Telemetry SDK emmits both db.statement and db.operation
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 locating StackExchange.Redis trace attribute emission and the existing db.statement handling; the issue does not name specific files or tests. Verify how commands are represented, then add db.operation as the operation without parameters while preserving db.statement, with tests confirming both attributes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, redis
- Domain
- databases, observability
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100