Public documentation
Documentation indexRead as MarkdownOther backend languages
Languages · Shared configuration · Verification
Corridora accepts OTLP traces, logs, and metrics independently of the source language. A language still needs a functioning SDK, exporter, and instrumentation for the signals you want. This page provides a Ruby trace example and a concrete process for integrating another runtime without assuming every SDK has identical APIs or environment support.
Ruby: install and export a trace
Use a maintained Ruby runtime and Bundler. Upstream OpenTelemetry Ruby lists traces as Stable and metrics/logs as Development as checked on 2026-09-28. Start the local Collector, then create a small application:
mkdir corridora-ruby
cd corridora-ruby
bundle init
bundle add opentelemetry-sdk opentelemetry-exporter-otlp
export OTEL_EXPORTER_OTLP_ENDPOINT='http://127.0.0.1:4318'
export OTEL_EXPORTER_OTLP_PROTOCOL='http/protobuf'
export OTEL_TRACES_EXPORTER='otlp'
unset OTEL_EXPORTER_OTLP_TRACES_ENDPOINT OTEL_EXPORTER_OTLP_TRACES_PROTOCOL
unset OTEL_EXPORTER_OTLP_HEADERS OTEL_EXPORTER_OTLP_TRACES_HEADERS
Bundler resolves compatible gem dependencies; retain Gemfile and Gemfile.lock. This uses the Ruby SDK's trace configurator and its HTTP/protobuf exporter, not a gRPC exporter.
Save as app.rb:
require 'opentelemetry/sdk'
require 'opentelemetry/exporter/otlp'
OpenTelemetry::SDK.configure do |config|
config.service_name = 'corridora-ruby'
config.service_version = 'example-1'
config.resource = OpenTelemetry::SDK::Resources::Resource.create(
'deployment.environment.name' => 'development'
)
end
tracer = OpenTelemetry.tracer_provider.tracer('corridora.examples.ruby')
begin
tracer.in_span('example.calculate') do |span|
span.set_attribute('example.language', 'ruby')
sleep 0.05
puts "trace_id=#{span.context.hex_trace_id}"
end
ensure
OpenTelemetry.tracer_provider.shutdown
end
bundle exec ruby app.rb
The SDK's configurator discovers the OTLP exporter loaded by require and creates the trace processor. Loading the SDK without the exporter gem does not make OTLP export available.
Search Corridora for service corridora-ruby, the printed ID, and example.calculate. Expect a duration near 50 milliseconds. The puts output is not an exported log.
Add Ruby framework instrumentation
Add a compatible instrumentation gem for your framework or client, require it before application startup, and register it in OpenTelemetry::SDK.configure using config.use with its instrumentation name. For example, the Rack integration is registered as OpenTelemetry::Instrumentation::Rack after loading opentelemetry/instrumentation/rack.
Automatic instrumentation covers supported library operations; custom work still needs manual spans. Do not initialize the SDK repeatedly inside request handlers. In a forking application server, follow the instrumentation's worker lifecycle and verify export in each worker.
Supported HTTP integrations carry W3C trace context. Custom queues need explicit inject/extract operations using OpenTelemetry.propagation. A log bridge must record the active trace/span IDs and export the log separately. Do not treat Ruby's Development metrics/logs status as equivalent to the stable trace SDK.
For direct Corridora export, set the HTTPS base endpoint and OTEL_EXPORTER_OTLP_HEADERS="X-CORRIDORA-KEY=${CORRIDORA_INGEST_KEY}" using shared configuration. The Ruby OTLP trace exporter supports these settings. Keep a signal-specific endpoint unset unless you intend to override the base URL.
Another SDK or runtime
For PHP, use the dedicated PHP guide. For Erlang/Elixir, Swift on a server, or another language, first identify the exact SDK and exporter release used by your application. The presence of a language in the OpenTelemetry ecosystem does not imply the same signal maturity, automatic instrumentation, or framework coverage as another SDK.
Work through these concrete steps:
- Install the language's API, SDK, and OTLP exporter packages. Record their versions in your dependency lockfile. An API-only package normally provides no export pipeline.
- Initialize one provider with a resource containing
service.namebefore application code creates instruments or instrumented clients. - Select OTLP/HTTP protobuf or JSON. Configure the local Collector's
http://127.0.0.1:4318base URL, or full/v1/tracesURL if the exporter requires a signal URL. Check whether the SDK actually reads environment variables or requires programmatic options. - Create and end a uniquely named span, record its trace ID, then invoke that SDK's flush/shutdown path. Search for the same ID in Corridora.
- Add a parent/child operation and a remote request. Verify shared trace identity and parentage before enabling broader instrumentation.
- Add metrics and logs separately only when the SDK supports them. Verify a metric's type/unit and an exported log's correlation fields rather than assuming they follow the trace exporter.
If the runtime has no suitable OTLP exporter, use an existing supported telemetry protocol or structured-log output with an explicitly configured Collector receiver and mapping. The receiver is responsible for producing valid OpenTelemetry data. An arbitrary HTTP POST, raw Prometheus text, or JSON log line is not an OTLP request.
Do not use the synthetic payload generator as a substitute for a production SDK. It validates Corridora intake but does not supply instrumentation, context propagation, batching, or lifecycle handling for an application.
Verify the boundary you changed
For every new integration, check application emission, Collector receipt, Collector export, and Corridora visibility in that order using verification. Keep the service name and time window explicit. If an SDK cannot emit a signal, no change to Corridora's endpoint or ingest key can create that missing signal.