You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2020/01/07 10:41:55 UTC
[camel] branch camel-3.0.x updated: CAMEL-14365: Create OpenTracing
SpanDecorator for platform-http component
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch camel-3.0.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.0.x by this push:
new 0871b68 CAMEL-14365: Create OpenTracing SpanDecorator for platform-http component
0871b68 is described below
commit 0871b685d3dd9bb618e6634a685b4b3b8aca60d1
Author: James Netherton <ja...@gmail.com>
AuthorDate: Tue Jan 7 10:00:24 2020 +0000
CAMEL-14365: Create OpenTracing SpanDecorator for platform-http component
---
.../decorators/PlatformHttpSpanDecorator.java | 26 ++++++++++++++++++++++
.../org.apache.camel.opentracing.SpanDecorator | 1 +
2 files changed, 27 insertions(+)
diff --git a/components/camel-opentracing/src/main/java/org/apache/camel/opentracing/decorators/PlatformHttpSpanDecorator.java b/components/camel-opentracing/src/main/java/org/apache/camel/opentracing/decorators/PlatformHttpSpanDecorator.java
new file mode 100644
index 0000000..ac18121
--- /dev/null
+++ b/components/camel-opentracing/src/main/java/org/apache/camel/opentracing/decorators/PlatformHttpSpanDecorator.java
@@ -0,0 +1,26 @@
+/*
+ * 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.camel.opentracing.decorators;
+
+public class PlatformHttpSpanDecorator extends AbstractHttpSpanDecorator {
+
+ @Override
+ public String getComponent() {
+ return "platform-http";
+ }
+
+}
diff --git a/components/camel-opentracing/src/main/resources/META-INF/services/org.apache.camel.opentracing.SpanDecorator b/components/camel-opentracing/src/main/resources/META-INF/services/org.apache.camel.opentracing.SpanDecorator
index fc5873e..3a59228 100644
--- a/components/camel-opentracing/src/main/resources/META-INF/services/org.apache.camel.opentracing.SpanDecorator
+++ b/components/camel-opentracing/src/main/resources/META-INF/services/org.apache.camel.opentracing.SpanDecorator
@@ -37,6 +37,7 @@ org.apache.camel.opentracing.decorators.LogSpanDecorator
org.apache.camel.opentracing.decorators.MongoDBSpanDecorator
org.apache.camel.opentracing.decorators.NettyHttpSpanDecorator
org.apache.camel.opentracing.decorators.PahoSpanDecorator
+org.apache.camel.opentracing.decorators.PlatformHttpSpanDecorator
org.apache.camel.opentracing.decorators.RabbitmqSpanDecorator
org.apache.camel.opentracing.decorators.RestSpanDecorator
org.apache.camel.opentracing.decorators.SedaSpanDecorator