Skip to content

Commit 22a6005

Browse files
chore: Update grpc example's require_relative order (#1467)
chore: Update require_relative order Since we're using an inline gemfile, call require_relative after the grpc gem is available to avoid 'cannot load such file' errors.
1 parent b7f3352 commit 22a6005

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

instrumentation/grpc/example/trace_demonstration.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
require_relative './proto/example_api_services_pb'
2-
require_relative './example_impl'
3-
41
require 'bundler/inline'
52

63
gemfile do
@@ -12,6 +9,9 @@
129
gem 'opentelemetry-sdk'
1310
end
1411

12+
require_relative 'proto/example_api_services_pb'
13+
require_relative 'example_impl'
14+
1515
ENV['OTEL_TRACES_EXPORTER'] = 'console'
1616
OpenTelemetry::SDK.configure do |c|
1717
c.use 'OpenTelemetry::Instrumentation::Grpc'

0 commit comments

Comments
 (0)