diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2015-03-31 22:43:11 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2015-03-31 22:43:11 +0200 |
commit | bc5af1518212c5282ed146769cba29dbbde937be (patch) | |
tree | 928316a909405ff6a658ab40347b2f7d9792aa40 /kamon-core/src/main/scala/kamon | |
parent | 8eeddfdf762a1f3e993fdc301af44c08561100b5 (diff) | |
download | Kamon-bc5af1518212c5282ed146769cba29dbbde937be.tar.gz Kamon-bc5af1518212c5282ed146769cba29dbbde937be.tar.bz2 Kamon-bc5af1518212c5282ed146769cba29dbbde937be.zip |
+ core: introduce .factory members on trace and segment recorders.
Diffstat (limited to 'kamon-core/src/main/scala/kamon')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala b/kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala index cf43b87c..eb4f327a 100644 --- a/kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala +++ b/kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala @@ -29,6 +29,9 @@ class TraceMetrics(instrumentFactory: InstrumentFactory) extends GenericEntityRe object TraceMetrics extends EntityRecorderFactory[TraceMetrics] { def category: String = "trace" def createRecorder(instrumentFactory: InstrumentFactory): TraceMetrics = new TraceMetrics(instrumentFactory) + + // Java API. + def factory: EntityRecorderFactory[TraceMetrics] = this } class SegmentMetrics(instrumentFactory: InstrumentFactory) extends GenericEntityRecorder(instrumentFactory) { @@ -42,4 +45,7 @@ class SegmentMetrics(instrumentFactory: InstrumentFactory) extends GenericEntity object SegmentMetrics extends EntityRecorderFactory[SegmentMetrics] { def category: String = "trace-segment" def createRecorder(instrumentFactory: InstrumentFactory): SegmentMetrics = new SegmentMetrics(instrumentFactory) + + // Java API. + def factory: EntityRecorderFactory[SegmentMetrics] = this }
\ No newline at end of file |