Skip to content

Conversation

black-adder
Copy link
Contributor

No description provided.


CMD ["/go/bin/standalone-linux","--query.static-files=/go/src/jaeger-ui-build/build/"]
CMD ["/go/bin/standalone-linux","--query.static-files=/go/src/jaeger-ui-build/build/","--sampling.strategies-file=/go/src/config/sampling_strategies.json"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The standalone will be provided with a sampling strategies file which defaults the sampling probability to 1

Copy link
Member

Choose a reason for hiding this comment

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

clever

@@ -58,7 +62,10 @@ func main() {
if err != nil {
log.Fatalf("Cannot initialize storage factory: %v", err)
}

strategyStoreFactory, err := ss.NewFactory(ss.FactoryConfigFromEnv())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This might be a breaking change. If no Env is provided, we default to using the default probability of 0.001 (all client's remote controlled samplers default to using 0.001 if it can't contact the collector...)

Do we want to have no default and not initialize a handler if Env is not provided and have users manually enable?

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, how is it "breaking"? Sounds like you're saying the effect of no Env will be the same - 0.001

@coveralls
Copy link

coveralls commented Feb 28, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling b9ed439 on add_sampling_handler_to_main into 62b3b9c on master.

@@ -58,7 +62,10 @@ func main() {
if err != nil {
log.Fatalf("Cannot initialize storage factory: %v", err)
}

strategyStoreFactory, err := ss.NewFactory(ss.FactoryConfigFromEnv())
Copy link
Member

Choose a reason for hiding this comment

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

Sorry, how is it "breaking"? Sounds like you're saying the effect of no Env will be the same - 0.001

samplingStrategyStoreFactory *ss.Factory,
v *viper.Viper,
logger *zap.Logger,
metricsFactory metrics.Factory,
Copy link
Member

Choose a reason for hiding this comment

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

can we keep the arg order consistent with Initialize(metricsFactory, logger)?


CMD ["/go/bin/standalone-linux","--query.static-files=/go/src/jaeger-ui-build/build/"]
CMD ["/go/bin/standalone-linux","--query.static-files=/go/src/jaeger-ui-build/build/","--sampling.strategies-file=/go/src/config/sampling_strategies.json"]
Copy link
Member

Choose a reason for hiding this comment

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

clever

Signed-off-by: Won Jun Jang <wjang@uber.com>
Signed-off-by: Won Jun Jang <wjang@uber.com>
Signed-off-by: Won Jun Jang <wjang@uber.com>
Signed-off-by: Won Jun Jang <wjang@uber.com>
Signed-off-by: Won Jun Jang <wjang@uber.com>
Signed-off-by: Won Jun Jang <wjang@uber.com>
@black-adder black-adder force-pushed the add_sampling_handler_to_main branch from 6331a4d to b9ed439 Compare March 1, 2018 17:24
@black-adder black-adder merged commit ba7d67b into master Mar 1, 2018
@ghost ghost removed the review label Mar 1, 2018
@black-adder black-adder deleted the add_sampling_handler_to_main branch March 1, 2018 17:43
resp, err := httpClient.Do(req)
require.NoError(t, err)

body, _ := ioutil.ReadAll(resp.Body)
Copy link
Member

Choose a reason for hiding this comment

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

require.NoError(t, err)

@@ -11,7 +11,7 @@ make build-all-in-one-linux
export REPO=jaegertracing/all-in-one

docker build -f cmd/standalone/Dockerfile -t $REPO:latest .
export CID=$(docker run -d -p 16686:16686 $REPO:latest)
export CID=$(docker run -d -p 16686:16686 -p 5778:5778 $REPO:latest)
Copy link
Member

Choose a reason for hiding this comment

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

seriously... how did this ever work then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The test uses the query service's instrumentation to create debug traces so it never needed agent's udp ports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants