Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 0f14554

Browse files
justinchouyurishkuro
authored andcommitted
The argument of followsFrom function should support Span (#109)
* Fix params type error. The followsFrom function should have alternative args type of `Span`.
1 parent 9aaa299 commit 0f14554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function childOf(spanContext: SpanContext | Span): Reference {
2525
* reference.
2626
* @return a REFERENCE_FOLLOWS_FROM reference pointing to `spanContext`
2727
*/
28-
export function followsFrom(spanContext: SpanContext): Reference {
28+
export function followsFrom(spanContext: SpanContext | Span): Reference {
2929
// Allow the user to pass a Span instead of a SpanContext
3030
if (spanContext instanceof Span) {
3131
spanContext = spanContext.context();

0 commit comments

Comments
 (0)