Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/docs/getting-started/ruby-sdk/trace-manual-instr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ OpenTelemetry::SDK.configure do |c|
# Set the service name to identify your application in the X-Ray backend service map
c.service_name = 'aws-otel-manual-rails-sample'

c.span_processors = [
c.add_span_processor(
# Use the BatchSpanProcessor to send traces in groups instead of one at a time
Trace::Export::BatchSpanProcessor.new(
# Use the default OLTP Exporter to send traces to the ADOT Collector
OpenTelemetry::Exporter::OTLP::Exporter.new(
# The ADOT Collector is running as a sidecar and listening on port 4318
endpoint="http://localhost:4318"
endpoint: "http://localhost:4318"
)
)
]
)

# The X-Ray ID Generator generates spans with X-Ray backend compliant IDs
c.id_generator = OpenTelemetry::Propagator::XRay::IDGenerator
Expand Down