File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
exporter/exporterhelper/internal/queuebatch Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ import (
1111
1212type traceContextKeyType int
1313
14- const BatchSpanLinksKey traceContextKeyType = iota
14+ const batchSpanLinksKey traceContextKeyType = iota
1515
1616// LinksFromContext returns a list of trace links registered in the context.
1717func LinksFromContext (ctx context.Context ) []trace.Link {
1818 if ctx == nil {
1919 return []trace.Link {}
2020 }
21- if links , ok := ctx .Value (BatchSpanLinksKey ).([]trace.Link ); ok {
21+ if links , ok := ctx .Value (batchSpanLinksKey ).([]trace.Link ); ok {
2222 return links
2323 }
2424 return []trace.Link {}
@@ -34,7 +34,7 @@ func parentsFromContext(ctx context.Context) []trace.Link {
3434func contextWithMergedLinks (ctx1 context.Context , ctx2 context.Context ) context.Context {
3535 return context .WithValue (
3636 context .Background (),
37- BatchSpanLinksKey ,
37+ batchSpanLinksKey ,
3838 append (parentsFromContext (ctx1 ), parentsFromContext (ctx2 )... ),
3939 )
4040}
You can’t perform that action at this time.
0 commit comments