HBASE-25732 Change the command line argument for tracing after upgrading opentelemtry to 1.0.0 (#3123)

Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
Duo Zhang 2021-04-07 16:29:42 +08:00 committed by Duo Zhang
parent 7f90c2201f
commit 8df9bebdd3
2 changed files with 8 additions and 3 deletions

View File

@ -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 Tell HBase whether it should manage it's own instance of ZooKeeper or not.
@rem set HBASE_MANAGES_ZK=true @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"

View File

@ -144,6 +144,6 @@
# export SED="${SED-sed}" # export SED="${SED-sed}"
# Uncomment to enable trace, you can change the options to use other exporters such as jaeger or # 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 # zipkin. See https://github.com/open-telemetry/opentelemetry-java-instrumentation on how to
# exporters and other components through system properties. # configure exporters and other components through system properties.
# export HBASE_TRACE_OPTS="-Dotel.config.sampler.probability=0.1 -Dotel.exporter=logging" # export HBASE_TRACE_OPTS="-Dotel.resource.attributes=service.name=HBase -Dotel.traces.exporter=logging otel.metrics.exporter=none"