Skip to content

docs: clarify config-tracing and config-observability are separate tracing paths - #10626

Open
ogulcanaydogan wants to merge 1 commit into
tektoncd:mainfrom
ogulcanaydogan:fix/tracing-config-docs
Open

docs: clarify config-tracing and config-observability are separate tracing paths#10626
ogulcanaydogan wants to merge 1 commit into
tektoncd:mainfrom
ogulcanaydogan:fix/tracing-config-docs

Conversation

@ogulcanaydogan

@ogulcanaydogan ogulcanaydogan commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Fixes #10276 (documentation portion, option 1 from the issue discussion).

config-tracing only drives the TaskRun and PipelineRun reconcilers' own tracer (pkg/tracing). config-observability's tracing-protocol, tracing-endpoint and tracing-sampling-rate keys instead configure the global OpenTelemetry provider used by the notification and cloud event reconcilers via otel.GetTracerProvider(). Neither reads the other's configuration, and that split wasn't documented anywhere, which is what led to the confusion in the issue.

No behavior change, comments and docs only:

  • config/config-tracing.yaml: note that it only covers TaskRun/PipelineRun tracing
  • config/config-observability.yaml: note that its tracing keys only cover notification/cloud event tracing
  • docs/developers/tracing.md: same clarification in prose

Traced through the actual call sites to confirm before writing this up:

  • pkg/reconciler/pipelinerun/controller.go and pkg/reconciler/taskrun/controller.go both build their tracer via pkg/tracing, which reads config-tracing
  • pkg/reconciler/notifications/* and pkg/reconciler/events/cloudevent call otel.GetTracerProvider() directly, which only gets configured by config-observability's keys through the vendored knative.dev/pkg/observability/tracing

Left as a follow-up per @vdemeester's comment on the issue: whether to actually unify the two tracing paths is a bigger design question (the credentialsSecret auth option in config-tracing has no equivalent in the global provider yet), tracked separately from this docs fix.

Release Notes

NONE

…acing paths

config-tracing only drives the TaskRun and PipelineRun reconcilers'
own tracer (pkg/tracing). config-observability's tracing-protocol,
tracing-endpoint and tracing-sampling-rate keys instead configure the
global OpenTelemetry provider used by the notification and cloud
event reconcilers via otel.GetTracerProvider(). Neither reads the
other's configuration, which was not documented anywhere and led to
confusion in tektoncd#10276.

Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@gmail.com>
@tekton-robot tekton-robot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Aug 18, 2026
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 18, 2026

@khrm khrm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/kind docs

@tekton-robot

Copy link
Copy Markdown
Collaborator

@khrm: The label(s) kind/docs cannot be applied, because the repository doesn't have them.

Details

In response to this:

/kind docs

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@khrm khrm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/kind documentation

@tekton-robot tekton-robot added kind/documentation Categorizes issue or PR as related to documentation. release-note-none Denotes a PR that doesnt merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Aug 18, 2026
@tekton-robot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: waveywaves

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/documentation Categorizes issue or PR as related to documentation. release-note-none Denotes a PR that doesnt merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unify tracing config: core reconcilers ignore config-observability

4 participants