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

REL-1526 - Fix context propagation for async communication #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kamsobon
Copy link
Collaborator

Previous fix was handling cases when trace context was restored from
event on consumer side. Due to unknown reasons this code that was
manipulating message headers was invoked (https://github
.com/opentracing-contrib/java-rabbitmq-client/blob/master/src/main/java
/io/opentracing/contrib/rabbitmq/TracingUtils.java#L67-L74).

Unfortunately, this fix was breaking injecting tracing context on
producer side, which effectively was killing context propagation.

Previous fix was handling cases when trace context was restored from
event on consumer side. Due to unknown reasons this code that was
manipulating message headers was invoked (https://github
.com/opentracing-contrib/java-rabbitmq-client/blob/master/src/main/java
/io/opentracing/contrib/rabbitmq/TracingUtils.java#L67-L74).

Unfortunately, this fix was breaking injecting tracing context on
producer side, which effectively was killing context propagation.
@@ -1,54 +1,36 @@
[![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![Released Version][maven-img]][maven] [![Apache-2.0 license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
# Purpose

Choose a reason for hiding this comment

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

[maven-img]: https://img.shields.io/maven-central/v/io.opentracing.contrib/opentracing-rabbitmq-client.svg
[maven]: http://search.maven.org/#search%7Cga%7C1%7Copentracing-rabbitmq-client
4. Run `mvn clean install`
5. Run `mvn source:jar deploy`

Choose a reason for hiding this comment

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

Codacy found an issue: Expected: 2; Actual: 5; Style: 1/2/3

[cov]: https://coveralls.io/github/opentracing-contrib/java-rabbitmq-client?branch=master
[maven-img]: https://img.shields.io/maven-central/v/io.opentracing.contrib/opentracing-rabbitmq-client.svg
[maven]: http://search.maven.org/#search%7Cga%7C1%7Copentracing-rabbitmq-client
4. Run `mvn clean install`

Choose a reason for hiding this comment

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

Codacy has a fix for the issue: Lists should be surrounded by blank lines

Suggested change
4. Run `mvn clean install`
4. Run `mvn clean install`

# Publishing changes
1. Adjust version in `pom.xml`
2. Replace `{SR Nexus URL}` in `pom.xml` with URL to nexus
3. Create settings for maven in `~/.m2/settings.xml

Choose a reason for hiding this comment

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

Codacy has a fix for the issue: Lists should be surrounded by blank lines

Suggested change
3. Create settings for maven in `~/.m2/settings.xml
3. Create settings for maven in `~/.m2/settings.xml

[maven-img]: https://img.shields.io/maven-central/v/io.opentracing.contrib/opentracing-rabbitmq-client.svg
[maven]: http://search.maven.org/#search%7Cga%7C1%7Copentracing-rabbitmq-client
4. Run `mvn clean install`
5. Run `mvn source:jar deploy`

Choose a reason for hiding this comment

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


pom.xml
# Publishing changes
1. Adjust version in `pom.xml`

Choose a reason for hiding this comment

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

Codacy has a fix for the issue: Lists should be surrounded by blank lines

Suggested change
1. Adjust version in `pom.xml`
1. Adjust version in `pom.xml`

## Installation

pom.xml
# Publishing changes

Choose a reason for hiding this comment

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

Codacy has a fix for the issue: Expected: 1; Actual: 0; Below

Suggested change
# Publishing changes
# Publishing changes

# Publishing changes
1. Adjust version in `pom.xml`
2. Replace `{SR Nexus URL}` in `pom.xml` with URL to nexus
3. Create settings for maven in `~/.m2/settings.xml

Choose a reason for hiding this comment

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


pom.xml
# Publishing changes
1. Adjust version in `pom.xml`

Choose a reason for hiding this comment

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

[cov]: https://coveralls.io/github/opentracing-contrib/java-rabbitmq-client?branch=master
[maven-img]: https://img.shields.io/maven-central/v/io.opentracing.contrib/opentracing-rabbitmq-client.svg
[maven]: http://search.maven.org/#search%7Cga%7C1%7Copentracing-rabbitmq-client
4. Run `mvn clean install`

Choose a reason for hiding this comment

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

pom.xml
# Publishing changes
1. Adjust version in `pom.xml`
2. Replace `{SR Nexus URL}` in `pom.xml` with URL to nexus

Choose a reason for hiding this comment

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

## Installation

pom.xml
# Publishing changes

Choose a reason for hiding this comment

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

[cov]: https://coveralls.io/github/opentracing-contrib/java-rabbitmq-client?branch=master
[maven-img]: https://img.shields.io/maven-central/v/io.opentracing.contrib/opentracing-rabbitmq-client.svg
[maven]: http://search.maven.org/#search%7Cga%7C1%7Copentracing-rabbitmq-client
4. Run `mvn clean install`

Choose a reason for hiding this comment

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

Codacy found an issue: Expected: 1; Actual: 4; Style: 1/2/3

@@ -1,54 +1,36 @@
[![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![Released Version][maven-img]][maven] [![Apache-2.0 license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
# Purpose

Choose a reason for hiding this comment

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

Codacy has a fix for the issue: Expected: 1; Actual: 0; Below

Suggested change
# Purpose
# Purpose

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.

2 participants