Skip to content

Commit

Permalink
Trace Finatra app
Browse files Browse the repository at this point in the history
Author: @franklinhu
Fixes #123
URL: #123
  • Loading branch information
Franklin Hu committed Aug 24, 2012
1 parent b758814 commit 15d4cee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package com.twitter.zipkin.config

import com.twitter.common.zookeeper.ZooKeeperClient
import com.twitter.conversions.time._
import com.twitter.finagle.zipkin.thrift.ZipkinTracer
import com.twitter.ostrich.admin.RuntimeEnvironment
import com.twitter.util.Duration
import com.twitter.zipkin.gen
Expand All @@ -29,6 +30,8 @@ trait ZipkinWebConfig extends ZipkinConfig[ZipkinWeb] {
var serverPort : Int = 8080
var adminPort : Int = 9902

override lazy val tracerFactory = ZipkinTracer(statsReceiver)

var rootUrl: String = "http://localhost/"
var pinTtl: Duration = 30.days
var hostConnectionLimit: Int = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class ZipkinWeb(config: ZipkinWebConfig) extends admin.Service {
.codec(Http())
.bindTo(new InetSocketAddress(config.serverPort))
.name("ZipkinWeb")
.tracerFactory(config.tracerFactory)
.build(service)
}
log.info("Finatra service started in port: " + config.serverPort)
Expand Down

0 comments on commit 15d4cee

Please sign in to comment.