Skip to content

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Skip registering a real tracer with GlobalTracer if hdds.tracing.enabled is set to false. This lets us avoid tracer-related busywork.

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

How was this patch tested?

  1. Checked Jaeger in ozoneperf cluster with default config, verified that it shows traces (OM, SCM, DN, Freon, S3 shell, Ozone shell)
  2. With OZONE-SITE.XML_hdds.tracing.enabled=false added to docker-config, verified that Jaeger shows no traces
  3. Also with tracing disabled in ozone cluster, verified that GlobalTracer no longer shows up in breakdown of allocations from HddsDispatcher.dispatch in the profiler

@adoroszlai
Copy link
Contributor Author

@elek @arp7 please review

Copy link
Member

@elek elek left a comment

Choose a reason for hiding this comment

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

+1 LGTM Thanks the patch @adoroszlai

Tested with ozoneperf, the tracing still works well.

@elek elek closed this in 3b0a49e Nov 12, 2019
@adoroszlai adoroszlai deleted the HDDS-2415 branch November 12, 2019 15:54
@adoroszlai
Copy link
Contributor Author

Thanks @elek for reviewing and committing it.

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