Last active
February 27, 2026 15:33
-
-
Save ftnext/b5915c58b3d1d53eb51ac40e4ee2dc68 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://github.com/ftnext/fastapi-playground/blob/1908d81cde87f27c495cbcffa4c5142777118f9c/opentelemetry/client.rb | |
| require 'bundler/setup' | |
| Bundler.require | |
| ENV['OTEL_TRACES_EXPORTER'] = 'console' | |
| OpenTelemetry::SDK.configure do |c| | |
| c.use 'OpenTelemetry::Instrumentation::Faraday' | |
| end | |
| conn = Faraday.new('http://localhost:8000') | |
| conn.get('/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment