Skip to content
Discussion options

You must be logged in to vote

Actually I managed to solve it!

For anyone else who is trying to do a similar thing, it's as simple as:

@ApplicationScoped
class ActionRunner {
    @Inject
    private lateinit var otelTracingInterceptor: GrpcTracingClientInterceptor

    /**
     * Runs an action on a runtime.
     *
     * @param endpoint The endpoint to send the action gRPC request to.
     * @param request The request to run against the runtime.
     *
     * @return The response from the runtime.
     */
    suspend fun runAction(endpoint: RuntimeEndpoint, request: RunActionRequest): RunActionResponse {
        val channel = Grpc
            .newChannelBuilderForAddress(endpoint.host, endpoint.port, InsecureChannelCr…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LarsSven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment