Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Opentracing #154

Merged
merged 6 commits into from
Apr 18, 2018
Merged

Opentracing #154

merged 6 commits into from
Apr 18, 2018

Conversation

kuba--
Copy link
Contributor

@kuba-- kuba-- commented Apr 16, 2018

Description: #151

kuba-- added 4 commits April 13, 2018 20:24
Signed-off-by: kuba-- <kuba@sourced.tech>
Signed-off-by: kuba-- <kuba@sourced.tech>
Signed-off-by: kuba-- <kuba@sourced.tech>
Signed-off-by: kuba-- <kuba@sourced.tech>
server/config.go Outdated
"gopkg.in/src-d/go-vitess.v0/mysql"
)

const (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need this, you can use https://github.com/jaegertracing/jaeger-client-go/blob/6cc524e2736308fb6da8f054483d00baee39b0a1/config/config_env.go#L49 to get configuration from environment variables.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I know, but it was added recently and it's still just on master. I hope after they release a new version we'll be able to get rid of some stuff and directly use heir FromEnv functions.

Copy link
Contributor

@ajnavarro ajnavarro Apr 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, ok, sorry for the noise. Can you open an issue to remind change that in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, I've just checked that they released a new version 2.13 two days ago (with env config), so on Friday the latest version was 2.12 (the version which we are using right now).
So, shall we integrate a new version?

_example/main.go Outdated
panic(err)
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for an else, panic stops execution

}

func createTestDatabase() *mem.Database {
db := mem.NewDatabase("test")
db := mem.NewDatabase("test").(*mem.Database)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the casting needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because mem.NewDatabase returns sql.Database interface which does not have AddTable function.

return buffer[0], nil
span, ctx := ctx.Span("aggregation.Count_Eval")
count := buffer[0]
span.LogKV("count", count)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need the result of the aggregation in the log?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...just to be consistent with other operations (max, min, avg, ...) if it's too noisy we can remove it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, perhaps having in the logs the results of these operations is too noisy

kuba-- added 2 commits April 17, 2018 13:24
Signed-off-by: kuba-- <kuba@sourced.tech>
Signed-off-by: kuba-- <kuba@sourced.tech>
@kuba--
Copy link
Contributor Author

kuba-- commented Apr 17, 2018

PTAL: jagger-client-go was upgraded to 2.13.0

@kuba-- kuba-- merged commit f3a82f0 into src-d:master Apr 18, 2018
@kuba-- kuba-- deleted the opentracing branch April 18, 2018 09:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants