package com.github.kristofa.brave.resteasyexample;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

import com.github.kristofa.brave.Brave;
import com.github.kristofa.brave.SpanCollector;

/**
 * {@link SpanCollector} spring dependency injection configuration.
 * 
 * @author kristof
 */
@Configuration
public class SpanCollectorConfiguration {

    @Bean
    @Scope(value = "singleton")
    public SpanCollector spanCollector() {

        // For development purposes we use the logging span collector.
        return Brave.getLoggingSpanCollector();
    }
}

@@ -245,21 +245,40 @@
 a.brave.
-Brave
+LoggingSpanCollectorImpl
 ;%0Aimport
@@ -653,17 +653,12 @@
 urn 
-Brave.get
+new 
 Logg
@@ -673,16 +673,20 @@
 ollector
+Impl
 ();%0A    

Fix to make compatible with brave-impl changes. LoggingSpanCollectorImpl is public class and not to be instantiated through com.github.kristofa.brave.Brave anymore.