feat: support HTTPS protocol for otel #4159
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 theTracingConfig
struct, modifying the initialization logic for HTTP and HTTPS tracing exporters to support the newPath
field, and removing outdated tracing configuration sections from various Docker Compose templates.Updates to tracing configuration:
Added
Path
field toTracingConfig
: Introduced a newPath
field in theTracingConfig
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 newPath
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:
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:
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
Checklist