You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "jono-morris (via GitHub)" <gi...@apache.org> on 2023/09/10 10:40:42 UTC

[GitHub] [camel] jono-morris opened a new pull request, #11354: CAMEL-19812 use open telemetry namaing conventions

jono-morris opened a new pull request, #11354:
URL: https://github.com/apache/camel/pull/11354

   Updated camel-tracing to use open telemetry semantic conventions https://opentelemetry.io/docs/specs/otel/trace/semantic_conventions/
   
   Skipped AzureServiceBusSpanDecorator as I couldn't find suitable conventions for the majority of the metadata tags using the current spec, e.g. enqueuedTime, expiresAt, partitionKey, replyToSessionId etc.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] davsclaus commented on a diff in pull request #11354: CAMEL-19812 use open telemetry naming conventions

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #11354:
URL: https://github.com/apache/camel/pull/11354#discussion_r1328629206


##########
components/camel-tracing/src/main/java/org/apache/camel/tracing/TagConstants.java:
##########
@@ -0,0 +1,47 @@
+/*
+ * 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.tracing;
+
+public class TagConstants {

Review Comment:
   However these Tags are potentially more used by Camel end users and if possible we could have the old tags deprecated and if possible let the old tags delegate to the new tags.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] jono-morris closed pull request #11354: CAMEL-19812 use open telemetry naming conventions

Posted by "jono-morris (via GitHub)" <gi...@apache.org>.
jono-morris closed pull request #11354: CAMEL-19812 use open telemetry naming conventions
URL: https://github.com/apache/camel/pull/11354


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] marcingrzejszczak commented on a diff in pull request #11354: CAMEL-19812 use open telemetry naming conventions

Posted by "marcingrzejszczak (via GitHub)" <gi...@apache.org>.
marcingrzejszczak commented on code in PR #11354:
URL: https://github.com/apache/camel/pull/11354#discussion_r1329824401


##########
components/camel-tracing/src/main/java/org/apache/camel/tracing/SpanAdapter.java:
##########
@@ -23,24 +23,12 @@ public interface SpanAdapter {
 
     void setError(boolean error);
 
-    void setTag(Tag key, String value);
-
-    void setTag(Tag key, Number value);
-
     void setTag(String key, String value);
 
     void setTag(String key, Number value);
 
     void setTag(String key, Boolean value);
 
-    default void setLowCardinalityTag(Tag key, String value) {

Review Comment:
   If that's fine for you that's fine for me too 😃 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] github-actions[bot] commented on pull request #11354: CAMEL-19812 use open telemetry namaing conventions

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #11354:
URL: https://github.com/apache/camel/pull/11354#issuecomment-1712778999

   :star2: Thank you for your contribution to the Apache Camel project! :star2: 
   
   :camel: Maintainers, please note that first-time contributors *require manual approval* for the GitHub Actions to run.
   
   :warning: Please note that the changes on this PR may be **tested automatically** if they change components.
   
   :robot: Use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot.
   
   If necessary Apache Camel Committers may access logs and test results in the job summaries!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] jono-morris commented on pull request #11354: CAMEL-19812 use open telemetry naming conventions

Posted by "jono-morris (via GitHub)" <gi...@apache.org>.
jono-morris commented on PR #11354:
URL: https://github.com/apache/camel/pull/11354#issuecomment-1717573911

   We could associate new attributes with the existing Tag class.  This would avoid breaking changes and provide the option to deprecate tags in future. So, when we use a tag we could either use the Tag class name and/or the associated otel attribute. 
   
   See: https://github.com/apache/camel/pull/11381
   
   The attributes are from v1.21.0 semantic conventions, most of which were already mapped in OpenTelemetrySpanAdapter.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] jono-morris commented on pull request #11354: CAMEL-19812 use open telemetry naming conventions

Posted by "jono-morris (via GitHub)" <gi...@apache.org>.
jono-morris commented on PR #11354:
URL: https://github.com/apache/camel/pull/11354#issuecomment-1727614281

   @davsclaus thanks for that, it makes sense.  I'm hoping to finish this over the next day or two. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] marcingrzejszczak commented on a diff in pull request #11354: CAMEL-19812 use open telemetry naming conventions

Posted by "marcingrzejszczak (via GitHub)" <gi...@apache.org>.
marcingrzejszczak commented on code in PR #11354:
URL: https://github.com/apache/camel/pull/11354#discussion_r1321574575


##########
components/camel-tracing/src/main/java/org/apache/camel/tracing/TagConstants.java:
##########
@@ -0,0 +1,47 @@
+/*
+ * 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.tracing;
+
+public class TagConstants {

Review Comment:
   cc @oscerd @davsclaus 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] davsclaus commented on pull request #11354: CAMEL-19812 use open telemetry naming conventions

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on PR #11354:
URL: https://github.com/apache/camel/pull/11354#issuecomment-1727593999

   @jono-morris thanks for working on this - we added some comments above. Not sure if you get a chance to continue working on this, it seems we may "just" need for a while to deprecate the old TagConstants (and if possible link them to the new ones, so users upgrading it would work). And then after the next LTS release we can remove those deprecations.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] marcingrzejszczak commented on a diff in pull request #11354: CAMEL-19812 use open telemetry naming conventions

Posted by "marcingrzejszczak (via GitHub)" <gi...@apache.org>.
marcingrzejszczak commented on code in PR #11354:
URL: https://github.com/apache/camel/pull/11354#discussion_r1321569258


##########
components/camel-tracing/src/main/java/org/apache/camel/tracing/SpanAdapter.java:
##########
@@ -23,24 +23,12 @@ public interface SpanAdapter {
 
     void setError(boolean error);
 
-    void setTag(Tag key, String value);
-
-    void setTag(Tag key, Number value);
-
     void setTag(String key, String value);
 
     void setTag(String key, Number value);
 
     void setTag(String key, Boolean value);
 
-    default void setLowCardinalityTag(Tag key, String value) {

Review Comment:
   These are breaking changes, are we ok with that?



##########
components/camel-tracing/src/main/java/org/apache/camel/tracing/SpanAdapter.java:
##########
@@ -23,24 +23,12 @@ public interface SpanAdapter {
 
     void setError(boolean error);
 
-    void setTag(Tag key, String value);

Review Comment:
   These are breaking changes, are we ok with that?



##########
components/camel-tracing/src/main/java/org/apache/camel/tracing/TagConstants.java:
##########
@@ -0,0 +1,47 @@
+/*
+ * 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.tracing;
+
+public class TagConstants {

Review Comment:
   Are these actually different to what we had before? If that's the case that's a breaking change. IMO we should introduce new tags next to the current ones and deprecate the old ones. 
   
   Also how will ensure the compatibility between this class and semantic conventions of OpenTelemetry? Are we to be compatible with all the versions? Which version is this compatible with, for which date? Semantic Conventions are not stable and they can be changed at any point in time. What's our strategy for such breakages?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] davsclaus commented on a diff in pull request #11354: CAMEL-19812 use open telemetry naming conventions

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #11354:
URL: https://github.com/apache/camel/pull/11354#discussion_r1328627336


##########
components/camel-tracing/src/main/java/org/apache/camel/tracing/SpanAdapter.java:
##########
@@ -23,24 +23,12 @@ public interface SpanAdapter {
 
     void setError(boolean error);
 
-    void setTag(Tag key, String value);
-
-    void setTag(Tag key, Number value);
-
     void setTag(String key, String value);
 
     void setTag(String key, Number value);
 
     void setTag(String key, Boolean value);
 
-    default void setLowCardinalityTag(Tag key, String value) {

Review Comment:
   Yeah Camel end users dont really work directly with this API. And we have migration docs where we can write the steps people need to migrate. And its better to get ahead of this early in Camel v4 than later.



##########
components/camel-tracing/src/main/java/org/apache/camel/tracing/SpanAdapter.java:
##########
@@ -23,24 +23,12 @@ public interface SpanAdapter {
 
     void setError(boolean error);
 
-    void setTag(Tag key, String value);

Review Comment:
   See next comment



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org