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

[FS-183852] : Conductor Opentelemetry traces for custom workers #44

Open
wants to merge 4 commits into
base: freshservice_staging
Choose a base branch
from

Conversation

keerthivaasan-kanagaraj
Copy link
Collaborator

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
  • WHOSUSING.md
  • Other (please describe):

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

@keerthivaasan-kanagaraj keerthivaasan-kanagaraj changed the title Tracing changes for conductor [FS-183852] : Conductor Opentelemetry traces for custom workers Nov 12, 2024
@@ -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'
Copy link
Collaborator

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 ?

Copy link
Collaborator Author

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"
Copy link
Collaborator

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<>();
Copy link
Collaborator

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

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