-
Notifications
You must be signed in to change notification settings - Fork 231
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
DBZ-2862 Switch tracing to OpenTelemetry #343
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the PR @vidourem . It would be good to enabled OTEL libraries only then user wants it, by setting appropriate env. variable. I Left a comment with pointers. Please let me know if anything is unclear.
@@ -42,6 +44,14 @@ RUN mkdir "$KAFKA_CONNECT_PLUGINS_DIR" "$EXTERNAL_LIBS_DIR" | |||
# | |||
RUN docker-maven-download apicurio "$APICURIO_VERSION" ead18a95038adca54e91b7f253717eb7 | |||
RUN docker-maven-download central org/jolokia jolokia-jvm "$JOLOKIA_VERSION" d489d62d1143e6a2e85a869a4b824a67 | |||
RUN docker-maven-download central io/opentelemetry opentelemetry-api "$OPENTELEMETRY_VERSION" e198a9568ce31a82faaa26f328388e89 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be good to download it into external lib directory or newly created dir (e.g. otel
) and enable it only on demand, i.e. introduce new env. variable here and later on eventually, if enabled, create the symlink for the jar file by calling set_connector_additonal_resource_availability
(see here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vjuranek
I made a modification, but I don't see how the downloaded file can then be found in the otel subdirectory. I can't test on the PC I'm currently using, I'll check that later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vidourem the bit will be donwloaded into a separated directory. If nothing happens, they won't be on the class path. If the user enables OTEL via env. variable, calling set_connector_additonal_resource_availability
with this env. variable enabled will result into a creating a symbolic link from connector directory to OTEL libs and therefore they will be included on the class path.
…Telemetry packages in the classpath
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You needs to download the otel bits into the correct directory, other LGMT now.
@@ -42,6 +44,14 @@ RUN mkdir "$KAFKA_CONNECT_PLUGINS_DIR" "$EXTERNAL_LIBS_DIR" | |||
# | |||
RUN docker-maven-download apicurio "$APICURIO_VERSION" ead18a95038adca54e91b7f253717eb7 | |||
RUN docker-maven-download central org/jolokia jolokia-jvm "$JOLOKIA_VERSION" d489d62d1143e6a2e85a869a4b824a67 | |||
RUN docker-maven-download central io/opentelemetry opentelemetry-api "$OPENTELEMETRY_VERSION" e198a9568ce31a82faaa26f328388e89 | |||
RUN docker-maven-download central io/opentelemetry opentelemetry-context "$OPENTELEMETRY_VERSION" 783594a506dbf035e686776d5bcb4bfc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you use later on otel
directory (when calling set_connector_additonal_resource_availability
), the bits needs to be downloaded into otel
directory as well, i.e. you need too replace central
with otel
Merged, thanks @vidourem ! (to make it for the release I did remaing changes myself) |
tested manually locally with mysql connector, libs are correctly linked:
|
Added OpenTelemetry packages to connect-base image and added interceptor package to connect image