opened
philicious
username_0
Please answer these questions before submitting a bug report.

### What version of OpenCensus are you using?

`0.24.0`

### What JVM are you using (`java -version`)?
using Kotlin, it occurs with JDK 11 and also 8 

### What did you do?
 Added to gradle
```
    compile 'io.opencensus:opencensus-api:0.24.0'
    compile 'io.opencensus:opencensus-exporter-trace-stackdriver:0.24.0'
    compile 'io.opencensus:opencensus-exporter-trace-logging:0.24.0'
    runtime 'io.opencensus:opencensus-impl:0.24.0'
```

use code like 
```
import io.opencensus.exporter.trace.logging.LoggingTraceExporter
import io.opencensus.trace.samplers.Samplers
import io.opencensus.trace.Tracing

val traceConfig = Tracing.getTraceConfig()
        traceConfig.updateActiveTraceParams(
        
    traceConfig.activeTraceParams.toBuilder().setSampler(Samplers.alwaysSample()).build())

        LoggingTraceExporter.register()
        // StackdriverTraceExporter.createAndRegister(StackdriverTraceConfiguration.builder().build())

        val tracer = Tracing.getTracer()
```

### What did you expect to see?
Tracing should work and use `TraceComponentImpl`

### What did you see instead?

`Tracing.getTracer()` returns a `NoopTraceComponent` as it cannot find `io.opencensus.impl.trace.TraceComponentImpl`

(in package io.opencensus.trace:Tracing.java breakpoint on loadTraceComponent(TraceComponent.class.getClassLoader()); to see it fail loading the class)

Why does this happen ? The class is in `opencensus-impl` and thats added as runtime lib 
`runtime 'io.opencensus:opencensus-impl:0.24.0'`
Cannot find class TraceComponentImpl and fallbacks to NoopTraceComponent
issue
created
philicious
username_0
so the solution was to also add `runtime 'io.opencensus:opencensus-impl:0.24.0'` to gradle when building a jar
comment
closed
philicious
username_0
issue