Skip to content

HDDS-13803. Client aware tracing#10477

Draft
sravani-revuri wants to merge 2 commits into
apache:masterfrom
sravani-revuri:HDDS-13803
Draft

HDDS-13803. Client aware tracing#10477
sravani-revuri wants to merge 2 commits into
apache:masterfrom
sravani-revuri:HDDS-13803

Conversation

@sravani-revuri

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

The Ozone client needs the flexibility to either initiate a new span or continue an existing application-level trace by creating a child span. A specific scenario arises when the Ozone client should only trace if it's explicitly enabled to continue an application's existing trace.

Typically, ozone.tracing.enabled is false, indicating that no tracing should occur by default. However, for Ozone clients, dynamically updating this configuration based on the application's implementation is often not feasible.

To address this, the Ozone client will leverage the application's tracer to continue tracing as a child span. This specific behavior will be controlled by an additional flag:

ozone.tracing.client.application-aware (default: true)

When ozone.tracing.client.application-aware is true, the Ozone client will utilize tracers provided by the application context. This allows the Ozone client to trace even if the ozone.tracing.enabled configuration is false, provided the application has configured and enabled its own tracing.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-13803

How was this patch tested?

written tests.

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.

1 participant