Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update trace-manual-instr.mdx #723

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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