There was an error while loading. Please reload this page.
1 parent 9aaa299 commit 0f14554Copy full SHA for 0f14554
1 file changed
src/functions.ts
@@ -25,7 +25,7 @@ export function childOf(spanContext: SpanContext | Span): Reference {
25
* reference.
26
* @return a REFERENCE_FOLLOWS_FROM reference pointing to `spanContext`
27
*/
28
-export function followsFrom(spanContext: SpanContext): Reference {
+export function followsFrom(spanContext: SpanContext | Span): Reference {
29
// Allow the user to pass a Span instead of a SpanContext
30
if (spanContext instanceof Span) {
31
spanContext = spanContext.context();
0 commit comments