-
Notifications
You must be signed in to change notification settings - Fork 0
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
[FS-183852] : Conductor Opentelemetry traces for custom workers #44
base: freshservice_staging
Are you sure you want to change the base?
[FS-183852] : Conductor Opentelemetry traces for custom workers #44
Conversation
@@ -38,6 +38,7 @@ plugins { | |||
|
|||
// Establish version and status | |||
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name | |||
version = '3.15.0-FS' |
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.
What version is this ? Can we add more details in the variable names ?
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.
Since I am modifying the conductor code, the jar created with this 3.15.0 version of conductor code I have added "-FS" suffix to it to denote used for freshservice.
@@ -23,6 +23,9 @@ dependencies { | |||
implementation "javax.ws.rs:javax.ws.rs-api:${revJAXRS}" | |||
implementation "org.glassfish.jersey.core:jersey-common:${revJerseyCommon}" | |||
|
|||
implementation "io.opentelemetry:opentelemetry-extension-annotations:1.18.0" |
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.
Kindly move this to variable, like the above line.
* LEASE_EXTEND_DURATION_FACTOR), | ||
TimeUnit.SECONDS); | ||
leaseExtendMap.put(task.getTaskId(), leaseExtendFuture); | ||
Map<String, String> headers = new HashMap<>(); |
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.
- Extract this to a separate method
- We can add an around aspect for adding the trace. KIndly check that
Pull Request type
./gradlew generateLock saveLock
to refresh dependencies)NOTE: Please remember to run
./gradlew spotlessApply
to fix any format violations.Changes in this PR
Describe the new behavior from this PR, and why it's needed
Issue #
Alternatives considered
Describe alternative implementation you have considered