Skip to content

the tracer default span's id may equal it parent id  #10

@riccccck

Description

@riccccck

in tracer.php

$span = new Span(
    TracerInfo::getTraceSpanId(),
    $this->name,
    new AnnotationBlock(
        $this->endpoint,
        $this->startTimestamp,
        zipkin_timestamp(),
        AnnotationBlock::SERVER
    )
);

in span.php

$this->setIdentifier('parentId', $parentId, [TracerInfo::class, 'getTraceSpanId']);

when tracer type is backend, the tracer default span's id equal parentId.
Is it right ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions