From 97a966fdd447d49ee1d5c9d1b043baa6c8a60d8e Mon Sep 17 00:00:00 2001 From: "muyi.dq" Date: Wed, 31 Aug 2022 17:16:20 +0800 Subject: [PATCH] add api for injecting exit context for tracing span --- trace.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trace.go b/trace.go index 347e34f..4577db2 100644 --- a/trace.go +++ b/trace.go @@ -56,5 +56,7 @@ type Span interface { InjectContext(requestHeaders HeaderMap, requestInfo RequestInfo) + InjectExitContext(responseHeaders HeaderMap, requestInfo RequestInfo) + SpawnChild(operationName string, startTime time.Time) Span }