Skip to content

Commit 85e9c1a

Browse files
committed
HBASE-26137 Backport HBASE-25732 "Change the command line argument for tracing after upgrading opentelemtry to 1.0.0" to branch-2 (#3624)
14/17 commits of HBASE-22120, original commit 8df9beb Co-authored-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org>
1 parent d14ab3e commit 85e9c1a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

conf/hbase-env.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,8 @@ set HBASE_OPTS=%HBASE_OPTS% "-XX:+UseConcMarkSweepGC" "-Djava.net.preferIPv4Stac
8181

8282
@rem Tell HBase whether it should manage it's own instance of ZooKeeper or not.
8383
@rem set HBASE_MANAGES_ZK=true
84+
85+
@rem Uncomment to enable trace, you can change the options to use other exporters such as jaeger or
86+
@rem zipkin. See https://github.com/open-telemetry/opentelemetry-java-instrumentation on how to
87+
@rem configure exporters and other components through system properties.
88+
@rem set HBASE_TRACE_OPTS="-Dotel.resource.attributes=service.name=HBase -Dotel.traces.exporter=logging otel.metrics.exporter=none"

conf/hbase-env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,6 @@
146146
# export HBASE_JSHELL_ARGS="--startup DEFAULT --startup PRINTING --startup hbase_startup.jsh"
147147

148148
# Uncomment to enable trace, you can change the options to use other exporters such as jaeger or
149-
# zipkin. See https://github.com/open-telemetry/opentelemetry-java-instrumentation on how to config
150-
# exporters and other components through system properties.
151-
# export HBASE_TRACE_OPTS="-Dotel.config.sampler.probability=0.1 -Dotel.exporter=logging"
149+
# zipkin. See https://github.com/open-telemetry/opentelemetry-java-instrumentation on how to
150+
# configure exporters and other components through system properties.
151+
# export HBASE_TRACE_OPTS="-Dotel.resource.attributes=service.name=HBase -Dotel.traces.exporter=logging otel.metrics.exporter=none"

0 commit comments

Comments
 (0)