Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.
This repository was archived by the owner on May 23, 2023. It is now read-only.

SpanBuilder should initialize the start time when start() is called #84

@stealthcode

Description

@stealthcode

I'm creating SpanBuilder instances and initializing them with a parent span as well as basic tags. These builders are then used for all child span initialization. However when a second span is created using the same builder the start time of the 2nd span == start time of the 1st. This is unexpected. When you call .start() without calling .withStartTime(micros) then the start time is initialized to the relative nowish value. So I expected that every time .start() is called it generates a new span with tag data and parent span initialized.

I'm also unclear whether the starttime of a span originates from System.nanoTime() or from System.currentTimeMillis() * 1_000L.

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