From f1bb4239c6001f5f0b1f370b7d4a64866464c07b Mon Sep 17 00:00:00 2001 From: Denys Smirnov Date: Tue, 27 Nov 2018 23:38:12 +0200 Subject: [PATCH] enable opentracing Signed-off-by: Denys Smirnov --- Gopkg.lock | 22 +++++++++++++++++++--- Gopkg.toml | 2 +- client.go | 1 + 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index b3ae25f..7c67684 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -43,6 +43,12 @@ revision = "b4deda0973fb4c70b50d226b1af49f3da59f5265" version = "v1.1.0" +[[projects]] + branch = "master" + name = "github.com/grpc-ecosystem/grpc-opentracing" + packages = ["go/otgrpc"] + revision = "8e809c8a86450a29b90dcc9efbf062d0fe6d9746" + [[projects]] name = "github.com/jessevdk/go-flags" packages = ["."] @@ -55,6 +61,16 @@ packages = ["."] revision = "5650f26be7675b629fff8356a50d906fa03e9c8b" +[[projects]] + name = "github.com/opentracing/opentracing-go" + packages = [ + ".", + "ext", + "log" + ] + revision = "1949ddbfd147afd4d964a9f00b24eb291e0e7c38" + version = "v1.0.2" + [[projects]] name = "github.com/pkg/errors" packages = ["."] @@ -183,8 +199,8 @@ "uast/transformer", "uast/yaml" ] - revision = "8c2793564a37d9cf6fe70555d4010504430ab01e" - version = "v2.4.0" + revision = "910019c320386fa99a2e283d80c5c1769717d545" + version = "v2.9.0" [[projects]] name = "gopkg.in/src-d/go-errors.v1" @@ -201,6 +217,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "cb3d0ccabcedb82c5862e6c473b3d555d2b72c11a0599f80c965941bd3c8c637" + inputs-digest = "ac25c758fff26b9500281f793438b3c26d9a0e2a200926d84304da64f4695efb" solver-name = "gps-cdcl" solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml index 564b56d..828a488 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -15,7 +15,7 @@ [[constraint]] name = "gopkg.in/bblfsh/sdk.v2" - version = "2.4.x" + version = "2.9.x" [prune] go-tests = true diff --git a/client.go b/client.go index 2d606a8..e392851 100644 --- a/client.go +++ b/client.go @@ -25,6 +25,7 @@ func NewClientContext(ctx context.Context, endpoint string) (*Client, error) { grpc.WithBlock(), grpc.WithInsecure(), } + opts = append(opts, protocol2.DialOptions()...) conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil {