未验证 提交 c989bb28 编写于 作者: J Jared Tan 提交者: GitHub

make sampling still works when the trace ignores plug-in activation (#6146)

上级 1e93cd28
......@@ -24,6 +24,7 @@ Release Notes.
* Fix ArrayBlockingQueueBuffer's useless `IF_POSSIBLE` mode list
* Support building gRPC TLS channel but CA file is not required.
* Add Dolphinscheduler plugin definition.
* Make sampling still works when the trace ignores plug-in activation.
* Fix mssql-plugin occur ClassCastException when call the method of return generate key.
#### OAP-Backend
......
......@@ -37,6 +37,8 @@ public class TraceIgnoreExtendService extends SamplingService {
@Override
public void boot() {
super.boot();
IgnoreConfigInitializer.initialize();
if (StringUtil.isNotEmpty(IgnoreConfig.Trace.IGNORE_PATH)) {
patterns = IgnoreConfig.Trace.IGNORE_PATH.split(PATTERN_SEPARATOR);
......@@ -53,6 +55,7 @@ public class TraceIgnoreExtendService extends SamplingService {
@Override
public void shutdown() {
super.shutdown();
}
@Override
......@@ -65,10 +68,11 @@ public class TraceIgnoreExtendService extends SamplingService {
}
}
}
return true;
return super.trySampling(operationName);
}
@Override
public void forceSampled() {
super.forceSampled();
}
}
## Support custom trace ignore
Here is an optional plugin `apm-trace-ignore-plugin`
**Notice:**
Sampling still works when the trace ignores plug-in activation.
## Introduce
- The purpose of this plugin is to filter endpoint which are expected to be ignored by the tracing system.
- You can setup multiple URL path patterns, The endpoints match these patterns wouldn't be traced.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册