Skip to content

[Core Tracing] Add plugin type to tracer interface#4668

Merged
ramya-rao-a merged 3 commits intoAzure:masterfrom
ramya-rao-a:tracer-type
Aug 5, 2019
Merged

[Core Tracing] Add plugin type to tracer interface#4668
ramya-rao-a merged 3 commits intoAzure:masterfrom
ramya-rao-a:tracer-type

Conversation

@ramya-rao-a
Copy link
Contributor

This PR adds a property to the Tracer interface to identify the plugin type being used.

This is useful when trying to decide whether or not tracer context should be added to the headers for a request

@ramya-rao-a ramya-rao-a requested review from bterlson and chradek August 5, 2019 19:47
import { SupportedPlugins } from '../../utils/supportedPlugins';

export class TracerNoOpImpl implements Tracer {
public get pluginType() : SupportedPlugins {
Copy link
Member

Choose a reason for hiding this comment

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

Why is this a getter?

Copy link
Member

Choose a reason for hiding this comment

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

readonly field would probably be more appropriate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed with 66e6792

@ramya-rao-a ramya-rao-a dismissed bterlson’s stale review August 5, 2019 20:02

Comment has been addressed

@ramya-rao-a ramya-rao-a merged commit 3ee869f into Azure:master Aug 5, 2019
@ramya-rao-a ramya-rao-a deleted the tracer-type branch August 5, 2019 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants