Skip to content

Conversation

@Skn0tt
Copy link
Contributor

@Skn0tt Skn0tt commented Jun 21, 2022

This PR adds a config.Router.EnableTracing field that makes Router.enableTracing configurable.

Works towards https://github.com/netlify/ingesteer/issues/152.

There are no breaking changes introduced in this.

@Skn0tt Skn0tt requested a review from a team as a code owner June 21, 2022 13:56
@Skn0tt Skn0tt added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Jun 21, 2022
@Skn0tt Skn0tt self-assigned this Jun 21, 2022
server/server.go Outdated
}

type RouterConfig struct {
EnableTracing bool
Copy link
Member

Choose a reason for hiding this comment

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

So I think that this would be oddly breaking in a functional way (the code would work). Updating here would disable this by default. I think that we should consider flipping the boolean here (e.g. DisableTracing).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ooooh good point

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done in 2351a82

@Skn0tt Skn0tt merged commit 1b4df80 into main Jun 23, 2022
@Skn0tt Skn0tt deleted the configurable-enable-tracing branch June 23, 2022 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature code contributing to the implementation of a feature and/or user facing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants