oxidecomputer / oxidecomputer/usdt

Support `Option<&str>` and `Option<String>

Open
#488 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
145
Forks
15
Avg merge
14m
Merged PRs (30d)
6

Description

Currently &str is supported for string types, but if the string isn't always populated it would be nice to serialise a null pointer. Current workaround is passing a *const u8 which is error prone.

Contributor guide

No contributing guide indexed for this repository

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

Locate the existing serialization support for &str and any related tests, then trace how string values become probe arguments. Done means Option<&str> and Option are accepted and absent values serialize as null pointers without requiring a raw *const u8 workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
observability
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.