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

OpenTracing support #595

Merged
merged 1 commit into from
Apr 3, 2019
Merged

OpenTracing support #595

merged 1 commit into from
Apr 3, 2019

Conversation

whiskeysierra
Copy link
Collaborator

Description

Added the ability to manage client span(s), decorate spans and inject the span context into requests.

Motivation and Context

#509

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@whiskeysierra
Copy link
Collaborator Author

@pc-alves @lmineiro Feedback is highly appreciated! 🔎

@whiskeysierra
Copy link
Collaborator Author

Merge is blocked by zalando/opentracing-toolbox#204 which in turn requires opentracing/opentracing-java#314

Copy link
Member

@lukasniemeier-zalando lukasniemeier-zalando left a comment

Choose a reason for hiding this comment

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

We will also have to update the README of the starter

riptide-opentracing/README.md Outdated Show resolved Hide resolved
riptide-opentracing/README.md Outdated Show resolved Hide resolved
If you still want to enable it, you can do so by just registering the missing span decorator:

```java
new OpenTracingPlguin(tracer)

Choose a reason for hiding this comment

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

typo: s/OpenTracingPlguin/OpenTracingPlugin

riptide-opentracing/README.md Outdated Show resolved Hide resolved
riptide-opentracing/README.md Outdated Show resolved Hide resolved
riptide-opentracing/README.md Show resolved Hide resolved
return extract(template, arguments.getUriVariables());
}

@Hack("Pretty dirty, but I couldn't find any other way...")

Choose a reason for hiding this comment

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

🤣

@whiskeysierra
Copy link
Collaborator Author

I should add a test that verifies that an error response that is retried and eventually succeeds is not counted as an error. The first attempt should though.

@whiskeysierra
Copy link
Collaborator Author

For retries we might want to use follows-from rather than child-of. @lmineiro @pc-alves Your thoughts?

@pc-alves
Copy link

pc-alves commented Mar 1, 2019

Retries should still use the childOf relationship type. The guideline is that childOf should be used when "the parent Span depends on the child Span in some capacity" (OpenTracing Specification - References between Spans). This still holds true for retries.

@whiskeysierra
Copy link
Collaborator Author

Alright, that works then. Thanks for the info!

@whiskeysierra whiskeysierra force-pushed the feature/opentracing branch 3 times, most recently from 2123c7f to 28486f6 Compare March 8, 2019 11:32
@whiskeysierra whiskeysierra force-pushed the feature/opentracing branch 3 times, most recently from 938f275 to 4a77084 Compare March 14, 2019 08:11
@whiskeysierra whiskeysierra marked this pull request as ready for review March 26, 2019 20:19
@whiskeysierra whiskeysierra force-pushed the feature/opentracing branch 2 times, most recently from b536e82 to 6d2929d Compare April 1, 2019 09:18
[![Build Status](https://img.shields.io/travis/zalando/riptide/master.svg)](https://travis-ci.org/zalando/riptide)
[![Coverage Status](https://img.shields.io/coveralls/zalando/riptide/master.svg)](https://coveralls.io/r/zalando/riptide)
[![Code Quality](https://img.shields.io/codacy/grade/1fbe3d16ca544c0c8589692632d114de/master.svg)](https://www.codacy.com/app/whiskeysierra/riptide)
[![Javadoc](https://www.javadoc.io/badge/org.zalando/riptide-metrics.svg)](http://www.javadoc.io/doc/org.zalando/riptide-metrics)

Choose a reason for hiding this comment

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

copy-pasta

@lukasniemeier-zalando
Copy link
Member

👍

@whiskeysierra whiskeysierra merged commit 1ea30f3 into master Apr 3, 2019
@whiskeysierra whiskeysierra deleted the feature/opentracing branch April 3, 2019 15:42
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