aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'kamon-core/src/main')
-rw-r--r--kamon-core/src/main/resources/reference.conf10
-rw-r--r--kamon-core/src/main/scala/kamon/trace/Tracer.scala4
2 files changed, 8 insertions, 6 deletions
diff --git a/kamon-core/src/main/resources/reference.conf b/kamon-core/src/main/resources/reference.conf
index cc4da03e..3e9d7b8d 100644
--- a/kamon-core/src/main/resources/reference.conf
+++ b/kamon-core/src/main/resources/reference.conf
@@ -110,12 +110,12 @@ kamon {
# The IdentityProvider used to generate Trace and Span Identifiers in Kamon. There are two default implementations
# that ship with Kamon:
- # - kamon.trace.IdentityProvider.Default: Creates 8-byte identifiers for both Traces and Spans.
- # - kamon.trace.IdentityProvider.DoubleSizeTraceID: Creates 16-byte identifiers for Traces and 8-byte identifiers
+ # - kamon.trace.IdentityProvider$Default: Creates 8-byte identifiers for both Traces and Spans.
+ # - kamon.trace.IdentityProvider$DoubleSizeTraceID: Creates 16-byte identifiers for Traces and 8-byte identifiers
# for Spans.
#
# Any external implementation can be configured here, as long as it can be instantiated with a parameterless constructor.
- identity-provider = "kamon.trace.IdentityProvider.Default"
+ identity-provider = "kamon.trace.IdentityProvider$Default"
# The SpanContextCodecs are used to encode/decode the SpanContext data into simple TextMaps, HTTP Headers or Binary
# carriers. The decision about which one to use is based on the kamon.trace.SpanContextCodec.Format instance passed
@@ -127,11 +127,11 @@ kamon {
# Encodes/Decodes the SpanContext data using a simple key/value pair. Since this is very rarely going to be used
# we default to using the same codec for HTTP Headers, as it is built on top of a TextMap.
- text-map = "kamon.trace.SpanContextCodec.ExtendedB3"
+ text-map = "kamon.trace.SpanContextCodec$ExtendedB3"
# Encodes/Decodes the SpanContext into a TextMap with HTTP Header friendly, URLEncoded values. The default
# implementation follows the guidelines of B3 propagation. See more at https://github.com/openzipkin/b3-propagation.
- http-headers = "kamon.trace.SpanContextCodec.ExtendedB3"
+ http-headers = "kamon.trace.SpanContextCodec$ExtendedB3"
# Encodes/Decodes the SpanContext using a binary representation.
binary = "TODO"
diff --git a/kamon-core/src/main/scala/kamon/trace/Tracer.scala b/kamon-core/src/main/scala/kamon/trace/Tracer.scala
index f95a8cef..47b633ac 100644
--- a/kamon-core/src/main/scala/kamon/trace/Tracer.scala
+++ b/kamon-core/src/main/scala/kamon/trace/Tracer.scala
@@ -98,7 +98,7 @@ object Tracer {
private[kamon] def reconfigure(config: Config): Unit = synchronized {
Try {
- val dynamic = new DynamicAccess(classOf[Tracer].getClassLoader)
+ val dynamic = new DynamicAccess(getClass.getClassLoader)
val traceConfig = config.getConfig("kamon.trace")
val newSampler = traceConfig.getString("sampler") match {
@@ -134,6 +134,8 @@ object Tracer {
textMapSpanContextCodec = newTextMapSpanContextCodec
httpHeaderSpanContextCodec = newHttpHeadersSpanContextCodec
+ }.failed.foreach {
+ ex => logger.error("Unable to reconfigure Kamon Tracer", ex)
}
}
}