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();
    }
}

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.LoggingSpanCollectorImpl;
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 new LoggingSpanCollectorImpl();
    }
}

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