Skip to content

Commit 5c45407

Browse files
committed
revert changes to queuebatch/batch_context.go
1 parent 076db15 commit 5c45407

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exporter/exporterhelper/internal/queuebatch/batch_context.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import (
1111

1212
type 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.
1717
func 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 {
3434
func 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
}

0 commit comments

Comments
 (0)