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

Fix global tracer delegation #159

Closed
wants to merge 1 commit into from
Closed

Fix global tracer delegation #159

wants to merge 1 commit into from

Conversation

andrew0
Copy link

@andrew0 andrew0 commented Mar 5, 2021

The base Tracer class wraps the startSpan, inject, and extract functions with some compatibility utilities. Subclasses need to override the _-prefixed functions to avoid overriding the wrapper functionality.

With the current implementation, the childOf option does not work with LightStep if you use the global tracer function. It tells me that there is an unknown option childOf, since the delegate is overriding the wrong functions.

The base Tracer class wraps the `startSpan`, `inject`, and `extract` functions with some compatibility utilities. Subclasses need to override the `_`-prefixed functions to avoid overriding the wrapper functionality.
@andrew0 andrew0 closed this Mar 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant