File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -266,27 +266,6 @@ func (p remoteParent) apply(opts spanOptions) spanOptions {
266
266
return opts
267
267
}
268
268
269
- type remoteParentFromLocalSpanOption spanRef
270
-
271
- func (r remoteParentFromLocalSpanOption ) apply (opts spanOptions ) spanOptions {
272
- opts .RemoteParent = r .Meta ()
273
- sr := spanRef (r )
274
- sr .release ()
275
- return opts
276
- }
277
-
278
- // WithRemoteParentFromLocalSpan is equivalent to
279
- // WithRemoteParentFromSpanMeta(sp.Meta()), but doesn't allocate. The span will
280
- // be created with parent info, but without being linked into the parent. This
281
- // is useful when the child needs to be created with a different Tracer than the
282
- // parent - e.g. when a tenant is calling into the local KV server.
283
- func WithRemoteParentFromLocalSpan (sp * Span ) SpanOption {
284
- ref , _ /* ok */ := tryMakeSpanRef (sp )
285
- // Note that ref will be Empty if tryMakeSpanRef() failed. In that case, the
286
- // resulting span will not have a parent.
287
- return remoteParentFromLocalSpanOption (ref )
288
- }
289
-
290
269
type remoteParentFromTraceInfoOpt tracingpb.TraceInfo
291
270
292
271
var _ SpanOption = & remoteParentFromTraceInfoOpt {}
You can’t perform that action at this time.
0 commit comments