Search code examples
gremlintinkerpop3gremlin-server

Obtain the version of a Gremlin Server


Is there any way to obtain the Gremlin version used by a server? If none exists, does it make sense for Gremlin open source community to include a mechanism to programmatically expose that?

Some options: 1. g.version() 2. http://endpoint/?version

There are multiple reasons for this ask. 1. Gremlin client incompatibility between versions (surfaces as a serialization error of some sort, which can be misleading for many customers) 2. There are multiple vendors out there now, and it helps to have a standard way of advertising the gremlin version of the running server.


Solution

  • Gremlin Server doesn't expose that information. I think it would be nice if there was a better layer of content negotiation built into the protocol that could detect the version of the server and react accordingly, but I imagine that would obviously be a non-trivial sort of change that would require a lot of discussion (followed by effort to implement).