Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Fix typo in configuration and add convenience setter for metricRegistry #71

Merged
merged 2 commits into from
Oct 5, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions jaeger-core/src/main/java/com/uber/jaeger/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,15 @@ synchronized public io.opentracing.Tracer getTracer() {
return tracer;
}

@Deprecated
Copy link
Member

Choose a reason for hiding this comment

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

add comment explaining what should be used instead

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

public void setStatsFactor(StatsFactory statsFactory) {
this.statsFactory = statsFactory;
}

public void setStatsFactory(StatsFactory statsFactory) {
this.statsFactory = statsFactory;
}

/**
* SamplerConfiguration allows to configure which sampler the tracer will use.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/
package com.uber.jaeger.dropwizard;

import com.codahale.metrics.MetricRegistry;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down Expand Up @@ -51,4 +52,8 @@ synchronized public Tracer getTracer() {
}
return super.getTracer();
}

public void setMetricRegistry(MetricRegistry metricRegistry) {
setStatsFactory(new StatsFactory(metricRegistry));
}
}