Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: #260: add open-tracing support #278

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

WIP: #260: add open-tracing support #278

wants to merge 5 commits into from

Conversation

ravicm2
Copy link
Member

@ravicm2 ravicm2 commented Jul 27, 2020

PR for issue #260 (open tracing)

@ravicm2 ravicm2 requested a review from maihacke July 27, 2020 05:43
Copy link
Member

@maihacke maihacke left a comment

Choose a reason for hiding this comment

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

I made a few comments to the code. On top of that I see the following points:

  • There is obviously some clean up needed for the commented out code
  • I'm missing the part for http/rest which parses the http-headers and initializes the tracing with the values (e.g. for logging).

<dependency>
<groupId>io.opentracing</groupId>
<artifactId>opentracing-api</artifactId>
<version>0.33.0</version>
Copy link
Member

Choose a reason for hiding this comment

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

This version should go to the bom

<dependency>
<groupId>io.jaegertracing</groupId>
<artifactId>jaeger-client</artifactId>
<version>0.32.0</version>
Copy link
Member

Choose a reason for hiding this comment

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

This version should go to the bom

Tags.ERROR.set(span, true);
span.log(Map.of(Fields.EVENT, "error", Fields.ERROR_OBJECT, ex, Fields.MESSAGE, ex.getMessage()));
} finally {
span.finish();
Copy link
Member

Choose a reason for hiding this comment

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

I do not get the point here? why is the span immediatly closed after setting the headers? Should the span be closed after the http request is made?

Copy link
Member Author

Choose a reason for hiding this comment

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

@maihacke i thought a for each rest call, the request comes to this ServletHeaderContext class. so the setting the span to the headers and closing it. for the next call , new span is created , logged, set to the headers and closed.

@hohwille hohwille changed the title Draft PR of issue #260 WIP: #260: add open-tracing support Aug 21, 2020
@hohwille hohwille changed the base branch from develop to master January 7, 2021 15:57
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Ravichandran M seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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