How can I set x-opaque-id when I use es-sql?

Hi,all
How can I set x-opaque-id when I use es-sql?

@dadoonet

No individual pings, please, kindly keep it to all. Thanks.

You'd have to set it as a header, just like with the other REST APIs - see reference documentation - and you'd get back the value as a header. Though I assume you did that -- did it not work?

Thanks,
I use jdbc not REST API,so I don't know where to set it in jdbc connection

I think that's currently not possible, JDBC doesn't take a configuration property for that, unfortunately. Feel free to open an issue / feature request on Github, though.

As a hacky alternative, I guess you could SELECT a unique literal token in the SQL query itself, if that's at all feasible, to help correlate requests and responses.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.