Skip to content

Conversation

@malafeev
Copy link

@malafeev malafeev commented Apr 4, 2019

fix for #6
we need it for SpecialAgent
@pavolloffay please review

…raceWithActiveSpanOnly = false

Signed-off-by: Sergei Malafeev <sergeymalafeev@gmail.com>
Copy link
Collaborator

@sjoerdtalsma sjoerdtalsma left a comment

Choose a reason for hiding this comment

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

I see a lot of repetition of:

Scope scope = null;
if (tracer.activeSpan() == null && !traceWithActiveSpanOnly) {
    scope = tracer.buildSpan(operationName).startActive(true);
}

Could you extract that part into a separate method? I think it would make the code cleaner.

Signed-off-by: Sergei Malafeev <sergeymalafeev@gmail.com>
@malafeev
Copy link
Author

malafeev commented Apr 4, 2019

@sjoerdtalsma done

@malafeev
Copy link
Author

malafeev commented Apr 5, 2019

@sjoerdtalsma , @pavolloffay does it looks fine?
Could you approve-merge-release?
We are blocked by this one.

Copy link

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

LGTM. Perhaps a method could have a better name, but it looks OK in general.

@jpkrohling jpkrohling requested a review from sjoerdtalsma April 5, 2019 07:38
malafeev added 2 commits April 5, 2019 15:45
Signed-off-by: Sergei Malafeev <sergeymalafeev@gmail.com>
Signed-off-by: Sergei Malafeev <sergeymalafeev@gmail.com>
Copy link
Collaborator

@sjoerdtalsma sjoerdtalsma left a comment

Choose a reason for hiding this comment

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

Looks good to me

Signed-off-by: Sergei Malafeev <sergeymalafeev@gmail.com>
@jpkrohling jpkrohling merged commit 2d1285f into opentracing-contrib:master Apr 5, 2019
@malafeev
Copy link
Author

malafeev commented Apr 5, 2019

thanks guys.
could you release new version?

@pavolloffay
Copy link
Collaborator

Sure I will cut a new one

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.

4 participants