Skip to content

Conversation

gaius-qi
Copy link
Member

Description

This pull request introduces updates to the tracing configuration across multiple components in the codebase. The key changes include adding a Path field to the TracingConfig struct, modifying the initialization logic for HTTP and HTTPS tracing exporters to support the new Path field, and removing outdated tracing configuration sections from various Docker Compose templates.

Updates to tracing configuration:

  • Added Path field to TracingConfig: Introduced a new Path field in the TracingConfig struct to specify the URL path for the tracing server (e.g., /v1/traces). (cmd/dependency/base/option.go, cmd/dependency/base/option.goR35-R37)

  • Updated tracing exporter initialization: Modified the initJaegerTracer function to utilize the new Path field for HTTP and HTTPS tracing protocols. This ensures the correct URL path is used when creating the trace exporter. (cmd/dependency/dependency.go, cmd/dependency/dependency.goL154-R160)

Cleanup in Docker Compose templates:

  • Removed outdated tracing configurations: Eliminated unused tracing configuration sections from the client, manager, scheduler, and seed-client Docker Compose templates to streamline the configuration files. (deploy/docker-compose/template/client.template.yaml, [1]; deploy/docker-compose/template/manager.template.yaml, [2]; deploy/docker-compose/template/scheduler.template.yaml, [3]; deploy/docker-compose/template/seed-client.template.yaml, [4]

Default tracing path in configurations:

  • Set default tracing path: Added the default Path value (/v1/traces) to the tracing configuration in both the manager and scheduler components. (manager/config/config.go, [1]; scheduler/config/config.go, [2]

Related Issue

Motivation and Context

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation Update (if none of the other choices apply)

Checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@gaius-qi gaius-qi added this to the v2.3.0 milestone Jun 25, 2025
@gaius-qi gaius-qi self-assigned this Jun 25, 2025
@gaius-qi gaius-qi requested a review from a team as a code owner June 25, 2025 06:53
@gaius-qi gaius-qi added the enhancement New feature or request label Jun 25, 2025
Copy link

codecov bot commented Jun 25, 2025

Codecov Report

Attention: Patch coverage is 22.22222% with 7 lines in your changes missing coverage. Please review.

Project coverage is 32.94%. Comparing base (4e65b41) to head (aea78a9).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
cmd/dependency/dependency.go 0.00% 7 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4159   +/-   ##
=======================================
  Coverage   32.94%   32.94%           
=======================================
  Files         346      346           
  Lines       40939    40945    +6     
=======================================
+ Hits        13488    13490    +2     
- Misses      26557    26561    +4     
  Partials      894      894           
Flag Coverage Δ
unittests 32.94% <22.22%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
manager/config/config.go 96.47% <100.00%> (+0.01%) ⬆️
scheduler/config/config.go 86.66% <100.00%> (+0.05%) ⬆️
cmd/dependency/dependency.go 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Gaius <gaius.qi@gmail.com>
Copy link
Member

@chlins chlins left a comment

Choose a reason for hiding this comment

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

lgtm

@chlins chlins enabled auto-merge (squash) June 25, 2025 07:47
Copy link

@Liam-Zhao Liam-Zhao left a comment

Choose a reason for hiding this comment

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

lgtm

@chlins chlins merged commit e112f51 into main Jun 25, 2025
17 of 18 checks passed
@chlins chlins deleted the feature/tracing branch June 25, 2025 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants