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

feat(span): make tracer available on span #629

Merged
merged 3 commits into from
Jul 17, 2019

Conversation

hekike
Copy link
Contributor

@hekike hekike commented Jul 13, 2019

Making tracer always available on spans would make it easier to create child spans from existing span instances when you pass your span around.

Further explanation:
open-telemetry/opentelemetry-specification#21

@@ -31,6 +29,8 @@ export class NoRecordRootSpan extends NoRecordSpan {
* parent was likely started on another machine.
*/
private parentSpanIdLocal: string;
/** A tracer object */
tracer: types.TracerBase;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be readonly? (Applies to other uses below too)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it

@mayurkale22
Copy link
Member

Please update the CHANGELOG with new feat.

@hekike
Copy link
Contributor Author

hekike commented Jul 16, 2019

@mayurkale22 I added.

@mayurkale22 mayurkale22 merged commit ad6c0d4 into census-instrumentation:master Jul 17, 2019
@mayurkale22 mayurkale22 added this to the Release 0.0.16 milestone Jul 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants