sentry-go icon indicating copy to clipboard operation
sentry-go copied to clipboard

Feat: another API like `ContinueFromRequest` but allow parameter (not http.Request)

Open yeqown opened this issue 3 years ago • 1 comments

Summary

another API like ContinueFromRequest but allow a different parameter (not http.Request)

Motivation

support trace information transfer across process bwtween different protocols

Additional Context

maybe looks like:

func ContinueFromXXXX(trace string) SpanOption {
	return func(s *Span) {
		if trace == "" {
                        return
                 }
		s.updateFromSentryTrace([]byte(trace))
	}
}

yeqown avatar Oct 22 '21 07:10 yeqown

For example, in this issue #240:

  • how to extract trace info from request?
  • how to inject trace info into context.Context

yeqown avatar Oct 22 '21 07:10 yeqown

Fixed in v0.14.0 via https://github.com/getsentry/sentry-go/pull/434

cleptric avatar Oct 30 '22 22:10 cleptric