Releases: GuanceCloud/opentelemetry-java-instrumentation
Releases · GuanceCloud/opentelemetry-java-instrumentation
v2.11.0-guance
重大改变
版本2.x开头的版本与1.x版本有这很多破坏性的改动,同时也是两个分支。
版本v1 不做功能的开发,仅仅维护和修复一些bug。
V2 版本相对于 V1 版本做了哪些破坏性的改动:
- The default OTLP protocol has been changed from
grpc
tohttp/protobuf
in order to align with
the specification.
You can switch to thegrpc
protocol usingOTEL_EXPORTER_OTLP_PROTOCOL=grpc
or-Dotel.exporter.otlp.protocol=grpc
. - Micrometer metric bridge has been disabled by default. You can enable it using
OTEL_INSTRUMENTATION_MICROMETER_ENABLED=true
or-Dotel.instrumentation.micrometer.enabled=true
. - The OTLP logs exporter is now enabled by default. You can disable it using
OTEL_LOGS_EXPORTER=none
or-Dotel.logs.exporter=none
. - Controller spans are now disabled by default. You can enable them using
OTEL_INSTRUMENTATION_COMMON_EXPERIMENTAL_CONTROLLER_TELEMETRY_ENABLED=true
or-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true
. - View spans are now disabled by default. You can enable them using
OTEL_INSTRUMENTATION_COMMON_EXPERIMENTAL_VIEW_TELEMETRY_ENABLED=true
or-Dotel.instrumentation.common.experimental.view-telemetry.enabled=true
. ⚠️ ⚠️ Stable HTTP semantic conventions are now emitted⚠️ ⚠️ - TOO MANY CHANGES TO LIST HERE, be sure to review the full
list of changes.见下文 HTTP 改动
- TOO MANY CHANGES TO LIST HERE, be sure to review the full
- Stable JVM semantic conventions are now emitted.
-
Memory metrics
process.runtime.jvm.memory.usage
renamed tojvm.memory.used
process.runtime.jvm.memory.committed
renamed tojvm.memory.committed
process.runtime.jvm.memory.limit
renamed tojvm.memory.limit
process.runtime.jvm.memory.usage_after_last_gc
renamed tojvm.memory.used_after_last_gc
process.runtime.jvm.memory.init
renamed tojvm.memory.init
(still experimental)- Metric attributes
type
renamed tojvm.memory.type
pool
renamed tojvm.memory.pool.name
-
Garbage collection metrics
process.runtime.jvm.gc.duration
renamed tojvm.gc.duration
- Metric attributes
name
renamed tojvm.gc.name
action
renamed tojvm.gc.action
-
Thread metrics
process.runtime.jvm.threads.count
renamed tojvm.threads.count
- Metric attributes
daemon
renamed tojvm.thread.daemon
-
Classes metrics
process.runtime.jvm.classes.loaded
renamed tojvm.classes.loaded
process.runtime.jvm.classes.unloaded
renamed tojvm.classes.unloaded
process.runtime.jvm.classes.current_loaded
renamed tojvm.classes.count
-
CPU metrics
process.runtime.jvm.cpu.utilization
renamed tojvm.cpu.recent_utilization
process.runtime.jvm.system.cpu.load_1m
renamed tojvm.system.cpu.load_1m
(still experimental)process.runtime.jvm.system.cpu.utilization
renamed tojvm.system.cpu.utilization
(still experimental)
-
Buffer metrics
process.runtime.jvm.buffer.limit
renamed tojvm.buffer.memory.limit
(still experimental)process.runtime.jvm.buffer.count
renamed tojvm.buffer.count
(still experimental)process.runtime.jvm.buffer.usage
renamed tojvm.buffer.memory.usage
(still experimental)- Metric attributes
pool
renamed tojvm.buffer.pool.name
-
HTTP 的改动在open-telemetry-docs
-
使用 http/protobuf
使用 http 的话,每个exporter路径需要显性配置 如:
java -javaagent:/usr/local/ddtrace/opentelemetry-javaagent-2.11.0.jar \
-Dotel.exporter=otlp \
-Dotel.exporter.otlp.protocol=http/protobuf \
-Dotel.exporter.otlp.logs.endpoint=http://localhost:9529/otel/v1/logs \
-Dotel.exporter.otlp.traces.endpoint=http://localhost:9529/otel/v1/trace \
-Dotel.exporter.otlp.metrics.endpoint=http://localhost:9529/otel/v1/metric \
-Dotel.service.name=client \
-jar tmall.jar
使用 grpc 协议的话,grpc必须是显式配置,否则就是默认的http协议:
java -javaagent:/usr/local/ddtrace/opentelemetry-javaagent-2.5.0.jar \
-Dotel.exporter=otlp \
-Dotel.exporter.otlp.protocol=grpc \
-Dotel.exporter.otlp.endpoint=http://localhost:4317
-Dotel.service.name=client \
-jar tmall.jar
开启debug:
-Dotel.javaagent.debug=true
日志
默认日志是开启的,要关闭日志采集的话,exporter 配置为空即可:-Dotel.logs.exporter=none
指标
指标变化大,很多的指标都重命名了。
仪表板需要重新做
V1.31.0-guance
合并v1.30.0tag
v1.28.1-guance
脱敏参数聚合到一个tag中origin_sql_args
V1.28.0
Merge open-telemetry v1.28.0
V1.26.3-guance
add:
V1.26.2-guance
增加功能
- DB语句清理(sql 脱敏处理) #16