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

trace: add starttime start option #1176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 25, 2019

  1. trace: add starttime start option

    Adds a StartTime option when creating a new span.
    In some cases, you are able to trace only after the operation
    was made. for example in some post-operation hook/observer.
    
        func myHook(ctx context.Context, info queryInfo) {
           _, span := StartSpan("mydatabase", WithStartTime(time.Now().Add(-1 * info.Duration()))
           span.End()
        }
    gwik committed Sep 25, 2019
    Configuration menu
    Copy the full SHA
    35e0833 View commit details
    Browse the repository at this point in the history