Sha256: 88673a2ac7f5511e8b35ca58cd269cd4ca161f2eede6d57a2cf6234244b7fe0d

Contents?: true

Size: 325 Bytes

Versions: 3

Compression:

Stored size: 325 Bytes

Contents

# frozen_string_literal: true

require "rubygems"
require "bundler/setup"

Bundler.require
ENV["OTEL_TRACES_EXPORTER"] ||= "console"
OpenTelemetry::SDK.configure do |c|
  c.use "OpenTelemetry::Instrumentation::Sinatra"
  c.use "OpenTelemetry::Instrumentation::PG"
end

require "./lib/sinatra_example"
run SinatraExample::App

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
splunk-otel-1.3.0 examples/sinatra_example/config.ru
splunk-otel-1.1.3 examples/sinatra_example/config.ru
splunk-otel-1.1.0 examples/sinatra_example/config.ru