You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Alex Van Boxel (Jira)" <ji...@apache.org> on 2021/02/09 16:50:00 UTC

[jira] [Commented] (TINKERPOP-2523) Allow registration of listeners for traversal iteration begin/end events

    [ https://issues.apache.org/jira/browse/TINKERPOP-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17281877#comment-17281877 ] 

Alex Van Boxel commented on TINKERPOP-2523:
-------------------------------------------

It's well worth looking into [https://opentelemetry.io/] for this. It's pretty unique as it's a merge of OpenTracing and OpenCencus and has a lot of industry traction.

When using the Java SDK you can include exporters to:
 * OTLP protocol, that can be sent to a collector (external process) that will run as an in-between to popular open-source and commercial distributed tracing products.
 * Maybe the java-instrumentation can be used for the TraveralOpProcessor, by doing the weaving through a javaagent?

Don't know enough about TinkerPop if the above makes sense.

> Allow registration of listeners for traversal iteration begin/end events
> ------------------------------------------------------------------------
>
>                 Key: TINKERPOP-2523
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2523
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 3.4.10
>            Reporter: Clément de Groc
>            Priority: Minor
>
> In order to improve observability/monitoring (e.g. distributed tracing, logging of traversals requests), it would be nice if users could register custom listeners for traversal iteration begin/end events.
> Those begin/end events are actually already nicely exposed as protected methods in [TraversalOpProcessor|https://github.com/apache/tinkerpop/blob/master/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/op/traversal/TraversalOpProcessor.java#L262-L272]. Though, in 3.4.10, it is difficult to subclass TraversalOpProcessor to override those methods as the [OpLoader|https://github.com/apache/tinkerpop/blob/master/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/op/OpLoader.java#L47] ensures only one OpProcessor can be loaded with name "traversal".
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)