diff --git a/conf/hbase-env.cmd b/conf/hbase-env.cmd index 1f1c3e3e620..4beebf646de 100644 --- a/conf/hbase-env.cmd +++ b/conf/hbase-env.cmd @@ -81,3 +81,8 @@ set HBASE_OPTS=%HBASE_OPTS% "-XX:+UseConcMarkSweepGC" "-Djava.net.preferIPv4Stac @rem Tell HBase whether it should manage it's own instance of ZooKeeper or not. @rem set HBASE_MANAGES_ZK=true + +@rem Uncomment to enable trace, you can change the options to use other exporters such as jaeger or +@rem zipkin. See https://github.com/open-telemetry/opentelemetry-java-instrumentation on how to +@rem configure exporters and other components through system properties. +@rem set HBASE_TRACE_OPTS="-Dotel.resource.attributes=service.name=HBase -Dotel.traces.exporter=logging otel.metrics.exporter=none" diff --git a/conf/hbase-env.sh b/conf/hbase-env.sh index e1dff2b7e3e..1d21fd5806a 100644 --- a/conf/hbase-env.sh +++ b/conf/hbase-env.sh @@ -144,6 +144,6 @@ # export SED="${SED-sed}" # Uncomment to enable trace, you can change the options to use other exporters such as jaeger or -# zipkin. See https://github.com/open-telemetry/opentelemetry-java-instrumentation on how to config -# exporters and other components through system properties. -# export HBASE_TRACE_OPTS="-Dotel.config.sampler.probability=0.1 -Dotel.exporter=logging" +# zipkin. See https://github.com/open-telemetry/opentelemetry-java-instrumentation on how to +# configure exporters and other components through system properties. +# export HBASE_TRACE_OPTS="-Dotel.resource.attributes=service.name=HBase -Dotel.traces.exporter=logging otel.metrics.exporter=none"