aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/core/trace/GoogleStackdriverTrace.scala
diff options
context:
space:
mode:
authorJohn St John <johnthesaintjohn@gmail.com>2017-09-26 15:51:38 -0700
committerJohn St John <johnthesaintjohn@gmail.com>2017-09-26 15:51:38 -0700
commite07838aab7b059a37bfaa8ff23335cc6e1c9867e (patch)
treee7e7502163e5965bbfe9688255e0a03f254de7be /src/main/scala/xyz/driver/core/trace/GoogleStackdriverTrace.scala
parent26a5eb401c48c08812f1292664848595e7f74806 (diff)
downloaddriver-core-e07838aab7b059a37bfaa8ff23335cc6e1c9867e.tar.gz
driver-core-e07838aab7b059a37bfaa8ff23335cc6e1c9867e.tar.bz2
driver-core-e07838aab7b059a37bfaa8ff23335cc6e1c9867e.zip
Catch and log google tracing exceptions rather than crashing the entire app
Diffstat (limited to 'src/main/scala/xyz/driver/core/trace/GoogleStackdriverTrace.scala')
-rw-r--r--src/main/scala/xyz/driver/core/trace/GoogleStackdriverTrace.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/core/trace/GoogleStackdriverTrace.scala b/src/main/scala/xyz/driver/core/trace/GoogleStackdriverTrace.scala
index 1ff8d10..fa98ef4 100644
--- a/src/main/scala/xyz/driver/core/trace/GoogleStackdriverTrace.scala
+++ b/src/main/scala/xyz/driver/core/trace/GoogleStackdriverTrace.scala
@@ -38,7 +38,7 @@ final class GoogleStackdriverTrace(projectId: String,
}
private val googleServiceTracer =
- new GoogleStackdriverTraceWithConsumer(projectId, appName, appEnvironment, traceConsumer)
+ new GoogleStackdriverTraceWithConsumer(projectId, appName, appEnvironment, traceConsumer, log)
override def startSpan(httpRequest: HttpRequest): GoogleStackdriverTraceSpan =
googleServiceTracer.startSpan(httpRequest)