You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2019/05/23 15:44:01 UTC

[lucene-solr] 04/05: SOLR-13434: Add back JavaagentTracerConfigurator

This is an automated email from the ASF dual-hosted git repository.

datcm pushed a commit to branch jira/SOLR-13434
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 67d587e7f673f7212ff81d1d0b9007b44eebdfd4
Author: Cao Manh Dat <da...@apache.org>
AuthorDate: Thu May 23 16:41:55 2019 +0100

    SOLR-13434: Add back JavaagentTracerConfigurator
---
 .../solr/core/JavaagentTracerConfigurator.java     | 78 +++++++++++-----------
 1 file changed, 39 insertions(+), 39 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/core/JavaagentTracerConfigurator.java b/solr/core/src/java/org/apache/solr/core/JavaagentTracerConfigurator.java
index 74912bf..ab2c2de 100644
--- a/solr/core/src/java/org/apache/solr/core/JavaagentTracerConfigurator.java
+++ b/solr/core/src/java/org/apache/solr/core/JavaagentTracerConfigurator.java
@@ -1,39 +1,39 @@
-///*
-// * Licensed to the Apache Software Foundation (ASF) under one or more
-// * contributor license agreements.  See the NOTICE file distributed with
-// * this work for additional information regarding copyright ownership.
-// * The ASF licenses this file to You under the Apache License, Version 2.0
-// * (the "License"); you may not use this file except in compliance with
-// * the License.  You may obtain a copy of the License at
-// *
-// *     http://www.apache.org/licenses/LICENSE-2.0
-// *
-// * Unless required by applicable law or agreed to in writing, software
-// * distributed under the License is distributed on an "AS IS" BASIS,
-// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// * See the License for the specific language governing permissions and
-// * limitations under the License.
-// */
-//
-//package org.apache.solr.core;
-//
-//import io.opentracing.Tracer;
-//import io.opentracing.noop.NoopTracerFactory;
-//import io.opentracing.util.GlobalTracer;
-//import org.apache.solr.common.util.NamedList;
-//
-//public class JavaagentTracerConfigurator extends TracerConfigurator {
-//
-//  @Override
-//  public Tracer getTracer() {
-//    if (GlobalTracer.get() != null) {
-//      return GlobalTracer.get();
-//    }
-//    return NoopTracerFactory.create();
-//  }
-//
-//  @Override
-//  public void init(NamedList args) {
-//
-//  }
-//}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.solr.core;
+
+import io.opentracing.Tracer;
+import io.opentracing.noop.NoopTracerFactory;
+import io.opentracing.util.GlobalTracer;
+import org.apache.solr.common.util.NamedList;
+
+public class JavaagentTracerConfigurator extends TracerConfigurator {
+
+  @Override
+  public Tracer getTracer() {
+    if (GlobalTracer.get() != null) {
+      return GlobalTracer.get();
+    }
+    return NoopTracerFactory.create();
+  }
+
+  @Override
+  public void init(NamedList args) {
+
+  }
+}