Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Add get data of span method #1008

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add get data of span method #1008

wants to merge 2 commits into from

Commits on Jan 3, 2019

  1. Add get data of span method

    return the data of span to allow accessing all info of a span.
    
    just return the value of data instead a pointer to avoid changing by user.
    yore-new committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    c42e146 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2019

  1. Add flag to force generate span data

    span data will not init if span is not sampled and not enable
    local span storage. so add a flag to force generate span data.
    this operation will have a little more memery overhead, but
    it can be use to get all information when we get a span. we can
    use the information to do logging and rebuild the trace from
    logs.
    
    also change SpanData method to use makeSpanData result, because
    shallow copy of span.data would allow for mutating for instance
    the Attributes map (and get some concurrent access nasties).
    yore-new committed Jan 4, 2019
    Configuration menu
    Copy the full SHA
    a759ac1 View commit details
    Browse the repository at this point in the history