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

apache camel 2.20.x instrumentation #1397

Merged
merged 13 commits into from Nov 3, 2020
Merged

apache camel 2.20.x instrumentation #1397

merged 13 commits into from Nov 3, 2020

Conversation

ghost
Copy link

@ghost ghost commented Oct 15, 2020

Fixes #1356

Instrumentation for Apache Camel 2.20.x
Apache Camel provides OTEL instrumentation (https://camel.apache.org/components/latest/others/opentelemetry.html) but for Camel >= 3.5. For customers using older versions that don't want / can't move to 3.5 or newer, a separate instrumentation library is provided.

NOTE
Large portions of the code has been adapted from existing Apache Camel OpenTracing library. In order to honour the license and work of the original Authors, I've added following header:

/*
 * Includes work from:
 * Copyright Apache Camel Authors
 * SPDX-License-Identifier: Apache-2.0
 */

to all files consisting at least some code from the library.
The header was put under "package" in order to pass spotless:license plugin check.
I'm not entirely sure that the header is 100% compatible with Apache License 2.0 of the original code (see https://github.com/apache/camel/tree/camel-2.20.0/components/camel-opentracing). Therefore during review please have a look at this as well.

Copy link
Member

@mateuszrzeszutek mateuszrzeszutek left a comment

Choose a reason for hiding this comment

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

Two more questions:

  • Have you tested it on a 3.X camel project? Can we be sure that this instrumentation won't interfere with Camel's OTel instrumentation?
  • Can you add some multithreaded tests (e.g. multicast & aggregate)? To make sure that context is propagated correctly

@ghost
Copy link
Author

ghost commented Oct 20, 2020

@mateuszrzeszutek added new tests (multithreaded and simple internal direct). Also - added logic to prevent wrong CLIENT spas with all internal components. Please have another look :)

@jkwatson
Copy link
Contributor

I'm not a primary reviewer for this, but I wonder how it is possible to effectively review a 2222 line PR. Can this be broken up into a series of smaller PRs to make it easier for maintainers to review?

@ghost ghost requested review from anuraaga and mateuszrzeszutek October 21, 2020 09:16
@ghost
Copy link
Author

ghost commented Oct 22, 2020

@iNikem @anuraaga @trask @tylerbenson please have a look, looking into closing this PR this week. Thanks in advance!

@iNikem
Copy link
Contributor

iNikem commented Oct 22, 2020

Honestly, I am waiting for @mateuszrzeszutek approval :) He has done such thorough first review.

@ghost
Copy link
Author

ghost commented Oct 22, 2020

@iNikem yep, I'm nagging him on a daily basis ;)

@ghost
Copy link
Author

ghost commented Oct 28, 2020

@mateuszrzeszutek pls have another look ;)

@iNikem iNikem merged commit 049358e into open-telemetry:master Nov 3, 2020
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.

Apache Camel 2.20.x instrumentation
5 participants