You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ta...@apache.org on 2021/03/04 04:15:55 UTC
[skywalking] branch cds_span_limit updated: fix missing logical.
This is an automated email from the ASF dual-hosted git repository.
tanjian pushed a commit to branch cds_span_limit
in repository https://gitbox.apache.org/repos/asf/skywalking.git
The following commit(s) were added to refs/heads/cds_span_limit by this push:
new 3b2b61e fix missing logical.
3b2b61e is described below
commit 3b2b61ea0e04db60f10ec896f2b85b91978dd5ff
Author: JaredTan95 <ji...@daocloud.io>
AuthorDate: Thu Mar 4 12:15:21 2021 +0800
fix missing logical.
---
.../org/apache/skywalking/apm/agent/core/context/TracingContext.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/TracingContext.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/TracingContext.java
index df62347..1943acc 100644
--- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/TracingContext.java
+++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/TracingContext.java
@@ -26,6 +26,7 @@ import lombok.AccessLevel;
import lombok.Getter;
import org.apache.skywalking.apm.agent.core.boot.ServiceManager;
import org.apache.skywalking.apm.agent.core.conf.Config;
+import org.apache.skywalking.apm.agent.core.conf.dynamic.ConfigurationDiscoveryService;
import org.apache.skywalking.apm.agent.core.conf.dynamic.watcher.SpanLimitWatcher;
import org.apache.skywalking.apm.agent.core.context.ids.DistributedTraceId;
import org.apache.skywalking.apm.agent.core.context.ids.PropagatedTraceId;
@@ -134,6 +135,8 @@ public class TracingContext implements AbstractTracerContext {
this.correlationContext = new CorrelationContext();
this.extensionContext = new ExtensionContext();
this.spanLimitWatcher = new SpanLimitWatcher("agent.span_limit_per_segment");
+ ServiceManager.INSTANCE.findService(ConfigurationDiscoveryService.class)
+ .registerAgentConfigChangeWatcher(spanLimitWatcher);
}
/**