README.md in opentelemetry-exporter-jaeger-0.6.0 vs README.md in opentelemetry-exporter-jaeger-0.7.0

- old
+ new

@@ -32,18 +32,17 @@ require 'opentelemetry/exporter/jaeger' # Configure the sdk with custom export OpenTelemetry::SDK.configure do |c| c.add_span_processor( - OpenTelemetry::SDK::Trace::Export::SimpleSpanProcessor.new( - OpenTelemetry::Exporter::Jaeger::AgentExporter.new(host: '127.0.0.1', port: 6831) + OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new( + exporter: OpenTelemetry::Exporter::Jaeger::AgentExporter.new(host: '127.0.0.1', port: 6831) # Alternatively, for the collector exporter: - # OpenTelemetry::Exporter::Jaeger::CollectorExporter.new(endpoint: 'http://192.168.0.1:14268') + # exporter: OpenTelemetry::Exporter::Jaeger::CollectorExporter.new(endpoint: 'http://192.168.0.1:14268/api/traces') ) ) - c.resource = OpenTelemetry::SDK::Resources::Resource.create( - OpenTelemetry::SDK::Resources::Constants::SERVICE_RESOURCE[:name] => 'jaeger-example' - ) + c.service_name = 'jaeger-example' + c.service_version = '0.6.0' end # To start a trace you need to get a Tracer from the TracerProvider tracer = OpenTelemetry.tracer_provider.tracer('my_app_or_gem', '0.1.0')