Skip to content

Feature (misdirected) request: Mini-ulid library? #129

@StevenACoffman

Description

@StevenACoffman

I'm sorry for the noise, as this is really a request for the creation of a similar but related library, I'm not exactly sure of a better way to do so.

For very many purposes, OTEL TraceIDs, ULIDs (or UUIDv7) are great, and I use this library all over the place.

However, there are a few times when I am constrained to use a different number of bytes (or character representation).
Specifically, when I am generating OTEL SpanIDs, I wish there was a nice monotonic, lexicographically sortable equivalent.

See W3C Trace context trace-id

This is the ID of the whole trace forest and is used to uniquely identify a distributed trace through a system. It is represented as a 16-byte array, for example, 4bf92f3577b34da6a3ce929d0e0e4736. All bytes as zero (00000000000000000000000000000000) is considered an invalid value.

See W3C Trace context parent-id

This is the ID of this request as known by the caller (in some tracing systems, this is known as the span-id, where a span is the execution of a client request). It is represented as an 8-byte array, for example, 00f067aa0ba902b7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions